diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-18 20:56:16 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-18 20:56:16 +0200 |
commit | 06ebc0457992bddfca74c3decc554d70ffdd310d (patch) | |
tree | ddc2038690c7e0bbd7146b3375681b919e91ab95 /units/hibernate | |
parent | a2cbc59e55ed21f755f45a5db2df5695a2220315 (diff) |
Move all jobs definition files into pxu units
Diffstat (limited to 'units/hibernate')
-rw-r--r-- | units/hibernate/jobs.pxu | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/units/hibernate/jobs.pxu b/units/hibernate/jobs.pxu new file mode 100644 index 0000000..75f233f --- /dev/null +++ b/units/hibernate/jobs.pxu @@ -0,0 +1,97 @@ +plugin: user-interact-verify +category_id: com.canonical.plainbox::hibernate +id: power-management/hibernate_advanced +requires: + sleep.disk == 'supported' + rtc.state == 'supported' +environ: PLAINBOX_SESSION_SHARE +user: root +command: + if type -P fwts >/dev/null; then + echo "Calling fwts" + checkbox-support-fwts_test -l $PLAINBOX_SESSION_SHARE/hibernate-single -f none -s s4 --s4-device-check --s4-device-check-delay=45 --s4-sleep-delay=120 + else + echo "Calling sleep_test" + sleep_test -s disk -w 120 + fi +estimated_duration: 300.00 +_description: + PURPOSE: + This test will check to make sure your system can successfully hibernate (if supported) + STEPS: + 1. Click on Test + 2. The system will hibernate and should wake itself within 5 minutes + 3. If your system does not wake itself after 5 minutes, please press the power button to wake the system manually + 4. If the system fails to resume from hibernate, please restart System Testing and mark this test as Failed + VERIFICATION: + Did the system successfully hibernate and did it work properly after waking up? + +plugin: shell +category_id: com.canonical.plainbox::hibernate +id: power-management/hibernate_advanced_auto +requires: + sleep.disk == 'supported' + rtc.state == 'supported' +environ: PLAINBOX_SESSION_SHARE +user: root +command: checkbox-support-fwts_test -l $PLAINBOX_SESSION_SHARE/hibernate-single -f none -s s4 --s4-device-check --s4-device-check-delay=45 --s4-sleep-delay=120 +estimated_duration: 300.00 +_description: + This is the automated version of suspend/hibernate_advanced. + +unit: template +template-resource: graphics_card +template-filter: graphics_card.prime_gpu_offload == 'Off' +requires: + sleep.disk == 'supported' + rtc.state == 'supported' +plugin: user-interact-verify +category_id: com.canonical.plainbox::hibernate +id: power-management/{index}_hibernate_advanced_{vendor_slug}_{product_slug} +user: root +environ: PLAINBOX_SESSION_SHARE +estimated_duration: 300.00 +command: + if type -P fwts >/dev/null; then + echo "Calling fwts" + checkbox-support-fwts_test -l $PLAINBOX_SESSION_SHARE/{index}_hibernate-single -f none -s s4 --s4-device-check --s4-device-check-delay=45 --s4-sleep-delay=120 + else + echo "Calling sleep_test" + sleep_test -s disk -w 120 + fi +_purpose: + This test will check to make sure your system can successfully hibernate (if supported) +_steps: + 1. Click on Test + 2. The system will hibernate and should wake itself within 5 minutes + 3. If your system does not wake itself after 5 minutes, please press the power button to wake the system manually + 4. If the system fails to resume from hibernate, please restart System Testing and mark this test as Failed +_verification: + Did the system successfully hibernate and did it work properly after waking up? + +plugin: shell +category_id: com.canonical.plainbox::hibernate +id: power-management/hibernate-single-log-check +command: [ -e $PLAINBOX_SESSION_SHARE/hibernate-single.log ] && sleep_test_log_check -v s4 $PLAINBOX_SESSION_SHARE/hibernate-single.log +_description: + Automated check of the hibernate log for errors discovered by fwts + +plugin: attachment +category_id: com.canonical.plainbox::hibernate +id: power-management/hibernate-single-log-attach +depends: power-management/hibernate_advanced +command: [ -e $PLAINBOX_SESSION_SHARE/hibernate-single.log ] && cat $PLAINBOX_SESSION_SHARE/hibernate-single.log +estimated_duration: 0.5 +_description: attaches log from single hibernate/resume test to results + +unit: template +template-resource: graphics_card +template-filter: graphics_card.prime_gpu_offload == 'Off' +plugin: attachment +category_id: com.canonical.plainbox::hibernate +id: power-management/{index}_hibernate-single-log-attach_{product_slug} +depends: power-management/{index}_hibernate_advanced_{vendor_slug}_{product_slug} +estimated_duration: 0.5 +command: [ -e $PLAINBOX_SESSION_SHARE/{index}_hibernate-single.log ] && cat $PLAINBOX_SESSION_SHARE/{index}_hibernate-single.log +_description: attaches log from single hibernate/resume test to results + |