summaryrefslogtreecommitdiff
path: root/units/usb
diff options
authorPMR <pmr@pmr-lander>2019-09-21 10:43:07 +0200
committerPMR <pmr@pmr-lander>2019-09-21 10:43:07 +0200
commitc6d07afdb7d11b84158135b097cb82f741c42487 (patch)
tree02bb32d8b3a8772e5aa01cfd00cfc87606498b3e /units/usb
parent1b0b735fca3a3a96662aeaadc7253ae9002905c9 (diff)
Import plainbox-provider-checkbox_0.49.0~rc3.orig.tar.gzupstream-0.49.0_rc3patched-0.49.0_rc3-1
Diffstat (limited to 'units/usb')
-rw-r--r--units/usb/test-plan.pxu133
-rw-r--r--units/usb/usb.pxu32
2 files changed, 165 insertions, 0 deletions
diff --git a/units/usb/test-plan.pxu b/units/usb/test-plan.pxu
index e6a9165..f177798 100644
--- a/units/usb/test-plan.pxu
+++ b/units/usb/test-plan.pxu
@@ -197,3 +197,136 @@ _name: After suspend automated USB 3 write/read/compare tests on storage devices
_description: After suspend automated USB 3 write/read/compare tests on storage devices
include:
after-suspend-usb3/storage-preinserted
+
+id: usb-full
+unit: test plan
+_name: USB tests
+_description: QA USB tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ usb-manual
+
+id: usb-manual
+unit: test plan
+_name: Manual USB tests
+_description: Manual USB tests for Snappy Ubuntu Core devices
+include:
+ usb/hid
+ usb/insert
+ usb/storage-automated # depends on manual one, so not automated
+ usb/remove
+
+id: usb-automated
+unit: test plan
+_name: Automated USB tests
+_description: Automated USB tests for Snappy Ubuntu Core devices
+include:
+ usb/storage-preinserted-.*
+bootstrap_include:
+ removable_partition
+
+id: usb3-full
+unit: test plan
+_name: USB3 tests
+_description: QA USB3 tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ usb3-manual
+
+id: usb3-manual
+unit: test plan
+_name: Manual USB3 tests
+_description: Manual USB3 tests for Snappy Ubuntu Core devices
+include:
+ usb3/insert
+ usb3/storage-automated # depends on manual one, so not automated
+ usb3/remove
+
+id: usb-c-full
+unit: test plan
+_name: USB-C tests
+_description: QA USB-C tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ usb-c-manual
+
+id: usb-c-manual
+unit: test plan
+_name: Manual USB-C tests
+_description: Manual USB-C tests for Snappy Ubuntu Core devices
+include:
+ usb-c/c-to-a-adapter/hid
+ usb-c/c-to-a-adapter/insert
+ usb-c/c-to-a-adapter/storage-automated
+ usb-c/c-to-a-adapter/remove
+ usb-c/hid
+ usb-c/insert
+ usb-c/storage-automated
+ usb-c/remove
+
+id: after-suspend-usb-full
+unit: test plan
+_name: USB tests (after suspend)
+_description: QA USB tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ after-suspend-usb-manual
+
+id: after-suspend-usb-manual
+unit: test plan
+_name: Manual USB tests (after suspend)
+_description: Manual USB tests for Snappy Ubuntu Core devices
+include:
+ after-suspend-usb/hid
+ after-suspend-usb/insert
+ after-suspend-usb/storage-automated # depends on manual one, so not automated
+ after-suspend-usb/remove
+
+id: after-suspend-usb3-full
+unit: test plan
+_name: USB3 tests (after suspend)
+_description: QA USB3 tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ after-suspend-usb3-manual
+
+id: after-suspend-usb3-manual
+unit: test plan
+_name: Manual USB3 tests (after suspend)
+_description: Manual USB3 tests for Snappy Ubuntu Core devices
+include:
+ after-suspend-usb3/insert
+ after-suspend-usb3/storage-automated # depends on manual one, so not automated
+ after-suspend-usb3/remove
+
+id: after-suspend-usb-c-full
+unit: test plan
+_name: USB-C tests (after suspend)
+_description: QA USB-C tests for Snappy Ubuntu Core devices
+include:
+nested_part:
+ after-suspend-usb-c-manual
+
+id: after-suspend-usb-c-manual
+unit: test plan
+_name: Manual USB-C tests (after suspend)
+_description: Manual USB-C tests for Snappy Ubuntu Core devices
+include:
+ after-suspend-usb-c/c-to-a-adapter/hid
+ after-suspend-usb-c/c-to-a-adapter/insert
+ after-suspend-usb-c/c-to-a-adapter/storage-automated
+ after-suspend-usb-c/c-to-a-adapter/remove
+ after-suspend-usb-c/hid
+ after-suspend-usb-c/insert
+ after-suspend-usb-c/storage-automated
+ after-suspend-usb-c/remove
+
+id: after-suspend-usb-automated
+unit: test plan
+_name: Automated USB tests
+_description: Automated USB tests for Snappy Ubuntu Core devices
+include:
+ after-suspend-usb/storage-preinserted-.*
+bootstrap_include:
+ removable_partition
+
diff --git a/units/usb/usb.pxu b/units/usb/usb.pxu
index 75cf3c9..670f649 100644
--- a/units/usb/usb.pxu
+++ b/units/usb/usb.pxu
@@ -290,3 +290,35 @@ command: removable_storage_test -s 268400000 -p 15 usb
_description:
This test will check that your USB 2.0 port transfers data at a
minimum expected speed.
+
+unit: template
+template-resource: removable_partition
+template-filter: "usb" in removable_partition.bus
+template-unit: job
+plugin: shell
+category_id: com.canonical.plainbox::usb
+id: usb/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
+_summary:
+ Test USB storage on 2.0 or 1.1 ports detected by udev ({symlink_uuid})
+_description:
+ Tests USB 2.0 or 1.1 ports on a system by doing write/read/compare tests on
+ randomly created data. It requires that a USB stick is plugged into an
+ available USB port before running the certification suite.
+
+id: usb/hid
+_summary: USB keyboard works
+_purpose:
+ Check USB input device works
+_steps:
+ 1. Connect USB keyboard
+ 2. Input somethings with USB keyboard
+_verification:
+ What just input is displayed correctly
+plugin: manual
+flags: also-after-suspend
+category_id: com.canonical.plainbox::usb
+estimated_duration: 60