summaryrefslogtreecommitdiff
path: root/units
diff options
authorPierre Equoy <pierre.equoy@canonical.com>2019-02-07 19:42:56 +0800
committerPierre Equoy <pierre.equoy@canonical.com>2019-02-07 19:42:56 +0800
commit533ebcc552be3e39c15b78d71562488c8460b2e5 (patch)
treeffbd0c76255061ebcfeaa88c46975a4952b10e17 /units
parentf3c16e42d290b25cfbddf15c61e68c04f2718201 (diff)
stress: Add "30 suspend cycles and 1 poweroff, 3 times" jobs
'suspend_30_cycles_with_reboots' job was originally created because it was found that suspend (S3) may fail after reboots. Adding 'suspend_30_cycles_with_coldboots' to ensure suspend also work properly after cold boots (i.e. poweroff). A new test plan (stress-suspend-30-cycles-with-coldboots-automated) is available.
Diffstat (limited to 'units')
-rw-r--r--units/stress/jobs.pxu28
-rw-r--r--units/stress/test-plan.pxu10
2 files changed, 37 insertions, 1 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
index 0cf8f51..d1fa17a 100644
--- a/units/stress/jobs.pxu
+++ b/units/stress/jobs.pxu
@@ -81,6 +81,11 @@ 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
_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." }
+ ]
plugin: shell
category_id: com.canonical.plainbox::stress
@@ -120,6 +125,13 @@ 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.
+_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."
+ }
+ ]
plugin: attachment
category_id: com.canonical.plainbox::stress
@@ -138,6 +150,13 @@ 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
+_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"
+ }
+ ]
plugin: shell
category_id: com.canonical.plainbox::stress
@@ -155,7 +174,14 @@ 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
+ 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)"
+ }
+ ]
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