aboutsummaryrefslogtreecommitdiff
path: root/include/functions.sh
AgeCommit message (Collapse)Author
2013-06-21pm-qa: export variables and copy switch file in outdirSanjay Singh Rawat
- Export switch variables from a script file - Update Android.mk to copy the switch file to out directory. Currently switch file is missing in android. Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-04-10pm-qa: change result message for testsSanjay Singh Rawat
- change the result message for each subtest, so that it won't interfere with lava log parsing. Report total pass and fail count for tests. - bug: https://bugs.launchpad.net/linaro-power-qa/+bug/1156614 - change permission in cputopology scripts for execution Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
2013-02-06pm-qa: collecting seperated test switches into one central file.Hongbo Zhang
It is inconvenient for user to edit these seperated switches, so move them into one central file. Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
2012-05-02add cpuidle_02 and cpuidle_03 testsDaniel Lezcano
This patch provides a couple of tests for cpuidle in addition with a small program which behaves to sollicitate the cpuidle drivers especially when both cores needs to reach the same C-states. The program forks as many online processors present on the system and set the affinity to it. Then it runs, during 120 secs, small chunks of busy loops and idle loops. When there is something wrong with the cpuidle driver, this program often triggers the problem which results in a kernel panic, tasks hung warning or system hang. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-10-03change header to specify 'on Linux'Daniel Lezcano
Specify the test suite can be run on Linux because it is not ARM specific. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-10-03check the cpu state is reflected in sysfsDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org Acked-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-10-03check the files are presentDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org Acked-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-10-03factor out check_file functionDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org Acked-by: Amit Kucheria <amit.kucheria@linaro.org>
2011-09-20fix typo return valuesDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-09-19fix error in scriptDaniel Lezcano
Prevent a syntax error when running the test which leads to an exception in the script and exiting wildely the loop. The cpuburn stays running in background. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-16downcase result outputDaniel Lezcano
That will make the output compatible with the expected result format for lava. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-16add ':' token to facilitate output parsing by lavaDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-09number the test with an idDaniel Lezcano
Automatically increment the test id making possible to identify the test clearly. The result will under the form: ... cpufreq_03.0/cpu0 checking governor change to 'conservative'... PASS cpufreq_03.1/cpu0 checking governor change to 'ondemand'... PASS cpufreq_03.2/cpu0 checking governor change to 'userspace'... PASS cpufreq_03.3/cpu0 checking governor change to 'powersave'... PASS cpufreq_03.4/cpu0 checking governor change to 'performance'... PASS cpufreq_03.0/cpu1 checking governor change to 'conservative'... PASS cpufreq_03.1/cpu1 checking governor change to 'ondemand'... PASS cpufreq_03.2/cpu1 checking governor change to 'userspace'... PASS cpufreq_03.3/cpu1 checking governor change to 'powersave'... PASS cpufreq_03.4/cpu1 checking governor change to 'performance'... PASS cpufreq_04.0/cpu0 checking setting frequency '2.6 GHz'... PASS cpufreq_04.1/cpu0 checking setting frequency '2.6 GHz'... PASS cpufreq_04.2/cpu0 checking setting frequency '2.0 GHz'... PASS cpufreq_04.3/cpu0 checking setting frequency '1.6 GHz'... PASS cpufreq_04.4/cpu0 checking setting frequency '1.2 GHz'... PASS cpufreq_04.5/cpu0 checking setting frequency '800.0 MHz'... PASS cpufreq_04.0/cpu1 checking setting frequency '2.6 GHz'... PASS cpufreq_04.1/cpu1 checking setting frequency '2.6 GHz'... PASS cpufreq_04.2/cpu1 checking setting frequency '2.0 GHz'... PASS cpufreq_04.3/cpu1 checking setting frequency '1.6 GHz'... PASS cpufreq_04.4/cpu1 checking setting frequency '1.2 GHz'... PASS cpufreq_04.5/cpu1 checking setting frequency '800.0 MHz'... PASS cpufreq_05.0/cpu1 checking 'ondemand' directory exists... PASS ... Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Paul Larson <paul.larson@linaro.org>
2011-08-06set prefix for sched_mcDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-05test_02 : check topology is enabledDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-08-05test_01 : test sched_mc file presenceDaniel Lezcano
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2011-07-26add script functionsDaniel Lezcano
Add a common directory for all the functions we will use later in the test scripts. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>