~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-checkbox/jobs/usb.txt.in

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
unit: manifest entry
2
 
id: has_usb_type_c
3
 
_name: USB Type-C Support
4
 
value-type: bool
5
 
 
6
 
unit: manifest entry
7
 
id: has_usb_type_c_charging
8
 
_name: USB Type-C Charging Port
9
 
value-type: bool
10
 
 
11
 
plugin: shell
12
 
category_id: 2013.com.canonical.plainbox::usb
13
 
id: usb/detect
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.
18
 
 
19
 
plugin: user-interact-verify
20
 
category_id: 2013.com.canonical.plainbox::usb
21
 
id: usb/disk_detect
22
 
depends: usb/detect
23
 
estimated_duration: 1.0
24
 
command: removable_storage_test -l usb
25
 
_description:
26
 
 PURPOSE:
27
 
     This test will check that your system detects USB storage devices.
28
 
 STEPS:
29
 
     1. Plug in one or more USB keys or hard drives.
30
 
     2. Click on "Test".
31
 
 VERIFICATION:
32
 
     Were the drives detected?
33
 
 
34
 
plugin: user-interact-verify
35
 
category_id: 2013.com.canonical.plainbox::usb
36
 
id: usb/HID
37
 
depends: usb/detect
38
 
estimated_duration: 1.0
39
 
command: keyboard_test
40
 
_description:
41
 
 PURPOSE:
42
 
     This test will check that you can use a USB HID device
43
 
 STEPS:
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.
47
 
 VERIFICATION:
48
 
     Did the device work as expected?
49
 
 
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
55
 
depends: usb/detect
56
 
estimated_duration: 10.0
57
 
command: keyboard_test
58
 
_purpose:
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
61
 
_steps:
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.
65
 
_verification:
66
 
     Did the device work as expected?
67
 
 
68
 
plugin: user-interact-verify
69
 
category_id: 2013.com.canonical.plainbox::usb
70
 
id: usb-c/hid
71
 
imports: from 2013.com.canonical.plainbox import manifest
72
 
requires: manifest.has_usb_type_c
73
 
depends: usb/detect
74
 
estimated_duration: 10.0
75
 
command: keyboard_test
76
 
_purpose:
77
 
     This test will check that you can use a USB HID device plugged in a USB
78
 
     Type-C port
79
 
_steps:
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.
83
 
_verification:
84
 
     Did the device work as expected?
85
 
 
86
 
plugin: user-interact
87
 
category_id: 2013.com.canonical.plainbox::usb
88
 
id: usb/insert
89
 
depends: usb/detect
90
 
estimated_duration: 10.0
91
 
command: removable_storage_watcher insert usb
92
 
_description:
93
 
 PURPOSE:
94
 
     This test will check that the system correctly detects the insertion of
95
 
     a USB storage device
96
 
 STEPS:
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.
100
 
 VERIFICATION:
101
 
     The verification of this test is automated. Do not change the
102
 
     automatically selected result.
103
 
 
104
 
plugin: user-interact
105
 
category_id: 2013.com.canonical.plainbox::usb
106
 
id: usb3/insert
107
 
requires:
108
 
 usb.usb3 == 'supported'
109
 
estimated_duration: 10.0
110
 
command: removable_storage_watcher -m 500000000 insert usb
111
 
_description:
112
 
 PURPOSE:
113
 
     This test will check that the system correctly detects the insertion of
114
 
     a USB 3.0 storage device
115
 
 STEPS:
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.
119
 
 VERIFICATION:
120
 
     The verification of this test is automated. Do not change the
121
 
     automatically selected result.
122
 
 
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
127
 
requires:
128
 
 usb.usb3 == 'supported'
129
 
 manifest.has_usb_type_c
130
 
estimated_duration: 10.0
131
 
command: removable_storage_watcher -m 500000000 insert usb
132
 
_purpose:
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"
135
 
     adapter
136
 
_steps:
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.
141
 
_verification:
142
 
     The verification of this test is automated. Do not change the
143
 
     automatically selected result.
144
 
 
145
 
plugin: user-interact
146
 
category_id: 2013.com.canonical.plainbox::usb
147
 
id: usb-c/insert
148
 
imports: from 2013.com.canonical.plainbox import manifest
149
 
requires:
150
 
 usb.usb3 == 'supported'
151
 
 manifest.has_usb_type_c
152
 
estimated_duration: 10.0
153
 
command: removable_storage_watcher -m 500000000 insert usb
154
 
_purpose:
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
157
 
_steps:
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.
161
 
_verification:
162
 
     The verification of this test is automated. Do not change the
163
 
     automatically selected result.
164
 
 
165
 
plugin: user-interact
166
 
category_id: 2013.com.canonical.plainbox::usb
167
 
id: usb/remove
168
 
depends: usb/insert
169
 
estimated_duration: 10.0
170
 
command: removable_storage_watcher remove usb
171
 
_description:
172
 
 PURPOSE:
173
 
     This test will check that the system correctly detects the removal of
174
 
     a USB storage device
175
 
 STEPS:
176
 
     1. Click "Test" and remove the USB device.
177
 
        (Note: this test will time-out after 20 seconds.)
178
 
 VERIFICATION:
179
 
     The verification of this test is automated. Do not change the
180
 
     automatically selected result.
181
 
 
182
 
plugin: user-interact
183
 
category_id: 2013.com.canonical.plainbox::usb
184
 
id: usb3/remove
185
 
depends: usb3/insert
186
 
requires:
187
 
 usb.usb3 == 'supported'
188
 
estimated_duration: 10.0
189
 
command: removable_storage_watcher -m 500000000 remove usb
190
 
_description:
191
 
 PURPOSE:
192
 
     This test will check that the system correctly detects the removal of
193
 
     a USB 3.0 storage device
194
 
 STEPS:
195
 
     1. Click "Test" and remove the USB 3.0 device.
196
 
        (Note: this test will time-out after 20 seconds.)
197
 
 VERIFICATION:
198
 
     The verification of this test is automated. Do not change the
199
 
     automatically selected result.
200
 
 
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
206
 
requires:
207
 
 usb.usb3 == 'supported'
208
 
 manifest.has_usb_type_c
209
 
estimated_duration: 10.0
210
 
command: removable_storage_watcher -m 500000000 remove usb
211
 
_purpose:
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
214
 
     to Type-A" adapter.
215
 
_steps:
216
 
     1. Click "Test" and remove the USB 3 device.
217
 
        (Note: this test will time-out after 20 seconds.)
218
 
_verification:
219
 
     The verification of this test is automated. Do not change the
220
 
     automatically selected result.
221
 
 
222
 
plugin: user-interact
223
 
category_id: 2013.com.canonical.plainbox::usb
224
 
id: usb-c/remove
225
 
imports: from 2013.com.canonical.plainbox import manifest
226
 
depends: usb-c/insert
227
 
requires:
228
 
 usb.usb3 == 'supported'
229
 
 manifest.has_usb_type_c
230
 
estimated_duration: 10.0
231
 
command: removable_storage_watcher -m 500000000 remove usb
232
 
_purpose:
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.
235
 
_steps:
236
 
     1. Click "Test" and remove the USB 3 device.
237
 
        (Note: this test will time-out after 20 seconds.)
238
 
_verification:
239
 
     The verification of this test is automated. Do not change the
240
 
     automatically selected result.
241
 
 
242
 
plugin: user-interact-verify
243
 
category_id: 2013.com.canonical.plainbox::usb
244
 
id: usb/storage-transfer
245
 
depends: usb/insert
246
 
user: root
247
 
estimated_duration: 45.0
248
 
command: removable_storage_test -s 268400000 usb
249
 
_description:
250
 
 PURPOSE:
251
 
     This test will check your USB connection.
252
 
 STEPS:
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.
256
 
 VERIFICATION:
257
 
     The verification of this test is automated. Do not change the
258
 
     automatically selected result.
259
 
 
260
 
plugin: user-interact-verify
261
 
category_id: 2013.com.canonical.plainbox::usb
262
 
id: usb3/storage-transfer
263
 
requires:
264
 
 usb.usb3 == 'supported'
265
 
depends: usb3/insert
266
 
user: root
267
 
estimated_duration: 45.0
268
 
command: removable_storage_test -s 268400000 -m 500000000 usb
269
 
_description:
270
 
 PURPOSE:
271
 
     This test will check your USB 3.0 connection.
272
 
 STEPS:
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.
276
 
 VERIFICATION:
277
 
     The verification of this test is automated. Do not change the
278
 
     automatically selected result.
279
 
 
280
 
plugin: shell
281
 
category_id: 2013.com.canonical.plainbox::usb
282
 
id: usb/storage-automated
283
 
depends: usb/insert
284
 
user: root
285
 
estimated_duration: 45.0
286
 
command: removable_storage_test -s 268400000 usb
287
 
_description:
288
 
 This test is automated and executes after the usb/insert test is run.
289
 
 
290
 
plugin: shell
291
 
category_id: 2013.com.canonical.plainbox::usb
292
 
id: usb3/storage-automated
293
 
requires:
294
 
 usb.usb3 == 'supported'
295
 
depends: usb3/insert
296
 
user: root
297
 
estimated_duration: 45.0
298
 
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
299
 
_description:
300
 
 This test is automated and executes after the usb3/insert test is run.
301
 
 
302
 
plugin: shell
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
306
 
requires:
307
 
 usb.usb3 == 'supported'
308
 
 manifest.has_usb_type_c
309
 
depends: usb-c/c-to-a-adapter/insert
310
 
user: root
311
 
estimated_duration: 45.0
312
 
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
313
 
_description:
314
 
 This test is automated and executes after the usb-c/c-to-a-adapter/insert test
315
 
 is run.
316
 
 
317
 
plugin: shell
318
 
category_id: 2013.com.canonical.plainbox::usb
319
 
id: usb-c/storage-automated
320
 
imports: from 2013.com.canonical.plainbox import manifest
321
 
requires:
322
 
 usb.usb3 == 'supported'
323
 
 manifest.has_usb_type_c
324
 
depends: usb-c/insert
325
 
user: root
326
 
estimated_duration: 45.0
327
 
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
328
 
_description:
329
 
 This test is automated and executes after the usb-c/insert test
330
 
 is run.
331
 
 
332
 
plugin: shell
333
 
category_id: 2013.com.canonical.plainbox::usb
334
 
id: usb/storage-preinserted
335
 
user: root
336
 
estimated_duration: 45.0
337
 
command: removable_storage_test -l usb && removable_storage_test -s 268400000 usb
338
 
_summary:
339
 
 Test USB 2.0 or 1.1 ports
340
 
_description:
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.
344
 
 
345
 
plugin: shell
346
 
category_id: 2013.com.canonical.plainbox::usb
347
 
id: usb3/storage-preinserted
348
 
user: root
349
 
requires:
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
353
 
_summary: 
354
 
 Test USB 3.0 or 3.1 ports
355
 
_description:
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.
360
 
 
361
 
plugin: manual
362
 
category_id: 2013.com.canonical.plainbox::usb
363
 
id: usb/panels
364
 
_description:
365
 
 PURPOSE:
366
 
     This test will check your USB connection.
367
 
 STEPS:
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.
371
 
     4. Eject the device.
372
 
     5. Repeat with each external USB slot.
373
 
 VERIFICATION:
374
 
     Do all USB slots work with the device?
375
 
 
376
 
plugin: shell
377
 
category_id: 2013.com.canonical.plainbox::usb
378
 
id: usb/performance
379
 
depends: usb/insert
380
 
user: root
381
 
estimated_duration: 45.00
382
 
command: removable_storage_test -s 268400000 -p 15 usb
383
 
_description:
384
 
 This test will check that your USB 2.0 port transfers data at a
385
 
 minimum expected speed.