diff options
author | PMR <pmr@pmr-lander> | 2017-12-01 03:56:31 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2017-12-01 03:56:31 +0000 |
commit | a29a06886d899b10032b4c6f25f521069e1d1bbb (patch) | |
tree | 1726dd17ef9b399a8b7f1550ab5e6d151a44225c | |
parent | 0b1326cda4fda4d765650b1d32237e1845c03af3 (diff) | |
parent | 99208722f921503d1828ddcc334e8898cdd120ad (diff) |
Merge #333622 from ~kissiel/plainbox-provider-checkbox:add-s3-stress-on-dGPU
-rw-r--r-- | units/suspend/suspend-graphics.pxu | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu index 1d42896..e05153a 100644 --- a/units/suspend/suspend-graphics.pxu +++ b/units/suspend/suspend-graphics.pxu @@ -198,3 +198,27 @@ depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial estimated_duration: 1.2 command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log _description: Checks the sleep times to ensure that a machine suspends and resumes within a given threshold + +unit: template +template-resource: graphics_card +template-filter: graphics_card.prime_gpu_offload == 'Off' +id: power-management/{index}_suspend_30_times_on_{product_slug} +plugin: shell +category_id: com.canonical.plainbox::stress +estimated_duration: 5400.0 +depends: + power-management/rtc + suspend/suspend_advanced + graphics/{index}_auto_switch_card_{product_slug} +flags: noreturn autorestart +user: root +command: + if type -P fwts >/dev/null; then + echo "Calling fwts" + set -o pipefail; checkbox-support-fwts_test -f none -l $PLAINBOX_SESSION_SHARE/{index}_suspend_single -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log + else + echo "Calling sleep_test" + set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log + fi +_purpose: + Suspend SUT 30 times while using {product_slug} graphics card |