diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2019-08-20 17:24:18 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2019-08-21 11:04:44 +0100 |
commit | 17a4c5cc4e749aeba60b1a6e34fae693437a86f4 (patch) | |
tree | 13e1c4a9ac3eba036b2dee38e934625b69abad28 /units/usb | |
parent | 9fd5b5f47e1e4bd202fe8e38d8d39a9b06429906 (diff) |
usb: import from p-p-snappy
Diffstat (limited to 'units/usb')
-rw-r--r-- | units/usb/category.pxu | 8 | ||||
-rw-r--r-- | units/usb/test-plan.pxu | 123 | ||||
-rw-r--r-- | units/usb/usb.pxu | 32 |
3 files changed, 163 insertions, 0 deletions
diff --git a/units/usb/category.pxu b/units/usb/category.pxu new file mode 100644 index 00000000..f983748e --- /dev/null +++ b/units/usb/category.pxu @@ -0,0 +1,8 @@ +unit: category +id: usb2 +_name: USB 2.0 + +unit: category +id: usb3 +_name: USB 3.0 + diff --git a/units/usb/test-plan.pxu b/units/usb/test-plan.pxu index e6a91656..ee528776 100644 --- a/units/usb/test-plan.pxu +++ b/units/usb/test-plan.pxu @@ -197,3 +197,126 @@ _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 diff --git a/units/usb/usb.pxu b/units/usb/usb.pxu index 75cf3c9f..fcef9b59 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: usb2 +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: usb2 +estimated_duration: 60 |