summaryrefslogtreecommitdiff
diff options
-rw-r--r--units/stress/jobs.pxu81
-rw-r--r--units/stress/test-plan.pxu18
2 files changed, 97 insertions, 2 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
index 51668f3..1d1f820 100644
--- a/units/stress/jobs.pxu
+++ b/units/stress/jobs.pxu
@@ -312,6 +312,29 @@ command:
plugin: shell
category_id: com.canonical.plainbox::stress
+id: stress/reboot_10
+requires: executable.name == 'fwts'
+ executable.name == 'x-terminal-emulator'
+command:
+ rm -f "$PLAINBOX_SESSION_SHARE"/__result
+ pm_test.py --checkbox-respawn-cmd "$PLAINBOX_SESSION_SHARE"/__respawn_checkbox -r 10 --silent --log-level=notset reboot --log-dir="$PLAINBOX_SESSION_SHARE"
+flags: noreturn
+estimated_duration: 1800
+user: root
+environ: PLAINBOX_SESSION_SHARE PM_TEST_DRY_RUN
+_description:
+ Stress reboot system (10 cycles)
+
+plugin: attachment
+category_id: com.canonical.plainbox::stress
+id: stress/reboot_10_log
+depends: stress/reboot_10
+command:
+ set -o pipefail
+ cat "$PLAINBOX_SESSION_SHARE"/*reboot.10.log
+
+plugin: shell
+category_id: com.canonical.plainbox::stress
id: stress/poweroff
estimated_duration: 4500.0
requires:
@@ -361,6 +384,30 @@ command:
plugin: shell
category_id: com.canonical.plainbox::stress
+id: stress/poweroff_10
+requires:
+ executable.name == 'fwts'
+ executable.name == 'x-terminal-emulator'
+command:
+ rm -f "$PLAINBOX_SESSION_SHARE"/__result
+ pm_test.py --checkbox-respawn-cmd "$PLAINBOX_SESSION_SHARE"/__respawn_checkbox -r 10 --wakeup 150 --silent --log-level=notset poweroff --log-dir="$PLAINBOX_SESSION_SHARE"
+flags: noreturn
+estimated_duration: 3600
+user: root
+environ: PLAINBOX_SESSION_SHARE PM_TEST_DRY_RUN
+_description:
+ Stress poweroff system (10 cycles)
+
+plugin: attachment
+category_id: com.canonical.plainbox::stress
+id: stress/poweroff_10_log
+depends: stress/poweroff_10
+command:
+ set -o pipefail
+ cat "$PLAINBOX_SESSION_SHARE"/*poweroff.10.log
+
+plugin: shell
+category_id: com.canonical.plainbox::stress
id: stress/reboot_30_check
estimated_duration: 1.0
depends: stress/reboot_30
@@ -378,6 +425,23 @@ command:
plugin: shell
category_id: com.canonical.plainbox::stress
+id: stress/reboot_10_check
+estimated_duration: 1.0
+depends: stress/reboot_10
+command: pm_log_check.py --log-level=notset "$PLAINBOX_SESSION_SHARE"/pm_test.reboot.10.log "$PLAINBOX_SESSION_SHARE"/pm_log_check_reboot.10.log
+_description: Check logs for the stress reboot (10 cycles) test case
+
+plugin: attachment
+category_id: com.canonical.plainbox::stress
+id: stress/reboot_10_check_log
+estimated_duration: 1.0
+depends: stress/reboot_10_check
+command:
+ set -o pipefail
+ cat "$PLAINBOX_SESSION_SHARE"/pm_log_check_reboot.10.log
+
+plugin: shell
+category_id: com.canonical.plainbox::stress
id: stress/poweroff_30_check
estimated_duration: 1.0
depends: stress/poweroff_30
@@ -395,6 +459,23 @@ command:
plugin: shell
category_id: com.canonical.plainbox::stress
+id: stress/poweroff_10_check
+estimated_duration: 1.0
+depends: stress/poweroff_10
+command: pm_log_check.py --log-level=notset "$PLAINBOX_SESSION_SHARE"/pm_test.poweroff.10.log "$PLAINBOX_SESSION_SHARE"/pm_log_check_poweroff.10.log
+_description: Check logs for the stress poweroff (10 cycles) test case
+
+plugin: attachment
+category_id: com.canonical.plainbox::stress
+id: stress/poweroff_10_check_log
+estimated_duration: 1.0
+depends: stress/poweroff_10_check
+command:
+ set -o pipefail
+ cat "$PLAINBOX_SESSION_SHARE"/pm_log_check_poweroff.10.log
+
+plugin: shell
+category_id: com.canonical.plainbox::stress
id: stress/reboot_check
estimated_duration: 1.0
depends: stress/reboot
diff --git a/units/stress/test-plan.pxu b/units/stress/test-plan.pxu
index f162517..5e9201b 100644
--- a/units/stress/test-plan.pxu
+++ b/units/stress/test-plan.pxu
@@ -72,14 +72,28 @@ include:
id: stress-30-reboot-poweroff-automated
unit: test plan
-_name: Power Management reboot and power off stress tests (automated)
-_description: Power Management reboot and power off stress tests (automated)
+_name: Power Management reboot and power off 30 cycles stress tests (automated)
+_description: Power Management reboot and power off 30 cycles stress tests (automated)
include:
stress/reboot_30 certification-status=blocker
stress/reboot_30_log
stress/poweroff_30 certification-status=blocker
stress/poweroff_30_log
+id: stress-10-reboot-poweroff-automated
+unit: test plan
+_name: Power Management reboot and power off 10 cycles stress tests (automated)
+_description: Power Management reboot and power off 10 cycles stress tests (automated)
+include:
+ stress/reboot_10 certification-status=blocker
+ stress/reboot_10_log
+ stress/reboot_10_check
+ stress/reboot_10_check_log
+ stress/poweroff_10 certification-status=blocker
+ stress/poweroff_10_log
+ stress/poweroff_10_check
+ stress/poweroff_10_check_log
+
id: stress-ng-cert-automated
unit: test plan
_name: Stress NG tests (automated)