1f08c3bdfSopenharmony_ci 2f08c3bdfSopenharmony_ciTEST SUITE: 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_ciThe directory cpuctl_fj contains the tests related to the cpu controller. 5f08c3bdfSopenharmony_ci 6f08c3bdfSopenharmony_ciCpu controller is a mechanism for assigning cpu resource (in percent) to 7f08c3bdfSopenharmony_cia set of tasks. 8f08c3bdfSopenharmony_ci 9f08c3bdfSopenharmony_ciThere are total 22 testcases that have been added. These testcases 10f08c3bdfSopenharmony_cicontain the basis operation test and part functionality test of cpu 11f08c3bdfSopenharmony_cicontroller. 12f08c3bdfSopenharmony_ci 13f08c3bdfSopenharmony_ciNOTE: the test can be run by root only. 14f08c3bdfSopenharmony_ci 15f08c3bdfSopenharmony_ciTESTS AIM: 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ciThe aim of the tests is to test the functionality of cpu controller. 18f08c3bdfSopenharmony_ci 19f08c3bdfSopenharmony_ciFILES DESCRIPTION: 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_cirun_cpuctl_test_fj.sh 22f08c3bdfSopenharmony_ci-------------------- 23f08c3bdfSopenharmony_ciThis script runs all the 22 testcases. 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_cicpuctl_fj_cpu-hog.c 26f08c3bdfSopenharmony_ci-------------------- 27f08c3bdfSopenharmony_ciThe program does a calculation of sqrt till catched a signal. 28f08c3bdfSopenharmony_ci 29f08c3bdfSopenharmony_cicpuctl_fj_simple_echo.c 30f08c3bdfSopenharmony_ci-------------------- 31f08c3bdfSopenharmony_ciThe command "echo" can't return the errno. So we write this program to 32f08c3bdfSopenharmony_ciinstead of "echo". 33f08c3bdfSopenharmony_ci 34f08c3bdfSopenharmony_ciMakefile 35f08c3bdfSopenharmony_ci-------------------- 36f08c3bdfSopenharmony_ciThe usual makefile for this directory 37f08c3bdfSopenharmony_ci 38f08c3bdfSopenharmony_ciREADME 39f08c3bdfSopenharmony_ci------ 40f08c3bdfSopenharmony_ciThe one you have gone through. 41f08c3bdfSopenharmony_ci 42