From 792f37967983822cf4270d3fe0adb9b3664eee43 Mon Sep 17 00:00:00 2001 From: Pierre Equoy Date: Thu, 1 Oct 2015 15:12:33 +0800 Subject: Add support for '30 suspends + 1 reboot' cycle Add the following jobs: - power-management/suspend-30-cycles-log-check-with-reboots - power-management/suspend-30-cycle-log-attach-with-reboots - power-management/suspend-30-cycles-time-check-with-reboots Modifies the `pm_test` script to include `sleep_test` output in its logs in order to easily access the data needed by `sleep_time_check` to compute average times. `sleep_time_check` has been updated to take into account more than one sleep/resume times (the mean value is computed and returned). --- jobs/stress.txt.in | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'jobs') diff --git a/jobs/stress.txt.in b/jobs/stress.txt.in index 0b12618..64b064f 100644 --- a/jobs/stress.txt.in +++ b/jobs/stress.txt.in @@ -90,7 +90,16 @@ depends: power-management/suspend_30_cycles estimated_duration: 1.0 command: [ -e $PLAINBOX_SESSION_SHARE/suspend_30_cycles.log ] && sleep_test_log_check -v s3 $PLAINBOX_SESSION_SHARE/suspend_30_cycles.log _description: - Automated check of the 30 cycle hibernate log for errors detected by fwts. + Automated check of the 30 cycle suspend log for errors detected by fwts. + +plugin: shell +category_id: 2013.com.canonical.plainbox::stress +id: power-management/suspend-30-cycles-log-check-with-reboots +depends: power-management/suspend_30_cycles_with_reboots +estimated_duration: 1.0 +command: [ -e $PLAINBOX_SESSION_SHARE/pm_test.reboot.3.log ] && sleep_test_log_check -v s3 $PLAINBOX_SESSION_SHARE/pm_test.reboot.3.log +_description: + Automated check of the '30 cycle suspend and 1 reboot times 3' logs for errors detected by fwts. plugin: attachment category_id: 2013.com.canonical.plainbox::stress @@ -101,6 +110,15 @@ command: [ -e $PLAINBOX_SESSION_SHARE/suspend_30_cycles.log ] && cat $PLAINBOX_S _description: Attaches the log from the 30 cycle Suspend/Resume test if it exists +plugin: attachment +category_id: 2013.com.canonical.plainbox::stress +id: power-management/suspend-30-cycle-log-attach-with-reboots +estimated_duration: 1.0 +depends: power-management/suspend_30_cycles_with_reboots +command: [ -e $PLAINBOX_SESSION_SHARE/pm_test.reboot.3.log ] && cat $PLAINBOX_SESSION_SHARE/pm_test.reboot.3.log +_description: + Attaches the log from the '30 cycle Suspend/Resume and one reboot times 3' test if it exists + plugin: shell category_id: 2013.com.canonical.plainbox::stress id: power-management/suspend-30-cycles-time-check @@ -110,6 +128,15 @@ command: [ -e $PLAINBOX_SESSION_SHARE/suspend_30_cycles_times.log ] && sleep_tim _description: Checks the sleep times to ensure that a machine suspends and resumes within a given threshold +plugin: shell +category_id: 2013.com.canonical.plainbox::stress +id: power-management/suspend-30-cycles-time-check-with-reboots +estimated_duration: 1.0 +depends: power-management/suspend_30_cycles_with_reboots +command: [ -e $PLAINBOX_SESSION_SHARE/pm_test.reboot.3.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/pm_test.reboot.3.log +_description: + Checks the sleep times to ensure that a machine suspends and resumes within a given threshold + plugin: shell category_id: 2013.com.canonical.plainbox::stress id: stress/hibernate_250_cycles -- cgit v1.2.3