3
_name: USB Type-C Support
7
id: has_usb_type_c_charging
8
_name: USB Type-C Charging Port
12
category_id: 2013.com.canonical.plainbox::usb
14
estimated_duration: 1.0
15
command: set -o pipefail; lsusb 2>/dev/null | sed 's/.*\(ID .*\)/\1/' | head -n 4 || echo "No USB devices were detected" >&2
16
_summary: Display USB devices attached to SUT
17
_description: Detects and shows USB devices attached to this system.
19
plugin: user-interact-verify
20
category_id: 2013.com.canonical.plainbox::usb
23
estimated_duration: 1.0
24
command: removable_storage_test -l usb
27
This test will check that your system detects USB storage devices.
29
1. Plug in one or more USB keys or hard drives.
32
Were the drives detected?
34
plugin: user-interact-verify
35
category_id: 2013.com.canonical.plainbox::usb
38
estimated_duration: 1.0
39
command: keyboard_test
42
This test will check that you can use a USB HID device
44
1. Enable either a USB mouse or keyboard
45
2. For mice, perform actions such as moving the pointer, right and left button clicks and double clicks
46
3. For keyboards, commence the test to launch a small tool. Type some text and close the tool.
48
Did the device work as expected?
50
plugin: user-interact-verify
51
category_id: 2013.com.canonical.plainbox::usb
52
id: usb-c/c-to-a-adapter/hid
53
imports: from 2013.com.canonical.plainbox import manifest
54
requires: manifest.has_usb_type_c
56
estimated_duration: 10.0
57
command: keyboard_test
59
This test will check that you can use a USB HID device plugged in a USB
60
Type-C port using a "USB Type-C to Type-A" adapter
62
1. Enable either a USB mouse or keyboard by plugging it in the USB Type-C port using a "USB Type-C to Type-A" adapter
63
2. For mice, perform actions such as moving the pointer, right and left button clicks and double clicks
64
3. For keyboards, commence the test to launch a small tool. Type some text and close the tool.
66
Did the device work as expected?
68
plugin: user-interact-verify
69
category_id: 2013.com.canonical.plainbox::usb
71
imports: from 2013.com.canonical.plainbox import manifest
72
requires: manifest.has_usb_type_c
74
estimated_duration: 10.0
75
command: keyboard_test
77
This test will check that you can use a USB HID device plugged in a USB
80
1. Enable either a USB mouse or keyboard by plugging it in the USB Type-C port
81
2. For mice, perform actions such as moving the pointer, right and left button clicks and double clicks
82
3. For keyboards, commence the test to launch a small tool. Type some text and close the tool.
84
Did the device work as expected?
87
category_id: 2013.com.canonical.plainbox::usb
90
estimated_duration: 10.0
91
command: removable_storage_watcher insert usb
94
This test will check that the system correctly detects the insertion of
97
1. Click "Test" and insert a USB storage device
98
(Note: this test will time-out after 20 seconds.)
99
2. Do not unplug the device after the test.
101
The verification of this test is automated. Do not change the
102
automatically selected result.
104
plugin: user-interact
105
category_id: 2013.com.canonical.plainbox::usb
108
usb.usb3 == 'supported'
109
estimated_duration: 10.0
110
command: removable_storage_watcher -m 500000000 insert usb
113
This test will check that the system correctly detects the insertion of
114
a USB 3.0 storage device
116
1. Click "Test" and insert a USB 3.0 storage device in a USB 3.0 port.
117
(Note: this test will time-out after 20 seconds.)
118
2. Do not unplug the device after the test.
120
The verification of this test is automated. Do not change the
121
automatically selected result.
123
plugin: user-interact
124
category_id: 2013.com.canonical.plainbox::usb
125
id: usb-c/c-to-a-adapter/insert
126
imports: from 2013.com.canonical.plainbox import manifest
128
usb.usb3 == 'supported'
129
manifest.has_usb_type_c
130
estimated_duration: 10.0
131
command: removable_storage_watcher -m 500000000 insert usb
133
This test will check that the system correctly detects the insertion of
134
a USB 3 storage device in a USB Type-C connector using a "Type-C to Type-A"
137
1. Click "Test" and insert a USB 3 storage device in a USB Type-C port
138
using a "USB Type-C to Type-A" adapter.
139
(Note: this test will time-out after 20 seconds.)
140
2. Do not unplug the device after the test.
142
The verification of this test is automated. Do not change the
143
automatically selected result.
145
plugin: user-interact
146
category_id: 2013.com.canonical.plainbox::usb
148
imports: from 2013.com.canonical.plainbox import manifest
150
usb.usb3 == 'supported'
151
manifest.has_usb_type_c
152
estimated_duration: 10.0
153
command: removable_storage_watcher -m 500000000 insert usb
155
This test will check that the system correctly detects the insertion of
156
a USB 3 storage device in a USB Type-C connector
158
1. Click "Test" and insert a USB 3 storage device in a USB Type-C port.
159
(Note: this test will time-out after 20 seconds.)
160
2. Do not unplug the device after the test.
162
The verification of this test is automated. Do not change the
163
automatically selected result.
165
plugin: user-interact
166
category_id: 2013.com.canonical.plainbox::usb
169
estimated_duration: 10.0
170
command: removable_storage_watcher remove usb
173
This test will check that the system correctly detects the removal of
176
1. Click "Test" and remove the USB device.
177
(Note: this test will time-out after 20 seconds.)
179
The verification of this test is automated. Do not change the
180
automatically selected result.
182
plugin: user-interact
183
category_id: 2013.com.canonical.plainbox::usb
187
usb.usb3 == 'supported'
188
estimated_duration: 10.0
189
command: removable_storage_watcher -m 500000000 remove usb
192
This test will check that the system correctly detects the removal of
193
a USB 3.0 storage device
195
1. Click "Test" and remove the USB 3.0 device.
196
(Note: this test will time-out after 20 seconds.)
198
The verification of this test is automated. Do not change the
199
automatically selected result.
201
plugin: user-interact
202
category_id: 2013.com.canonical.plainbox::usb
203
id: usb-c/c-to-a-adapter/remove
204
imports: from 2013.com.canonical.plainbox import manifest
205
depends: usb-c/c-to-a-adapter/insert
207
usb.usb3 == 'supported'
208
manifest.has_usb_type_c
209
estimated_duration: 10.0
210
command: removable_storage_watcher -m 500000000 remove usb
212
This test will check that the system correctly detects the removal of
213
a USB 3 storage device connected to a USB Type-C port using a "USB Type-C
216
1. Click "Test" and remove the USB 3 device.
217
(Note: this test will time-out after 20 seconds.)
219
The verification of this test is automated. Do not change the
220
automatically selected result.
222
plugin: user-interact
223
category_id: 2013.com.canonical.plainbox::usb
225
imports: from 2013.com.canonical.plainbox import manifest
226
depends: usb-c/insert
228
usb.usb3 == 'supported'
229
manifest.has_usb_type_c
230
estimated_duration: 10.0
231
command: removable_storage_watcher -m 500000000 remove usb
233
This test will check that the system correctly detects the removal of
234
a USB 3 storage device connected to a USB Type-C port.
236
1. Click "Test" and remove the USB 3 device.
237
(Note: this test will time-out after 20 seconds.)
239
The verification of this test is automated. Do not change the
240
automatically selected result.
242
plugin: user-interact-verify
243
category_id: 2013.com.canonical.plainbox::usb
244
id: usb/storage-transfer
247
estimated_duration: 45.0
248
command: removable_storage_test -s 268400000 usb
251
This test will check your USB connection.
253
1. Plug a USB HDD or thumbdrive into the computer.
254
2. An icon should appear on the Launcher.
255
3. Click "Test" to begin the test.
257
The verification of this test is automated. Do not change the
258
automatically selected result.
260
plugin: user-interact-verify
261
category_id: 2013.com.canonical.plainbox::usb
262
id: usb3/storage-transfer
264
usb.usb3 == 'supported'
267
estimated_duration: 45.0
268
command: removable_storage_test -s 268400000 -m 500000000 usb
271
This test will check your USB 3.0 connection.
273
1. Plug a USB 3.0 HDD or thumbdrive into a USB 3.0 port in the computer.
274
2. An icon should appear on the Launcher.
275
3. Click "Test" to begin the test.
277
The verification of this test is automated. Do not change the
278
automatically selected result.
281
category_id: 2013.com.canonical.plainbox::usb
282
id: usb/storage-automated
285
estimated_duration: 45.0
286
command: removable_storage_test -s 268400000 usb
288
This test is automated and executes after the usb/insert test is run.
291
category_id: 2013.com.canonical.plainbox::usb
292
id: usb3/storage-automated
294
usb.usb3 == 'supported'
297
estimated_duration: 45.0
298
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
300
This test is automated and executes after the usb3/insert test is run.
303
category_id: 2013.com.canonical.plainbox::usb
304
id: usb-c/c-to-a-adapter/storage-automated
305
imports: from 2013.com.canonical.plainbox import manifest
307
usb.usb3 == 'supported'
308
manifest.has_usb_type_c
309
depends: usb-c/c-to-a-adapter/insert
311
estimated_duration: 45.0
312
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
314
This test is automated and executes after the usb-c/c-to-a-adapter/insert test
318
category_id: 2013.com.canonical.plainbox::usb
319
id: usb-c/storage-automated
320
imports: from 2013.com.canonical.plainbox import manifest
322
usb.usb3 == 'supported'
323
manifest.has_usb_type_c
324
depends: usb-c/insert
326
estimated_duration: 45.0
327
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
329
This test is automated and executes after the usb-c/insert test
333
category_id: 2013.com.canonical.plainbox::usb
334
id: usb/storage-preinserted
336
estimated_duration: 45.0
337
command: removable_storage_test -l usb && removable_storage_test -s 268400000 usb
339
Test USB 2.0 or 1.1 ports
341
Tests USB 2.0 or 1.1 ports on a system by doing write/read/compare tests on
342
randomly created data. It requires that a USB stick is plugged into an
343
available USB port before running the certification suite.
346
category_id: 2013.com.canonical.plainbox::usb
347
id: usb3/storage-preinserted
350
usb.usb3 == 'supported'
351
estimated_duration: 45.0
352
command: removable_storage_test -l usb && removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
354
Test USB 3.0 or 3.1 ports
356
Tests USB 3.0 ports on a system by doing write/read/compare tests on
357
randomly created data. It requires that a USB stick is plugged into an
358
available USB port before running the certification suite. Additionally, it
359
will only work with USB sticks and ports rated for USB 3.0 speeds or faster.
362
category_id: 2013.com.canonical.plainbox::usb
366
This test will check your USB connection.
368
1. Connect a USB storage device to an external USB slot on this computer.
369
2. An icon should appear on the Launcher.
370
3. Confirm that the icon appears.
372
5. Repeat with each external USB slot.
374
Do all USB slots work with the device?
377
category_id: 2013.com.canonical.plainbox::usb
381
estimated_duration: 45.00
382
command: removable_storage_test -s 268400000 -p 15 usb
384
This test will check that your USB 2.0 port transfers data at a
385
minimum expected speed.