diff options
author | PMR <pmr@pmr-lander> | 2019-02-12 09:16:17 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2019-02-12 09:16:17 +0000 |
commit | 944d9f4c03ca36cba77551a6a79cf2b632a9d511 (patch) | |
tree | d62ef341d880ef4b597496b287f93789e0034b55 | |
parent | 3f3d3803b15960ad38e22895cebbd203f68f23f0 (diff) | |
parent | 44462375f8c8c2a4ae70720819bfa572e242cce3 (diff) |
Merge #362858 from ~pieq/plainbox-provider-checkbox:suspend-with-coldboots
-rw-r--r-- | units/stress/jobs.pxu | 41 | ||||
-rw-r--r-- | units/stress/test-plan.pxu | 10 |
2 files changed, 48 insertions, 3 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu index 261a0a3..756d537 100644 --- a/units/stress/jobs.pxu +++ b/units/stress/jobs.pxu @@ -71,7 +71,7 @@ id: power-management/suspend_30_cycles_with_reboots estimated_duration: 5400.0 depends: power-management/rtc - suspend/suspend_advanced + suspend/suspend_advanced_auto requires: executable.name == 'x-terminal-emulator' flags: noreturn @@ -79,8 +79,16 @@ user: root environ: PM_TEST_DRY_RUN command: pm_test reboot --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox --fwts --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE --suspends-before-reboot=30 -r 3 --silent --check-hardware-list +_summary: 30 suspend/resume cycles and 1 reboot, 3 times (automated stress test) _description: This is an automated stress test that will run a sequence of '30 suspend/resume cycles and one reboot' 3 times. +_siblings: [ + { "id": "power-management/suspend_30_cycles_with_coldboots", + "command": "pm_test poweroff --checkbox-respawn-cmd $PLAINBOX_SESSION_SHARE/__respawn_checkbox --fwts --log-level=debug --log-dir=$PLAINBOX_SESSION_SHARE --suspends-before-reboot=30 -r 3 --silent --check-hardware-list", + "_description": "This is an automated stress test that will run a sequence of '30 suspend/resume cycles and one poweroff' 3 times.", + "_summary": "30 suspend/resume cycles and 1 poweroff, 3 times (automated stress test)" + } + ] plugin: shell category_id: com.canonical.plainbox::stress @@ -118,8 +126,17 @@ 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 +_summary: 30 suspend/resume cycles and 1 reboot, 3 times (check logs for errors) _description: Automated check of the '30 cycle suspend and 1 reboot times 3' logs for errors detected by fwts. +_siblings: [ + { "id": "power-management/suspend-30-cycles-log-check-with-coldboots", + "depends": "power-management/suspend_30_cycles_with_coldboots", + "command": "[ -e $PLAINBOX_SESSION_SHARE/pm_test.poweroff.3.log ] && sleep_test_log_check -v s3 $PLAINBOX_SESSION_SHARE/pm_test.poweroff.3.log", + "_description": "Automated check of the '30 cycle suspend and 1 poweroff times 3' logs for errors detected by fwts.", + "_summary": "30 suspend/resume cycles and 1 poweroff, 3 times (check logs for errors)" + } + ] plugin: attachment category_id: com.canonical.plainbox::stress @@ -136,8 +153,17 @@ 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 +_summary: 30 suspend/resume cycles and 1 reboot, 3 times (attach logs) _description: - Attaches the log from the '30 cycle Suspend/Resume and one reboot times 3' test if it exists + Attaches the log from the '30 cycle suspend/resume and one reboot times 3' test if it exists +_siblings: [ + { "id": "power-management/suspend-30-cycle-log-attach-with-coldboots", + "depends": "power-management/suspend_30_cycles_with_coldboots", + "command": "[ -e $PLAINBOX_SESSION_SHARE/pm_test.poweroff.3.log ] && cat $PLAINBOX_SESSION_SHARE/pm_test.poweroff.3.log", + "_description": "Attaches the log from the '30 cycle Suspend/Resume and one poweroff times 3' test if it exists", + "_summary": "30 suspend/resume cycles and 1 poweroff, 3 times (attach logs)" + } + ] plugin: shell category_id: com.canonical.plainbox::stress @@ -154,8 +180,17 @@ 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 +_summary: 30 suspend/resume cycles and 1 reboot, 3 times (check logs for timing issues) _description: - Checks the sleep times to ensure that a machine suspends and resumes within a given threshold + Checks the sleep times to ensure that a machine suspends and resumes within a given threshold (warm boots) +_siblings: [ + { "id": "power-management/suspend-30-cycles-time-check-with-coldboots", + "depends": "power-management/suspend_30_cycles_with_coldboots", + "command": "[ -e $PLAINBOX_SESSION_SHARE/pm_test.poweroff.3.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/pm_test.poweroff.3.log", + "_description": "Checks the sleep times to ensure that a machine suspends and resumes within a given threshold (cold boots)", + "_summary": "30 suspend/resume cycles and 1 poweroff, 3 times (check logs for timing issues)" + } + ] plugin: shell category_id: com.canonical.plainbox::stress diff --git a/units/stress/test-plan.pxu b/units/stress/test-plan.pxu index 2f6ff8b..8e7929a 100644 --- a/units/stress/test-plan.pxu +++ b/units/stress/test-plan.pxu @@ -51,6 +51,16 @@ include: power-management/suspend-30-cycle-log-attach-with-reboots power-management/suspend-30-cycles-time-check-with-reboots +id: stress-suspend-30-cycles-with-coldboots-automated +unit: test plan +_name: Suspend stress tests (with coldboots) +_description: Suspend stress tests (with coldboots) +include: + power-management/suspend_30_cycles_with_coldboots + power-management/suspend-30-cycles-log-check-with-coldboots + power-management/suspend-30-cycle-log-attach-with-coldboots + power-management/suspend-30-cycles-time-check-with-coldboots + id: stress-hibernate-30-cycles-automated unit: test plan _name: Hibernate stress tests |