1f08c3bdfSopenharmony_ciThis explains how the automatic testing works with profile support. 2f08c3bdfSopenharmony_ci 3f08c3bdfSopenharmony_ciProfiles help users maintaining sets of tests for specific requirements. 4f08c3bdfSopenharmony_ciEach profile is defined in a file. 5f08c3bdfSopenharmony_ciAll profiles are stored in the <RT_TESTS_ROOT>/profile/ directory. 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_ci 8f08c3bdfSopenharmony_ciI. Automated tests in specific test-diretory. 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ciTests can be run for one directory by running ./run_auto.sh in the wanted dir. 11f08c3bdfSopenharmony_cirun_auto.sh is customizable and contains a command line for each test to be run. 12f08c3bdfSopenharmony_ci(see template run_auto.sh.tpl in this dir) 13f08c3bdfSopenharmony_cirun_auto.sh can be invoked with an argument which is the profile to use. 14f08c3bdfSopenharmony_ciprofile/ dir holds a file for each defined profile. 15f08c3bdfSopenharmony_ciA profile has a number of lines for which each test executable can be run 16f08c3bdfSopenharmony_ciwith different arguments. 17f08c3bdfSopenharmony_ciInvoking run_auto.sh with no arg uses the default profile. 18f08c3bdfSopenharmony_ciCurrently, the default profile does not alter the default values defined 19f08c3bdfSopenharmony_ciindividually in each test. 20f08c3bdfSopenharmony_ci 21f08c3bdfSopenharmony_ciExample: 22f08c3bdfSopenharmony_ciIn dir func/prio-preempt, user runs ./run_auto.sh prf1 23f08c3bdfSopenharmony_ciSince run_auto.sh contains this line: 24f08c3bdfSopenharmony_ci $SCRIPTS_DIR/run_c_files.sh $profile prio-preempt 25f08c3bdfSopenharmony_ci 26f08c3bdfSopenharmony_cirun_c_files.sh will look into profile/prf1 for lines like this: 27f08c3bdfSopenharmony_ci func/prio-preempt prio-preempt -c 2 -j 28f08c3bdfSopenharmony_ci func/prio-preempt prio-preempt -c 1 29f08c3bdfSopenharmony_ci 30f08c3bdfSopenharmony_ciand run the following commands from the func/prio-preempt dir: 31f08c3bdfSopenharmony_ci prio-preempt -c 2 -j 32f08c3bdfSopenharmony_ci prio-preempt -c 1 33f08c3bdfSopenharmony_ci 34f08c3bdfSopenharmony_ci 35f08c3bdfSopenharmony_ci 36f08c3bdfSopenharmony_ciII. All automated tests 37f08c3bdfSopenharmony_ci 38f08c3bdfSopenharmony_ciTests can also be run with <RT_TESTS_ROOT>/run.sh. User may choose whatever 39f08c3bdfSopenharmony_citest range he wants. (all, func, perf... see README) 40f08c3bdfSopenharmony_cirun.sh searches for run_auto.sh files in the wanted area and runs them one 41f08c3bdfSopenharmony_ciby one. 42f08c3bdfSopenharmony_ciTo use a profile other than default, use argument '-p <myprofile>'. 43f08c3bdfSopenharmony_ci 44f08c3bdfSopenharmony_ciExamples: 45f08c3bdfSopenharmony_ci ./run.sh -p prf1 -t func # Uses prf1 profile 46f08c3bdfSopenharmony_ci ./run.sh -t func # Uses default profile 47