summaryrefslogtreecommitdiff
path: root/units
diff options
authorPMR <pmr@pmr-lander>2020-01-07 08:10:40 +0000
committerPMR <pmr@pmr-lander>2020-01-07 08:10:40 +0000
commite5149fff1a5807be6f7cceaa4268575f9a677cbd (patch)
treecf8387c5c685cb77ddc67d78c9b053fa62391b4c /units
parente7904daeea1614169a73af8e40eb44e6bf7e7faf (diff)
parent6adef438f599b25e7a0c4ae6ca2f358e27b4f329 (diff)
Merge #377012 from ~bettyl/plainbox-provider-checkbox:intel-pm-graph-case
Diffstat (limited to 'units')
-rw-r--r--units/stress/jobs.pxu38
-rw-r--r--units/stress/test-plan.pxu10
2 files changed, 48 insertions, 0 deletions
diff --git a/units/stress/jobs.pxu b/units/stress/jobs.pxu
index 719e9e1..a5ef86a 100644
--- a/units/stress/jobs.pxu
+++ b/units/stress/jobs.pxu
@@ -495,3 +495,41 @@ _description:
2. Press wifi hotkey at a rate of 1 press per second and slowly increase the speed of the tap, until you are tapping as fast as possible
VERIFICATION:
Verify the system is not frozen and the wifi and bluetooth applets are still visible and functional
+
+plugin:shell
+category_id: com.canonical.plainbox::stress
+id: stress/s2idle_pm-graph_30
+estimated_duration: 10m
+requires: executable.name == 'sleepgraph'
+user: root
+_summary: Resume from idle by using Intel pm-graph
+command:
+ sleepgraph -m freeze -rtcwake 10 -sync -gzip -multi 30 0 -skiphtml -o $PLAINBOX_SESSION_SHARE/s2idle_pm-graph/s2idle-{date}-{time}
+
+plugin: attachment
+category_id: com.canonical.plainbox::stress
+id: stress/s2idle_pm-graph_30.tar.xz
+estimated_duration: 1
+user: root
+_summary: Attach pm-graph logs (s2idle)
+command:
+ tar Jcf $PLAINBOX_SESSION_SHARE/s2idle_pm-graph_30.tar.xz $PLAINBOX_SESSION_SHARE/s2idle_pm-graph && cat $PLAINBOX_SESSION_SHARE/s2idle_pm-graph_30.tar.xz
+
+plugin:shell
+category_id: com.canonical.plainbox::stress
+id: stress/s3_pm-graph_30
+estimated_duration: 10m
+requires: executable.name == 'sleepgraph'
+user: root
+_summary: Resume from suspend by using Intel pm-graph
+command:
+ sleepgraph -m mem -rtcwake 10 -sync -gzip -multi 30 0 -skiphtml -o $PLAINBOX_SESSION_SHARE/s3_pm-graph/suspend-{date}-{time}
+
+plugin: attachment
+category_id: com.canonical.plainbox::stress
+id: stress/s3_pm-graph_30.tar.xz
+estimated_duration: 1
+user: root
+_summary: Attach pm-graph logs (s3)
+command:
+ tar Jcf $PLAINBOX_SESSION_SHARE/s3_pm-graph_30.tar.xz $PLAINBOX_SESSION_SHARE/s3_pm-graph && cat $PLAINBOX_SESSION_SHARE/s3_pm-graph_30.tar.xz
diff --git a/units/stress/test-plan.pxu b/units/stress/test-plan.pxu
index 7967dd5..f162517 100644
--- a/units/stress/test-plan.pxu
+++ b/units/stress/test-plan.pxu
@@ -245,3 +245,13 @@ include:
ethernet/iperf3_.*
bootstrap_include:
device
+
+id: stress-pm-graph
+unit: test plan
+_name: pm-graph stress test
+_description: pm-graph stress test
+include:
+ stress/s2idle_pm-graph_30
+ stress/s2idle_pm-graph_30.tar.xz
+ stress/s3_pm-graph_30
+ stress/s3_pm-graph_30.tar.xz