summaryrefslogtreecommitdiff
diff options
authorBrendan Donegan <brendan.donegan@canonical.com>2014-04-08 11:16:16 +0100
committerBrendan Donegan <brendan.donegan@canonical.com>2014-04-08 11:16:16 +0100
commit80005cc1fad14c6c08355e5f0b79dcabd8f04b7a (patch)
treed9f6c9ac7e5fd8e4111f1f591d926a530d65d1fd
parent4266f358961d7d7e7de65d8e3cdbed1bf19254dd (diff)
plainbox-provider-checkbox: Add hybrid_sleep to suspend tests
Add a hybrid_sleep test to the suspend tests and it's supporting log-check and attach jobs. Signed-off-by: Brendan Donegan <brendan.donegan@canonical.com>
-rw-r--r--jobs/suspend.txt.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/jobs/suspend.txt.in b/jobs/suspend.txt.in
index 7f0ab8a..b37259d 100644
--- a/jobs/suspend.txt.in
+++ b/jobs/suspend.txt.in
@@ -247,6 +247,23 @@ environ: PLAINBOX_SESSION_SHARE
command: set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/suspend_single -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/suspend_single_times.log
estimated_duration: 90.000
+plugin: user-verify
+id: suspend/hybrid_sleep
+user: root
+command:
+ set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/hybrid_sleep_single -s s3 --s3-hybrid --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/hybrid_sleep_single_times.log
+estimated_duration: 90.0
+_description:
+ PURPOSE:
+ This test will check hybrid sleep and resume
+ STEPS:
+ 1. Click "Test" and your system will go into hybrid sleep mode for about 30 - 60 seconds
+ 2. Observe the Power LED to see if it blinks or changes color during suspend
+ 3. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually
+ 4. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed
+ VERIFICATION:
+ Did your system enter hybrid sleep and then resume correctly?
+
plugin: shell
id: suspend/suspend-single-log-check
estimated_duration: 1.2
@@ -261,6 +278,19 @@ _description:
Attaches the log from the single suspend/resume test to the results
plugin: shell
+id: suspend/hybrid-sleep-single-log-check
+estimated_duration: 1.2
+command: [ -e $PLAINBOX_SESSION_SHARE/hybrid_sleep_single.log ] && sleep_test_log_check -v s3 $PLAINBOX_SESSION_SHARE/hybrid_sleep_single.log
+_description:
+ Automated check of the hybrid sleep log to look for errors reported by fwts
+
+plugin: attachment
+id: suspend/hybrid-sleep-single-log-attach
+command: [ -e $PLAINBOX_SESSION_SHARE/hybrid_sleep_single.log ] && cat $PLAINBOX_SESSION_SHARE/hybrid_sleep_single.log
+_description:
+ Attaches the log from the single hybrid sleep/resume test to the results
+
+plugin: shell
id: suspend/suspend-time-check
estimated_duration: 1.2
command: [ -e $PLAINBOX_SESSION_SHARE/suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/suspend_single_times.log