• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.gitignoreD23-Nov-202315 21

MakefileD23-Nov-20231.1 KiB336

READMED23-Nov-20231.8 KiB5440

memctl_test01.cD23-Nov-20237.1 KiB204105

memctl_testplan.txtD23-Nov-20231.1 KiB2520

myfunctions.shD23-Nov-20234.9 KiB12263

run_memctl_test.shD23-Nov-20239.5 KiB267172

README

1TEST SUITE:
2
3The directory memctl contains the tests related to memory controller.
4More testcases are expected to be added in future.
5
6TESTS AIM:
7
8The aim of the tests is to test memory controller functionality.
9
10FILES DESCRIPTION:
11
12memctl_testN.c
13---------------
14These are the tasks to run for memory controller testing.
15The tasks have been automated in the sense that they can assign themselves
16to the appropriate group, can migrate to another group etc.
17Maximum effort has been made to reuse the code and keep total code size low.
18
19myfunctions.sh
20----------
21This file contains the functions which are common for all the tests. For ex.
22the setup and cleanup functions which do the setup for running the test and do
23the cleanup once the test finishes. The setup() function creates /dev/memctl
24directory and mounts cgroup filesystem on it with memory controller. It then
25creates a number(n) of groups in /dev/memctl. The cleanup function does a
26complete cleanup of the system.
27
28Most of the error scenarios have been taken care of for a sane cleanup of the
29system. However if cleanup fails in any case, just manually execute the
30commands written in cleanup function in myfunctions.sh.
31One of the most common causes of failed cleanup is that you have done cd into
32any of the groups in controller dir tree.
33
34run_memctl_test.sh
35------------------
36This script creates different scenarios for memory controller testing and
37fires (n) tasks in different groups to do some memory allocations etc. It
38waits for the return status from tasks and reports test pass/fail accordingly.
39
40Makefile
41--------
42
43The usual makefile for this directory
44
45PASS/FAIL CRITERION:
46==================
47The test cases are intelligent enough in deciding the pass or failure of a
48test.
49
50README:
51--------
52The one you have gone through.
53
54