summaryrefslogtreecommitdiff
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2019-08-20 16:47:08 +0100
committerJonathan Cave <jonathan.cave@canonical.com>2019-08-21 11:04:44 +0100
commitc9a40c0d49aef3e7323b88aa0d4133be1a0b4e50 (patch)
tree3699e52f27ddc7a3ebcddcde74fb6d46bfb1556b
parentc7a90b51f33888f3cb43e83597cb79ada9f96a34 (diff)
mediacard: import from p-p-snappy
-rw-r--r--units/mediacard/jobs.pxu18
-rw-r--r--units/mediacard/test-plan.pxu31
2 files changed, 49 insertions, 0 deletions
diff --git a/units/mediacard/jobs.pxu b/units/mediacard/jobs.pxu
index 8ce16d6..f2b3a64 100644
--- a/units/mediacard/jobs.pxu
+++ b/units/mediacard/jobs.pxu
@@ -783,3 +783,21 @@ _description:
VERIFICATION:
Did the results of the test match the expected performance of the inserted device?
+unit: template
+template-resource: removable_partition
+template-filter: removable_partition.bus == 'mediacard'
+template-unit: job
+plugin: shell
+category_id: com.canonical.plainbox::mediacard
+id: mediacard/storage-preinserted-{symlink_uuid}
+user: root
+estimated_duration: 45.0
+flags: also-after-suspend reset-locale
+command: USB_RWTEST_PARTITIONS={symlink_uuid} checkbox-support-usb_read_write
+imports: from com.canonical.plainbox import manifest
+requires:
+ manifest.has_card_reader == 'True'
+_summary: Automated test of SD Card reading & writing ({symlink_uuid})
+_description:
+ This is a fully automated version of mediacard/sd-automated and assumes that the
+ system under test has a memory card device plugged in prior to checkbox execution.
diff --git a/units/mediacard/test-plan.pxu b/units/mediacard/test-plan.pxu
index 2ef8a01..8b267a6 100644
--- a/units/mediacard/test-plan.pxu
+++ b/units/mediacard/test-plan.pxu
@@ -52,3 +52,34 @@ include:
suspend/sdhc-insert-after-suspend certification-status=blocker
suspend/sdhc-storage-after-suspend certification-status=blocker
suspend/sdhc-remove-after-suspend certification-status=blocker
+
+id: mediacard-full
+unit: test plan
+_name: Mediacard tests
+_description: QA mediacard tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ mediacard-manual
+# nested_part doesn't include automated test plan as its tests overlap with the
+# ones from the manual one
+
+id: mediacard-manual
+unit: test plan
+_name: Manual mediacard tests
+_description: Manual mediacard tests for Snappy Ubuntu Core devices
+include:
+ mediacard/.*-insert
+ mediacard/.*-storage
+ mediacard/.*-remove
+ mediacard/.*-performance-manual
+
+id: mediacard-automated
+unit: test plan
+_name: Automated mediacard tests
+_description:
+ Automated mediacard tests for Snappy Ubuntu Core devices
+ (not requiring udisks2)
+include:
+ mediacard/storage-preinserted-.*
+bootstrap_include:
+ removable_partition