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