summaryrefslogtreecommitdiff
path: root/units
diff options
authorBetty Lin <betty.lin@canonical.com>2019-12-20 09:35:57 +0800
committerBetty Lin <betty.lin@canonical.com>2019-12-23 11:16:14 +0800
commit6adef438f599b25e7a0c4ae6ca2f358e27b4f329 (patch)
tree045982a901e2d98987df8b8f018872ef946a3469 /units
parent9fd3ae13a9416e4508ecc3e850968f466754db35 (diff)
add intel pm-graph tests
1. Run both s2idle and s3 for 30 cycles 2. Attached the logs to submission
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 719e9e1d..a5ef86a6 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 7967dd55..f162517b 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