1TEST SUITE: 2 3The directory memcg contains the tests related to memory resource controller. 4Those testcases can reproduce bugs we found. 5 6There are total 44 testcases that have been added. These testcases 7contain the regression test, basis operation test and stress test of memctl. 8 9NOTE: the test can be run by root only. 10 11TESTS AIM: 12 13The aim of the tests is to track any future regressions, test the functionality 14of memctl.. 15 16FILES DESCRIPTION: 17 18control/memcg_control_test.sh 19-------------------- 20This script runs the testcases of control test. 21 22control/mem_process.c 23-------------------- 24The program allocates memory specified using the '-m' option when 'm' is received 25through the named pipe /tmp/status_pipe and frees it on receiving 'm' again. 26It exits on receiving 'x'. It gets the page size on specifying the '-p' option. 27 28functional/memcgroup_function_test.sh 29-------------------- 30This script runs all the 38 testcases of basis operation. 31 32functional/memcgroup_getpagesize.c 33-------------------- 34The program gets page size through getpagesize(). 35 36functional/memcgroup_process.c 37-------------------- 38The program allocates some memory according to the user input when received SIGUSR. 39And, it frees all the allocated when received SIGUSR again. 40 41stress/memcgroup_stress_test.sh 42-------------------- 43This script runs all the 2 testcases of stress test. 44 45stress/memcgroup_process_stress.c 46-------------------- 47The program allocates some memory in a specified time period when received SIGUSR. 48 49regression/memcg_regression_test.sh 50-------------------- 51This script runs all the 4 testcases of regression test. 52 53regression/memcg_test_*.c/sh 54-------------------- 55The programs run each regression test. 56 57README 58------ 59The one you have gone through. 60