summaryrefslogtreecommitdiff
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2019-08-20 17:05:03 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2019-08-21 11:04:44 +0100
commit7b2417eb2ca5d50462bcb19c84dcbc8b3a1bccc0 (patch)
tree344be4a17c2ebe6b08715deed7b48f8494b5264d
parentaff7b7c0917cf1288eed0ac2cb6bd67f0d3dd202 (diff)
rtc: import from p-p-snappy
-rw-r--r--units/rtc/category.pxu3
-rw-r--r--units/rtc/jobs.pxu16
-rw-r--r--units/rtc/test-plan.pxu20
3 files changed, 39 insertions, 0 deletions
diff --git a/units/rtc/category.pxu b/units/rtc/category.pxu
new file mode 100644
index 00000000..683e64eb
--- /dev/null
+++ b/units/rtc/category.pxu
@@ -0,0 +1,3 @@
+unit: category
+id: rtc_category
+_name: Real Time Clock (RTC)
diff --git a/units/rtc/jobs.pxu b/units/rtc/jobs.pxu
new file mode 100644
index 00000000..0740d199
--- /dev/null
+++ b/units/rtc/jobs.pxu
@@ -0,0 +1,16 @@
+id: rtc/battery
+_summary: RTC battery tracks the time
+_purpose:
+ RTC battery backup power can send system wakeup event
+_steps:
+ 1. Start the test to poweroff the system (wakeup scheduled in 30s)
+_verification:
+ RTC can wake up the system successfully
+command:
+ rtcwake -v -m disable
+ rtcwake -v -m off -s 30
+plugin: user-interact
+user: root
+category_id: rtc_category
+estimated_duration: 40
+flags: noreturn
diff --git a/units/rtc/test-plan.pxu b/units/rtc/test-plan.pxu
new file mode 100644
index 00000000..3b37bf01
--- /dev/null
+++ b/units/rtc/test-plan.pxu
@@ -0,0 +1,20 @@
+id: rtc-full
+unit: test plan
+_name: RTC tests
+_description: QA RTC tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ rtc-manual
+
+id: rtc-manual
+unit: test plan
+_name: Manual RTC tests
+_description: Manual RTC tests for Snappy Ubuntu Core devices
+include:
+ rtc/battery
+
+id: rtc-automated
+unit: test plan
+_name: Automated RTC tests
+_description: Automated RTC tests for Snappy Ubuntu Core devices
+include: