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

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Brendan Donegan
  • Date: 2013-06-03 11:12:58 UTC
  • mfrom: (2154.2.1 bug1185759)
  • Revision ID: tarmac-20130603111258-1b3m5ydvkf1accts
"[r=zkrynicki][bug=1185759][author=brendan-donegan] automatic merge by tarmac"

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
plugin: shell
2
 
category_id: 2013.com.canonical.plainbox::suspend
3
 
id: suspend/network_before_suspend
4
 
depends: ethernet/detect
5
 
estimated_duration: 1.2
6
 
_description: Record the current network before suspending.
7
 
command: set -o pipefail; gateway_ping_test | tee $PLAINBOX_SESSION_SHARE/network_before_suspend.txt
8
 
 
9
 
plugin: shell
10
 
category_id: 2013.com.canonical.plainbox::suspend
11
 
id: suspend/resolution_before_suspend
12
 
estimated_duration: 1.2
13
 
_description: Record the current resolution before suspending.
14
 
command: xrandr -q |grep '*'| awk '{print $1}' > $PLAINBOX_SESSION_SHARE/resolution_before_suspend.txt
15
 
 
16
 
unit: template
17
 
template-resource: graphics_card
18
 
plugin: shell
19
 
category_id: 2013.com.canonical.plainbox::suspend
20
 
id: suspend/{index}_resolution_before_suspend_{product_slug}
21
 
depends: graphics/{index}_switch_card_{product_slug}
22
 
estimated_duration: 1.2
23
 
_description: Record the current resolution before suspending.
24
 
command: xrandr -q |grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt
25
 
 
26
 
plugin: shell
27
 
category_id: 2013.com.canonical.plainbox::suspend
28
 
id: suspend/audio_before_suspend
29
 
estimated_duration: 1.0
30
 
requires:
31
 
 device.category == 'AUDIO'
32
 
 package.name == 'alsa-base'
33
 
_description: Record mixer settings before suspending.
34
 
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/audio_settings_before_suspend
35
 
 
36
 
plugin: shell
37
 
category_id: 2013.com.canonical.plainbox::suspend
38
 
id: suspend/cpu_before_suspend
39
 
estimated_duration: 1.2
40
 
_description: Verify that all the CPUs are online before suspending
41
 
command: cpuinfo_resource > $PLAINBOX_SESSION_SHARE/cpuinfo_before_suspend
42
 
 
43
 
plugin: shell
44
 
category_id: 2013.com.canonical.plainbox::suspend
45
 
id: suspend/memory_before_suspend
46
 
estimated_duration: 1.2
47
 
_description:
48
 
 Dumps memory info to a file for comparison after suspend test has been run
49
 
command: meminfo_resource > $PLAINBOX_SESSION_SHARE/meminfo_before_suspend
50
 
 
51
 
plugin: shell
52
 
category_id: 2013.com.canonical.plainbox::suspend
53
 
id: suspend/wireless_before_suspend
54
 
depends: wireless/wireless_connection
55
 
requires: device.category == 'WIRELESS'
56
 
command: nmcli -t -f UUID con status > $PLAINBOX_SESSION_SHARE/connections && connect_wireless && gateway_ping_test --interface=`(nmcli dev list 2>/dev/null || nmcli dev show) | grep -B 1 -e 'wireless' -e 'wifi' | grep GENERAL.DEVICE | awk '{print $2}'` && for con in `cat $PLAINBOX_SESSION_SHARE/connections`; do nmcli con up uuid "$con"; done
57
 
estimated_duration: 20.0
58
 
_description:
59
 
 This test disconnects all connections and then connects to the wireless
60
 
 interface. It then checks the connection to confirm it's working as expected.
61
 
 
62
 
unit: template
63
 
template-resource: device
64
 
template-filter: device.category == 'NETWORK'
65
 
plugin: shell
66
 
category_id: 2013.com.canonical.plainbox::suspend
67
 
id: suspend/iperf_before_suspend_ether_auto_device{__index__}_{interface}
68
 
depends: ethernet/detect
69
 
estimated_duration: 20.0
70
 
requires:
71
 
 package.name == 'iperf'
72
 
user: root
73
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
74
 
command: network -i {interface} -t iperf
75
 
_description:
76
 
 This test executes iperf connection performance/stability against device {__index__} ({interface}) before suspend.
77
 
 
78
 
unit: template
79
 
template-resource: device
80
 
template-filter: device.category == 'WIRELESS'
81
 
plugin: shell
82
 
category_id: 2013.com.canonical.plainbox::suspend
83
 
id: suspend/iperf_before_suspend_wifi_auto_device{__index__}_{interface}
84
 
depends: wireless/wireless_connection
85
 
estimated_duration: 20.0
86
 
requires:
87
 
 package.name == 'iperf'
88
 
user: root
89
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
90
 
command: network -i {interface} -t iperf
91
 
_description:
92
 
 This test executes iperf connection performance/stability against device {__index__} ({interface}) before suspend.
93
 
 
94
 
plugin: shell
95
 
category_id: 2013.com.canonical.plainbox::suspend
96
 
id: suspend/iperf_before_suspend_mobilebroadband_gsm_auto
97
 
depends: mobilebroadband/gsm_connection
98
 
estimated_duration: 20.0
99
 
user: root
100
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
101
 
command:   
102
 
 INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 13`
103
 
 [ -z $INTERFACE ] && exit 1
104
 
 network test -i $INTERFACE -t iperf
105
 
_description:
106
 
 This test executes iperf connection performance/stability against the broadband device found on the system before suspend.
107
 
 
108
 
plugin: shell
109
 
category_id: 2013.com.canonical.plainbox::suspend
110
 
id: suspend/iperf_before_suspend_mobilebroadband_cdma_auto
111
 
depends: mobilebroadband/cdma_connection
112
 
estimated_duration: 20.0
113
 
user: root
114
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
115
 
command:   
116
 
 INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep cdma |cut -d ":" -f 13`
117
 
 [ -z $INTERFACE ] && exit 1
118
 
 network test -i $INTERFACE -t iperf
119
 
_description:
120
 
 This test executes iperf connection performance/stability against the broadband device found on the system before suspend.
121
 
 
122
 
plugin: shell
123
 
category_id: 2013.com.canonical.plainbox::suspend
124
 
id: suspend/bluetooth_obex_send_before_suspend
125
 
estimated_duration: 10.0
126
 
requires:
127
 
 package.name == 'bluez'
128
 
 package.name == 'obexftp'
129
 
 device.category == 'BLUETOOTH'
130
 
command:
131
 
  if [ -z "$BTDEVADDR" ]
132
 
  then
133
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
134
 
    exit 1
135
 
  fi
136
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
137
 
  then
138
 
    echo "rfkill list shows BT is hard blocked"
139
 
  fi
140
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
141
 
  then
142
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
143
 
    rfkill unblock bluetooth
144
 
    sleep 3
145
 
  fi
146
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR send 2>&1 | ansi_parser
147
 
_description:
148
 
 This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
149
 
 
150
 
plugin: shell
151
 
category_id: 2013.com.canonical.plainbox::suspend
152
 
id: suspend/bluetooth_obex_browse_before_suspend
153
 
estimated_duration: 10.0
154
 
requires:
155
 
 package.name == 'bluez'
156
 
 package.name == 'obexftp'
157
 
 device.category == 'BLUETOOTH'
158
 
command:
159
 
  if [ -z "$BTDEVADDR" ]
160
 
  then
161
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
162
 
    exit 1
163
 
  fi
164
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
165
 
  then
166
 
    echo "rfkill list shows BT is hard blocked"
167
 
  fi
168
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
169
 
  then
170
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
171
 
    rfkill unblock bluetooth
172
 
    sleep 3
173
 
  fi
174
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR browse 2>&1 | ansi_parser
175
 
_description:
176
 
 This is an automated Bluetooth test. It emulates browsing on a remote device specified by the BTDEVADDR environment variable.
177
 
 
178
 
plugin: shell
179
 
category_id: 2013.com.canonical.plainbox::suspend
180
 
id: suspend/bluetooth_obex_get_before_suspend
181
 
estimated_duration: 20.0
182
 
requires:
183
 
 package.name == 'bluez'
184
 
 package.name == 'obexftp'
185
 
 device.category == 'BLUETOOTH'
186
 
command:
187
 
  if [ -z "$BTDEVADDR" ]
188
 
  then
189
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
190
 
    exit 1
191
 
  fi
192
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
193
 
  then
194
 
    echo "rfkill list shows BT is hard blocked"
195
 
  fi
196
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
197
 
  then
198
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
199
 
    rfkill unblock bluetooth
200
 
    sleep 3
201
 
  fi
202
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR get 2>&1 | ansi_parser
203
 
_description:
204
 
 This is an automated Bluetooth test. It receives the given file from a remote host specified by the BTDEVADDR environment variable
205
 
 
206
 
plugin: user-interact-verify
207
 
category_id: 2013.com.canonical.plainbox::suspend
208
 
id: suspend/suspend_advanced
209
 
requires:
210
 
 sleep.mem == 'supported'
211
 
 rtc.state == 'supported'
212
 
user: root
213
 
environ: PLAINBOX_SESSION_SHARE
214
 
command:
215
 
 if type -P fwts >/dev/null; then
216
 
  echo "Calling fwts"
217
 
  set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/suspend_single -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/suspend_single_times.log
218
 
 else
219
 
  echo "Calling sleep_test"
220
 
  set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/2_suspend_single_times.log
221
 
 fi
222
 
estimated_duration: 90.0
223
 
_description:
224
 
 PURPOSE:
225
 
     This test will check suspend and resume
226
 
 STEPS:
227
 
     1. Click "Test" and your system will suspend for about 30 - 60 seconds
228
 
     2. Observe the Power LED to see if it blinks or changes color during suspend
229
 
     3. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually
230
 
     4. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed
231
 
 VERIFICATION:
232
 
     Did your system suspend and resume correctly?
233
 
     (NOTE: Please only consider whether the system successfully suspended and resumed. Power/Suspend LED verification will occur after this test is completed.)
234
 
 
235
 
unit: template
236
 
template-resource: graphics_card
237
 
plugin: user-interact-verify
238
 
category_id: 2013.com.canonical.plainbox::suspend
239
 
id: suspend/{index}_suspend_after_switch_to_card_{product_slug}
240
 
requires:
241
 
 sleep.mem == 'supported'
242
 
 rtc.state == 'supported'
243
 
depends: graphics/{index}_switch_card_{product_slug}
244
 
user: root
245
 
environ: PLAINBOX_SESSION_SHARE
246
 
command:
247
 
 if type -P fwts >/dev/null; then
248
 
  echo "Calling fwts"
249
 
  set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/{index}_suspend_single -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
250
 
 else
251
 
  echo "Calling sleep_test"
252
 
  set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
253
 
 fi
254
 
estimated_duration: 90.0
255
 
_summary: Test suspend/resume after switching to {vendor} {product}
256
 
_description:
257
 
 PURPOSE:
258
 
     This test will check suspend and resume after switching to {vendor} {product} graphics card.
259
 
 STEPS:
260
 
     1. Ensure you have switched to {vendor} {product} graphics card.
261
 
     2. Click "Test" and your system will suspend for about 30 - 60 seconds
262
 
     3. Observe the Power LED to see if it blinks or changes color during suspend
263
 
     4. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually
264
 
     5. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed
265
 
 VERIFICATION:
266
 
     Did your system suspend and resume correctly after switching to {vendor} {product} graphics card?
267
 
     (NOTE: Please only consider whether the system successfully suspended and resumed. Power/Suspend LED verification will occur after this test is completed.)
268
 
 
269
 
plugin: shell
270
 
category_id: 2013.com.canonical.plainbox::suspend
271
 
id: suspend/suspend_advanced_auto
272
 
requires:
273
 
    sleep.mem == 'supported'
274
 
    rtc.state == 'supported'
275
 
_description:
276
 
 This is the automated version of suspend/suspend_advanced.
277
 
user: root
278
 
environ: PLAINBOX_SESSION_SHARE
279
 
command: set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/suspend_single -s s3 --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 | tee $PLAINBOX_SESSION_SHARE/suspend_single_times.log
280
 
estimated_duration: 90.000
281
 
 
282
 
unit: template
283
 
template-resource: graphics_card
284
 
plugin: user-interact-verify
285
 
category_id: 2013.com.canonical.plainbox::suspend
286
 
id: suspend/{index}_hybrid_sleep_{product_slug}
287
 
user: root
288
 
command:
289
 
 set -o pipefail; fwts_test -f none -l $PLAINBOX_SESSION_SHARE/{index}_hybrid_sleep_single -s s3 --s3-hybrid --s3-sleep-delay=30 --s3-device-check --s3-device-check-delay=45 --pm-method=pm-utils | tee $PLAINBOX_SESSION_SHARE/{index}_hybrid_sleep_single_times.log
290
 
estimated_duration: 90.0
291
 
_description:
292
 
 PURPOSE:
293
 
     This test will check hybrid sleep and resume
294
 
 STEPS:
295
 
     1. Click "Test" and your system will go into hybrid sleep mode for about 30 - 60 seconds
296
 
     2. Observe the Power LED to see if it blinks or changes color during suspend
297
 
     3. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually
298
 
     4. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed
299
 
 VERIFICATION:
300
 
     Did your system enter hybrid sleep and then resume correctly?
301
 
 
302
 
plugin: shell
303
 
category_id: 2013.com.canonical.plainbox::suspend
304
 
id: suspend/suspend-single-log-check
305
 
estimated_duration: 1.2
306
 
command: [ -e $PLAINBOX_SESSION_SHARE/suspend_single.log ] && sleep_test_log_check -v s3 $PLAINBOX_SESSION_SHARE/suspend_single.log
307
 
_description:
308
 
 Automated check of the suspend log to look for errors reported by fwts
309
 
 
310
 
plugin: attachment
311
 
category_id: 2013.com.canonical.plainbox::suspend
312
 
id: suspend/suspend-single-log-attach
313
 
command: [ -e $PLAINBOX_SESSION_SHARE/suspend_single.log ] && cat $PLAINBOX_SESSION_SHARE/suspend_single.log
314
 
_description:
315
 
 Attaches the log from the single suspend/resume test to the results
316
 
 
317
 
unit: template
318
 
template-resource: graphics_card
319
 
plugin: attachment
320
 
category_id: 2013.com.canonical.plainbox::suspend
321
 
id: suspend/{index}_suspend-single-log-attach_{product_slug}
322
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
323
 
command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single.log ] && cat $PLAINBOX_SESSION_SHARE/{index}_suspend_single.log
324
 
_description:
325
 
 Attaches the log from the single suspend/resume test to the results
326
 
 
327
 
unit: template
328
 
template-resource: graphics_card
329
 
plugin: shell
330
 
category_id: 2013.com.canonical.plainbox::suspend
331
 
id: suspend/{index}_hybrid-sleep-single-log-check
332
 
depends: suspend/{index}_hybrid_sleep_{product_slug}
333
 
estimated_duration: 1.2
334
 
command: [ -e $PLAINBOX_SESSION_SHARE/{index}_hybrid_sleep_single.log ] && sleep_test_log_check -v s3 $PLAINBOX_SESSION_SHARE/{index}_hybrid_sleep_single.log
335
 
_description:
336
 
 Automated check of the hybrid sleep log to look for errors reported by fwts
337
 
 
338
 
unit: template
339
 
template-resource: graphics_card
340
 
plugin: attachment
341
 
category_id: 2013.com.canonical.plainbox::suspend
342
 
id: suspend/{index}_hybrid-sleep-single-log-attach_{product_slug}
343
 
depends: suspend/{index}_hybrid_sleep_{product_slug}
344
 
command: [ -e $PLAINBOX_SESSION_SHARE/{index}_hybrid_sleep_single.log ] && cat $PLAINBOX_SESSION_SHARE/{index}_hybrid_sleep_single.log
345
 
_description:
346
 
 Attaches the log from the single hybrid sleep/resume test to the results
347
 
 
348
 
plugin: shell
349
 
category_id: 2013.com.canonical.plainbox::suspend
350
 
id: suspend/suspend-time-check
351
 
estimated_duration: 1.2
352
 
command: [ -e $PLAINBOX_SESSION_SHARE/suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/suspend_single_times.log
353
 
_description:
354
 
 Checks the sleep times to ensure that a machine suspends and resumes within a given threshold
355
 
 
356
 
unit: template
357
 
template-resource: graphics_card
358
 
plugin: shell
359
 
category_id: 2013.com.canonical.plainbox::suspend
360
 
id: suspend/{index}_suspend-time-check_{product_slug}
361
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
362
 
estimated_duration: 1.2
363
 
command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
364
 
_description: Checks the sleep times to ensure that a machine suspends and resumes within a given threshold
365
 
 
366
 
plugin: user-interact-verify
367
 
category_id: 2013.com.canonical.plainbox::suspend
368
 
id: power-management/usb_wakeup_keyboard
369
 
user: root
370
 
depends: suspend/suspend_advanced
371
 
estimated_duration: 120.0
372
 
command: pm-suspend
373
 
_description:
374
 
 PURPOSE:
375
 
     Wake up by USB keyboard
376
 
 STEPS:
377
 
     1. Enable "Wake by USB KB/Mouse" item in BIOS
378
 
     2. Press "Test" to enter suspend (S3) mode
379
 
     3. Press any key of USB keyboard to wake system up
380
 
 VERIFICATION:
381
 
     Did the system wake up from suspend mode when you pressed a keyboard key?
382
 
 
383
 
plugin: user-interact-verify
384
 
category_id: 2013.com.canonical.plainbox::suspend
385
 
id: power-management/usb_wakeup_mouse
386
 
user: root
387
 
depends: suspend/suspend_advanced
388
 
estimated_duration: 120.0
389
 
command: pm-suspend
390
 
_description:
391
 
 PURPOSE:
392
 
     Wake up by USB mouse
393
 
 STEPS:
394
 
     1. Enable "Wake by USB KB/Mouse" item in BIOS
395
 
     2. Press "Test" to enter suspend (S3) mode
396
 
     3. Press any button of USB mouse to wake system up
397
 
 VERIFICATION:
398
 
     Did the system wake up from suspend mode when you pressed the mouse button?
399
 
 
400
 
plugin: shell
401
 
category_id: 2013.com.canonical.plainbox::suspend
402
 
id: suspend/network_after_suspend
403
 
estimated_duration: 20.0
404
 
depends: suspend/suspend_advanced suspend/network_before_suspend
405
 
_description: Test the network after resuming.
406
 
command: network_wait; gateway_ping_test | diff $PLAINBOX_SESSION_SHARE/network_before_suspend.txt -
407
 
 
408
 
plugin: shell
409
 
category_id: 2013.com.canonical.plainbox::suspend
410
 
id: suspend/resolution_after_suspend
411
 
depends: suspend/suspend_advanced suspend/resolution_before_suspend
412
 
estimated_duration: 1.2
413
 
_description: Test to see that we have the same resolution after resuming as before.
414
 
command: xrandr -q |grep '*'| awk '{print $1}' | diff $PLAINBOX_SESSION_SHARE/resolution_before_suspend.txt -
415
 
 
416
 
unit: template
417
 
template-resource: graphics_card
418
 
plugin: shell
419
 
category_id: 2013.com.canonical.plainbox::suspend
420
 
id: suspend/{index}_resolution_after_suspend_{product_slug}
421
 
estimated_duration: 1.2
422
 
depends: suspend/{index}_resolution_before_suspend_{product_slug}
423
 
_description: Test to see that we have the same resolution after resuming as before.
424
 
command: xrandr -q |grep '*'| awk '{{print $1}}' | diff $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt -
425
 
 
426
 
plugin: shell
427
 
category_id: 2013.com.canonical.plainbox::suspend
428
 
id: suspend/audio_after_suspend
429
 
estimated_duration: 1.0
430
 
requires:
431
 
 device.category == 'AUDIO'
432
 
 package.name == 'alsa-base'
433
 
depends: suspend/suspend_advanced suspend/audio_before_suspend
434
 
_description: Verify that mixer settings after suspend are the same as before suspend.
435
 
command:
436
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/audio_settings_after_suspend
437
 
  diff $PLAINBOX_SESSION_SHARE/audio_settings_before_suspend $PLAINBOX_SESSION_SHARE/audio_settings_after_suspend
438
 
 
439
 
plugin: shell
440
 
category_id: 2013.com.canonical.plainbox::suspend
441
 
id: suspend/audio_after_suspend_auto
442
 
estimated_duration: 1.2
443
 
requires:
444
 
 device.category == 'AUDIO'
445
 
 package.name == 'alsa-base'
446
 
depends: suspend/suspend_advanced_auto suspend/audio_before_suspend
447
 
_description: Verify that mixer settings after suspend are the same as before suspend.
448
 
command:
449
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/audio_settings_after_suspend
450
 
  diff $PLAINBOX_SESSION_SHARE/audio_settings_before_suspend $PLAINBOX_SESSION_SHARE/audio_settings_after_suspend
451
 
 
452
 
plugin: user-interact
453
 
category_id: 2013.com.canonical.plainbox::suspend
454
 
id: suspend/speaker-headphone-plug-detection-after-suspend
455
 
depends: suspend/suspend_advanced
456
 
estimated_duration: 60.0
457
 
requires:
458
 
 device.category == 'AUDIO'
459
 
 package.name == 'pulseaudio-utils'
460
 
command: pulse-active-port-change sinks
461
 
_description:
462
 
 PURPOSE:
463
 
     Check that system detects speakers or headphones being plugged in after suspend
464
 
 STEPS:
465
 
     1. Prepare a pair of headphones or speakers with a standard 3.5mm jack
466
 
     2. Locate the speaker / headphone jack on the device under test
467
 
     3. Run the test (you have 30 seconds from now on)
468
 
     4. Plug headphones or speakers into the appropriate jack
469
 
     5. Unplug the device for subsequent tests.
470
 
 VERIFICATION:
471
 
     Verification is automatic, no action is required.
472
 
     The test times out after 30 seconds (and fails in that case).
473
 
 
474
 
plugin: user-interact
475
 
category_id: 2013.com.canonical.plainbox::suspend
476
 
id: suspend/microphone-plug-detection-after-suspend
477
 
depends: suspend/suspend_advanced
478
 
estimated_duration: 60.0
479
 
requires:
480
 
 device.category == 'AUDIO'
481
 
 package.name == 'pulseaudio-utils'
482
 
command: pulse-active-port-change sources
483
 
_description:
484
 
 PURPOSE:
485
 
     Check that system detects a microphone being plugged in after suspend
486
 
 STEPS:
487
 
     1. Prepare a microphone with a standard 3.5mm jack
488
 
     2. Locate the microphone jack on the device under test.
489
 
        Keep in mind that it may be shared with the headphone jack.
490
 
     3. Run the test (you have 30 seconds from now on)
491
 
     4. Plug the microphone into the appropriate jack
492
 
     5. Unplug the device for subsequent tests.
493
 
 VERIFICATION:
494
 
     Verification is automatic, no action is required.
495
 
     The test times out after 30 seconds (and fails in that case).
496
 
 
497
 
plugin: user-interact-verify
498
 
category_id: 2013.com.canonical.plainbox::suspend
499
 
id: suspend/playback_headphones-after-suspend
500
 
estimated_duration: 20.0
501
 
depends: audio/list_devices suspend/suspend_advanced
502
 
requires:
503
 
 device.category == 'AUDIO'
504
 
 package.name == 'alsa-base'
505
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
506
 
 package.name == 'pulseaudio-utils'
507
 
command:
508
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
509
 
  audio_settings set --device=pci --volume=50
510
 
  gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
511
 
  EXIT_CODE=$?
512
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
513
 
  exit $EXIT_CODE
514
 
_description:
515
 
 PURPOSE:
516
 
     This test will check that headphones connector works correctly after suspend
517
 
 STEPS:
518
 
     1. Connect a pair of headphones to your audio device
519
 
     2. Commence the test to play a sound to your audio device
520
 
 VERIFICATION:
521
 
     Did you hear a sound through the headphones and did the sound play without any distortion, clicks or other strange noises from your headphones?
522
 
 
523
 
plugin: user-interact-verify
524
 
category_id: 2013.com.canonical.plainbox::suspend
525
 
id: suspend/alsa_record_playback_external-after-suspend
526
 
estimated_duration: 20.0
527
 
depends: suspend/playback_headphones-after-suspend suspend/suspend_advanced
528
 
requires:
529
 
 device.category == 'AUDIO'
530
 
 package.name == 'alsa-base'
531
 
 package.name == 'pulseaudio-utils'
532
 
 package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
533
 
command:
534
 
 audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
535
 
 audio_settings set --device=pci --volume=50
536
 
 alsa_record_playback
537
 
 EXIT_CODE=$?
538
 
 audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
539
 
 exit $EXIT_CODE
540
 
_description:
541
 
 PURPOSE:
542
 
     This test will check that recording sound using an external microphone works correctly after suspend
543
 
 STEPS:
544
 
     1. Connect a microphone to your microphone port
545
 
     2. Click "Test", then speak into the external microphone
546
 
     3. After a few seconds, your speech will be played back to you
547
 
 VERIFICATION:
548
 
     Did you hear your speech played back?
549
 
 
550
 
plugin: shell
551
 
category_id: 2013.com.canonical.plainbox::suspend
552
 
id: suspend/cpu_after_suspend
553
 
estimated_duration: 1.2
554
 
depends: suspend/suspend_advanced suspend/cpu_before_suspend
555
 
_description: Verify that all CPUs are online after resuming.
556
 
command: cpuinfo_resource | diff $PLAINBOX_SESSION_SHARE/cpuinfo_before_suspend -
557
 
 
558
 
plugin: shell
559
 
category_id: 2013.com.canonical.plainbox::suspend
560
 
id: suspend/cpu_after_suspend_auto
561
 
estimated_duration: 1.2
562
 
depends: suspend/suspend_advanced_auto suspend/cpu_before_suspend
563
 
_description: Verify that all CPUs are online after resuming.
564
 
command: cpuinfo_resource | diff $PLAINBOX_SESSION_SHARE/cpuinfo_before_suspend -
565
 
 
566
 
plugin: shell
567
 
category_id: 2013.com.canonical.plainbox::suspend
568
 
id: suspend/memory_after_suspend
569
 
estimated_duration: 1.2
570
 
depends: suspend/suspend_advanced suspend/memory_before_suspend
571
 
_description:
572
 
 Verify that all memory is available after resuming from suspend.
573
 
command: meminfo_resource | diff $PLAINBOX_SESSION_SHARE/meminfo_before_suspend -
574
 
 
575
 
plugin: shell
576
 
category_id: 2013.com.canonical.plainbox::suspend
577
 
id: suspend/memory_after_suspend_auto
578
 
estimated_duration: 1.2
579
 
depends: suspend/suspend_advanced_auto suspend/memory_before_suspend
580
 
_description:
581
 
 Verify that all memory is available after resuming from suspend.
582
 
command: meminfo_resource | diff $PLAINBOX_SESSION_SHARE/meminfo_before_suspend -
583
 
 
584
 
plugin: manual
585
 
category_id: 2013.com.canonical.plainbox::suspend
586
 
id: suspend/display_after_suspend
587
 
estimated_duration: 120.0
588
 
depends: suspend/suspend_advanced
589
 
_description:
590
 
 PURPOSE:
591
 
     This test will check that the display is correct after suspend and resume
592
 
 STEPS:
593
 
     1. Check that your display does not show up visual artifacts after resuming.
594
 
 VERIFICATION:
595
 
     Does the display work normally after resuming from suspend?
596
 
 
597
 
unit: template
598
 
template-resource: graphics_card
599
 
plugin: manual
600
 
category_id: 2013.com.canonical.plainbox::suspend
601
 
id: suspend/{index}_display_after_suspend_{product_slug}
602
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
603
 
_summary: Test display function after suspend for {vendor} {product}
604
 
_description:
605
 
 PURPOSE:
606
 
     This test will check that the display is correct after suspend and resume on the {vendor} {product} graphics card.
607
 
 STEPS:
608
 
     1. Check that your display does not show up visual artifacts after resuming.
609
 
 VERIFICATION:
610
 
     Does the display work normally after resuming from suspend using the {vendor} {product} graphics card?
611
 
 
612
 
plugin: shell
613
 
category_id: 2013.com.canonical.plainbox::suspend
614
 
id: suspend/wireless_after_suspend
615
 
depends: suspend/suspend_advanced suspend/wireless_before_suspend
616
 
requires:
617
 
 device.category == 'WIRELESS'
618
 
command: connect_wireless && gateway_ping_test --interface=`(nmcli dev list 2>/dev/null || nmcli dev show) | grep -B 1 -e wireless -e wifi | grep GENERAL.DEVICE | awk '{print $2}'` && for con in `cat $PLAINBOX_SESSION_SHARE/connections`; do nmcli con up uuid "$con"; done
619
 
estimated_duration: 20.0
620
 
_description:
621
 
 This test checks that the wireless interface is working after suspending the system. It
622
 
 disconnects all interfaces and then connects to the wireless interface and checks that the
623
 
 connection is working as expected.
624
 
 
625
 
plugin: shell
626
 
category_id: 2013.com.canonical.plainbox::suspend
627
 
id: suspend/wireless_connection_after_suspend_wpa_bg
628
 
depends: suspend/suspend_advanced
629
 
estimated_duration: 20.0
630
 
requires:
631
 
 device.category == 'WIRELESS'
632
 
 environment.ROUTERS == 'multiple'
633
 
user: root
634
 
environ: WPA_BG_SSID WPA_BG_PSK
635
 
command:
636
 
    trap "nmcli con delete id $WPA_BG_SSID" EXIT
637
 
    if create_connection wifi $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK; then
638
 
        connect_wireless # lp:1471663
639
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
640
 
        iw dev $INTERFACE link
641
 
        gateway_ping_test --interface=$INTERFACE
642
 
        STATUS=$?
643
 
        # We reconnect the Ethernet connection if any (lp:1471663)
644
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
645
 
        if [[ ! -z $WIRED ]]; then
646
 
            nmcli c up uuid $WIRED
647
 
        fi
648
 
        exit $STATUS
649
 
    else
650
 
        exit 1
651
 
    fi
652
 
_description:
653
 
 Tests that the systems wireless hardware can connect to a router using WPA
654
 
 security and the 802.11b/g protocols after the system has been suspended.
655
 
 
656
 
plugin: shell
657
 
category_id: 2013.com.canonical.plainbox::suspend
658
 
id: suspend/wireless_connection_after_suspend_open_bg
659
 
depends: suspend/suspend_advanced
660
 
estimated_duration: 1.2
661
 
requires:
662
 
 device.category == 'WIRELESS'
663
 
 environment.ROUTERS == 'multiple'
664
 
user: root
665
 
environ: OPEN_BG_SSID
666
 
command:
667
 
    trap "nmcli con delete id $OPEN_BG_SSID" EXIT
668
 
    if create_connection wifi $OPEN_BG_SSID; then
669
 
        connect_wireless # lp:1471663
670
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
671
 
        iw dev $INTERFACE link
672
 
        gateway_ping_test --interface=$INTERFACE
673
 
        STATUS=$?
674
 
        # We reconnect the Ethernet connection if any (lp:1471663)
675
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
676
 
        if [[ ! -z $WIRED ]]; then
677
 
            nmcli c up uuid $WIRED
678
 
        fi
679
 
        exit $STATUS
680
 
    else
681
 
        exit 1
682
 
    fi
683
 
_description:
684
 
 Tests that the systems wireless hardware can connect to a router using no
685
 
 security and the 802.11b/g protocols after the system has been suspended.
686
 
 
687
 
plugin: shell
688
 
category_id: 2013.com.canonical.plainbox::suspend
689
 
id: suspend/wireless_connection_after_suspend_wpa_n
690
 
depends: suspend/suspend_advanced
691
 
estimated_duration: 1.2
692
 
requires:
693
 
 device.category == 'WIRELESS'
694
 
 environment.ROUTERS == 'multiple'
695
 
user: root
696
 
environ: WPA_N_SSID WPA_N_PSK
697
 
command:
698
 
    trap "nmcli con delete id $WPA_N_SSID" EXIT
699
 
    if create_connection wifi $WPA_N_SSID --security=wpa --key=$WPA_N_PSK; then
700
 
        connect_wireless # lp:1471663
701
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
702
 
        iw dev $INTERFACE link
703
 
        gateway_ping_test --interface=$INTERFACE
704
 
        STATUS=$?
705
 
        # We reconnect the Ethernet connection if any (lp:1471663)
706
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
707
 
        if [[ ! -z $WIRED ]]; then
708
 
            nmcli c up uuid $WIRED
709
 
        fi
710
 
        exit $STATUS
711
 
    else
712
 
        exit 1
713
 
    fi
714
 
_description:
715
 
 Tests that the systems wireless hardware can connect to a router using WPA
716
 
 security and the 802.11n protocol after the system has been suspended.
717
 
 
718
 
plugin: shell
719
 
category_id: 2013.com.canonical.plainbox::suspend
720
 
id: suspend/wireless_connection_after_suspend_open_n
721
 
depends: suspend/suspend_advanced
722
 
estimated_duration: 1.2
723
 
requires:
724
 
 device.category == 'WIRELESS'
725
 
 environment.ROUTERS == 'multiple'
726
 
user: root
727
 
environ: OPEN_N_SSID
728
 
command:
729
 
    trap "nmcli con delete id $OPEN_N_SSID" EXIT
730
 
    if create_connection wifi $OPEN_N_SSID; then
731
 
        connect_wireless # lp:1471663
732
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
733
 
        iw dev $INTERFACE link
734
 
        gateway_ping_test --interface=$INTERFACE
735
 
        STATUS=$?
736
 
        # We reconnect the Ethernet connection if any (lp:1471663)
737
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
738
 
        if [[ ! -z $WIRED ]]; then
739
 
            nmcli c up uuid $WIRED
740
 
        fi
741
 
        exit $STATUS
742
 
    else
743
 
        exit 1
744
 
    fi
745
 
_description:
746
 
 Tests that the systems wireless hardware can connect to a router using no
747
 
 security and the 802.11n protocol after the system has been suspended.
748
 
 
749
 
plugin: shell
750
 
category_id: 2013.com.canonical.plainbox::suspend
751
 
id: suspend/wireless_connection_after_suspend_wpa_ac
752
 
depends: suspend/suspend_advanced
753
 
estimated_duration: 1.2
754
 
requires:
755
 
 device.category == 'WIRELESS'
756
 
 environment.ROUTERS == 'multiple'
757
 
 IEEE_80211.ac == 'supported'
758
 
user: root
759
 
environ: WPA_AC_SSID WPA_AC_PSK
760
 
command:
761
 
    trap "nmcli con delete id $WPA_AC_SSID" EXIT
762
 
    if create_connection wifi $WPA_AC_SSID --security=wpa --key=$WPA_AC_PSK; then
763
 
        connect_wireless # lp:1471663
764
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
765
 
        iw dev $INTERFACE link
766
 
        gateway_ping_test --interface=$INTERFACE
767
 
        STATUS=$?
768
 
        # We reconnect the Ethernet connection if any (lp:1471663)
769
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
770
 
        if [[ ! -z $WIRED ]]; then
771
 
            nmcli c up uuid $WIRED
772
 
        fi
773
 
        exit $STATUS
774
 
    else
775
 
        exit 1
776
 
    fi
777
 
_description:
778
 
 Tests that the systems wireless hardware can connect to a router using WPA
779
 
 security and the 802.11ac protocol after the system has been suspended.
780
 
 
781
 
plugin: shell
782
 
category_id: 2013.com.canonical.plainbox::suspend
783
 
id: suspend/wireless_connection_after_suspend_open_ac
784
 
depends: suspend/suspend_advanced
785
 
estimated_duration: 1.2
786
 
requires:
787
 
 device.category == 'WIRELESS'
788
 
 environment.ROUTERS == 'multiple'
789
 
 IEEE_80211.ac == 'supported'
790
 
user: root
791
 
environ: OPEN_AC_SSID
792
 
command:
793
 
    trap "nmcli con delete id $OPEN_AC_SSID" EXIT
794
 
    if create_connection wifi $OPEN_AC_SSID; then
795
 
        connect_wireless # lp:1471663
796
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
797
 
        iw dev $INTERFACE link
798
 
        gateway_ping_test --interface=$INTERFACE
799
 
        STATUS=$?
800
 
        # We reconnect the Ethernet connection if any (lp:1471663)
801
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
802
 
        if [[ ! -z $WIRED ]]; then
803
 
            nmcli c up uuid $WIRED
804
 
        fi
805
 
        exit $STATUS
806
 
    else
807
 
        exit 1
808
 
    fi
809
 
_description:
810
 
 Tests that the systems wireless hardware can connect to a router using no
811
 
 security and the 802.11ac protocol after the system has been suspended.
812
 
 
813
 
plugin: shell
814
 
category_id: 2013.com.canonical.plainbox::suspend
815
 
id: suspend/wireless_connection_after_suspend_wpa_bg_auto
816
 
depends: suspend/suspend_advanced_auto
817
 
estimated_duration: 1.2
818
 
requires:
819
 
 device.category == 'WIRELESS'
820
 
 environment.ROUTERS == 'multiple'
821
 
user: root
822
 
environ: WPA_BG_SSID WPA_BG_PSK
823
 
command:
824
 
    trap "nmcli con delete id $WPA_BG_SSID" EXIT
825
 
    if create_connection wifi $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK; then
826
 
        connect_wireless # lp:1471663
827
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
828
 
        iw dev $INTERFACE link
829
 
        gateway_ping_test --interface=$INTERFACE
830
 
        STATUS=$?
831
 
        # We reconnect the Ethernet connection if any (lp:1471663)
832
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
833
 
        if [[ ! -z $WIRED ]]; then
834
 
            nmcli c up uuid $WIRED
835
 
        fi
836
 
        exit $STATUS
837
 
    else
838
 
        exit 1
839
 
    fi
840
 
_description:
841
 
 Tests that the systems wireless hardware can connect to a router using WPA
842
 
 security and the 802.11b/g protocols after the system has been suspended.
843
 
 
844
 
plugin: shell
845
 
category_id: 2013.com.canonical.plainbox::suspend
846
 
id: suspend/wireless_connection_after_suspend_open_bg_auto
847
 
depends: suspend/suspend_advanced_auto
848
 
estimated_duration: 1.2
849
 
requires:
850
 
 device.category == 'WIRELESS'
851
 
 environment.ROUTERS == 'multiple'
852
 
user: root
853
 
environ: OPEN_BG_SSID
854
 
command:
855
 
    trap "nmcli con delete id $OPEN_BG_SSID" EXIT
856
 
    if create_connection wifi $OPEN_BG_SSID; then
857
 
        connect_wireless # lp:1471663
858
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
859
 
        iw dev $INTERFACE link
860
 
        gateway_ping_test --interface=$INTERFACE
861
 
        STATUS=$?
862
 
        # We reconnect the Ethernet connection if any (lp:1471663)
863
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
864
 
        if [[ ! -z $WIRED ]]; then
865
 
            nmcli c up uuid $WIRED
866
 
        fi
867
 
        exit $STATUS
868
 
    else
869
 
        exit 1
870
 
    fi
871
 
_description:
872
 
 Tests that the systems wireless hardware can connect to a router using no
873
 
 security and the 802.11b/g protocols after the system has been suspended.
874
 
 
875
 
plugin: shell
876
 
category_id: 2013.com.canonical.plainbox::suspend
877
 
id: suspend/wireless_connection_after_suspend_wpa_n_auto
878
 
depends: suspend/suspend_advanced_auto
879
 
estimated_duration: 1.2
880
 
requires:
881
 
 device.category == 'WIRELESS'
882
 
 environment.ROUTERS == 'multiple'
883
 
user: root
884
 
environ: WPA_N_SSID WPA_N_PSK
885
 
command:
886
 
    trap "nmcli con delete id $WPA_N_SSID" EXIT
887
 
    if create_connection wifi $WPA_N_SSID --security=wpa --key=$WPA_N_PSK; then
888
 
        connect_wireless # lp:1471663
889
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
890
 
        iw dev $INTERFACE link
891
 
        gateway_ping_test --interface=$INTERFACE
892
 
        STATUS=$?
893
 
        # We reconnect the Ethernet connection if any (lp:1471663)
894
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
895
 
        if [[ ! -z $WIRED ]]; then
896
 
            nmcli c up uuid $WIRED
897
 
        fi
898
 
        exit $STATUS
899
 
    else
900
 
        exit 1
901
 
    fi
902
 
_description:
903
 
 Tests that the systems wireless hardware can connect to a router using WPA
904
 
 security and the 802.11n protocol after the system has been suspended.
905
 
 
906
 
plugin: shell
907
 
category_id: 2013.com.canonical.plainbox::suspend
908
 
id: suspend/wireless_connection_after_suspend_open_n_auto
909
 
depends: suspend/suspend_advanced_auto
910
 
estimated_duration: 1.2
911
 
requires:
912
 
 device.category == 'WIRELESS'
913
 
 environment.ROUTERS == 'multiple'
914
 
user: root
915
 
environ: OPEN_N_SSID
916
 
command:
917
 
    trap "nmcli con delete id $OPEN_N_SSID" EXIT
918
 
    if create_connection wifi $OPEN_N_SSID; then
919
 
        connect_wireless # lp:1471663
920
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
921
 
        iw dev $INTERFACE link
922
 
        gateway_ping_test --interface=$INTERFACE
923
 
        STATUS=$?
924
 
        # We reconnect the Ethernet connection if any (lp:1471663)
925
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
926
 
        if [[ ! -z $WIRED ]]; then
927
 
            nmcli c up uuid $WIRED
928
 
        fi
929
 
        exit $STATUS
930
 
    else
931
 
        exit 1
932
 
    fi
933
 
_description:
934
 
 Tests that the systems wireless hardware can connect to a router using no
935
 
 security and the 802.11n protocol after the system has been suspended.
936
 
 
937
 
plugin: shell
938
 
category_id: 2013.com.canonical.plainbox::suspend
939
 
id: suspend/wireless_connection_after_suspend_wpa_ac_auto
940
 
depends: suspend/suspend_advanced_auto
941
 
estimated_duration: 1.2
942
 
requires:
943
 
 device.category == 'WIRELESS'
944
 
 environment.ROUTERS == 'multiple'
945
 
 IEEE_80211.ac == 'supported'
946
 
user: root
947
 
environ: WPA_AC_SSID WPA_AC_PSK
948
 
command:
949
 
    trap "nmcli con delete id $WPA_AC_SSID" EXIT
950
 
    if create_connection wifi $WPA_AC_SSID --security=wpa --key=$WPA_AC_PSK; then
951
 
        connect_wireless # lp:1471663
952
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
953
 
        iw dev $INTERFACE link
954
 
        gateway_ping_test --interface=$INTERFACE
955
 
        STATUS=$?
956
 
        # We reconnect the Ethernet connection if any (lp:1471663)
957
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
958
 
        if [[ ! -z $WIRED ]]; then
959
 
            nmcli c up uuid $WIRED
960
 
        fi
961
 
        exit $STATUS
962
 
    else
963
 
        exit 1
964
 
    fi
965
 
_description:
966
 
 Tests that the systems wireless hardware can connect to a router using WPA
967
 
 security and the 802.11ac protocol after the system has been suspended.
968
 
 
969
 
plugin: shell
970
 
category_id: 2013.com.canonical.plainbox::suspend
971
 
id: suspend/wireless_connection_after_suspend_open_ac_auto
972
 
depends: suspend/suspend_advanced_auto
973
 
estimated_duration: 1.2
974
 
requires:
975
 
 device.category == 'WIRELESS'
976
 
 environment.ROUTERS == 'multiple'
977
 
 IEEE_80211.ac == 'supported'
978
 
user: root
979
 
environ: OPEN_AC_SSID
980
 
command:
981
 
    trap "nmcli con delete id $OPEN_AC_SSID" EXIT
982
 
    if create_connection wifi $OPEN_AC_SSID; then
983
 
        connect_wireless # lp:1471663
984
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
985
 
        iw dev $INTERFACE link
986
 
        gateway_ping_test --interface=$INTERFACE
987
 
        STATUS=$?
988
 
        # We reconnect the Ethernet connection if any (lp:1471663)
989
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
990
 
        if [[ ! -z $WIRED ]]; then
991
 
            nmcli c up uuid $WIRED
992
 
        fi
993
 
        exit $STATUS
994
 
    else
995
 
        exit 1
996
 
    fi
997
 
_description:
998
 
 Tests that the systems wireless hardware can connect to a router using no
999
 
 security and the 802.11ac protocol after the system has been suspended.
1000
 
 
1001
 
unit: template
1002
 
template-resource: device
1003
 
template-filter: device.category == 'NETWORK'
1004
 
plugin: shell
1005
 
category_id: 2013.com.canonical.plainbox::suspend
1006
 
id: suspend/iperf_after_suspend_ether_auto_device{__index__}_{interface}
1007
 
depends: suspend/suspend_advanced
1008
 
estimated_duration: 30.0
1009
 
requires:
1010
 
 package.name == 'iperf'
1011
 
user: root
1012
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
1013
 
command: network -i {interface} -t iperf
1014
 
_description:
1015
 
 This test executes iperf connection performance/stability against device {__index__} ({interface}) after suspend.
1016
 
 
1017
 
unit: template
1018
 
template-resource: device
1019
 
template-filter: device.category == 'WIRELESS'
1020
 
plugin: shell
1021
 
category_id: 2013.com.canonical.plainbox::suspend
1022
 
id: suspend/iperf_after_suspend_wifi_auto_device{__index__}_{interface}
1023
 
depends: suspend/suspend_advanced
1024
 
estimated_duration: 30.0
1025
 
requires:
1026
 
 package.name == 'iperf'
1027
 
user: root
1028
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
1029
 
command: network -i {interface} -t iperf
1030
 
_description:
1031
 
 This test executes iperf connection performance/stability against device {__index__} ({interface}) after suspend.
1032
 
 
1033
 
plugin: shell
1034
 
category_id: 2013.com.canonical.plainbox::suspend
1035
 
id: suspend/iperf_after_suspend_mobilebroadband_gsm_auto
1036
 
depends: suspend/suspend_advanced_auto
1037
 
estimated_duration: 20.0
1038
 
user: root
1039
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
1040
 
command:   
1041
 
 INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep gsm |cut -d ":" -f 13`
1042
 
 [ -z $INTERFACE ] && exit 1
1043
 
 network test -i $INTERFACE -t iperf
1044
 
_description:
1045
 
 This test executes iperf connection performance/stability against the broadband device found on the system after suspend.
1046
 
 
1047
 
plugin: shell
1048
 
category_id: 2013.com.canonical.plainbox::suspend
1049
 
id: suspend/iperf_after_suspend_mobilebroadband_cdma_auto
1050
 
depends: suspend/suspend_advanced_auto
1051
 
estimated_duration: 20.0
1052
 
user: root
1053
 
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
1054
 
command:   
1055
 
 INTERFACE=`(nmcli -t -f GENERAL -m tabular dev list 2>/dev/null || nmcli -t -f GENERAL -m tabular dev show) |grep cdma |cut -d ":" -f 13`
1056
 
 [ -z $INTERFACE ] && exit 1
1057
 
 network test -i $INTERFACE -t iperf
1058
 
_description:
1059
 
 This test executes iperf connection performance/stability against the broadband device found on the system after suspend.
1060
 
 
1061
 
plugin: user-interact-verify
1062
 
category_id: 2013.com.canonical.plainbox::suspend
1063
 
id: suspend/wireless_connection_after_suspend_wpa_bg_manual
1064
 
depends: suspend/suspend_advanced
1065
 
estimated_duration: 120.0
1066
 
requires:
1067
 
 device.category == 'WIRELESS'
1068
 
 environment.ROUTERS == 'single'
1069
 
user: root
1070
 
environ: ROUTER_SSID ROUTER_PSK
1071
 
command:
1072
 
    trap "nmcli con delete id $ROUTER_SSID" EXIT
1073
 
    if create_connection wifi $ROUTER_SSID --security=wpa --key=$ROUTER_PSK; then
1074
 
        connect_wireless # lp:1471663
1075
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
1076
 
        iw dev $INTERFACE link
1077
 
        gateway_ping_test --interface=$INTERFACE
1078
 
        STATUS=$?
1079
 
        # We reconnect the Ethernet connection if any (lp:1471663)
1080
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
1081
 
        if [[ ! -z $WIRED ]]; then
1082
 
            nmcli c up uuid $WIRED
1083
 
        fi
1084
 
        exit $STATUS
1085
 
    else
1086
 
        exit 1
1087
 
    fi
1088
 
_description:
1089
 
 PURPOSE:
1090
 
     Tests that the systems wireless hardware can connect to a router using WPA
1091
 
     security and the 802.11b/g protocols.
1092
 
 STEPS:
1093
 
     1. Open your routers configuration tool
1094
 
     2. Change the settings to only accept connections on the B and G wireless bands
1095
 
     3. Make sure the SSID is set to ROUTER_SSID
1096
 
     4. Change the security settings to use WPA2 and ensure the PSK matches that set in ROUTER_PSK
1097
 
     5. Commence the test to create a connection to the router and test the connection
1098
 
 VERIFICATION:
1099
 
     Verification is automated, do not change the automatically selected result.
1100
 
 
1101
 
plugin: user-interact-verify
1102
 
category_id: 2013.com.canonical.plainbox::suspend
1103
 
id: suspend/wireless_connection_after_suspend_open_bg_manual
1104
 
depends: suspend/suspend_advanced
1105
 
estimated_duration: 120.0
1106
 
requires:
1107
 
 device.category == 'WIRELESS'
1108
 
 environment.ROUTERS == 'single'
1109
 
user: root
1110
 
environ: ROUTER_SSID
1111
 
command:
1112
 
    trap "nmcli con delete id $ROUTER_SSID" EXIT
1113
 
    if create_connection wifi $ROUTER_SSID; then
1114
 
        connect_wireless # lp:1471663
1115
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
1116
 
        iw dev $INTERFACE link
1117
 
        gateway_ping_test --interface=$INTERFACE
1118
 
        STATUS=$?
1119
 
        # We reconnect the Ethernet connection if any (lp:1471663)
1120
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
1121
 
        if [[ ! -z $WIRED ]]; then
1122
 
            nmcli c up uuid $WIRED
1123
 
        fi
1124
 
        exit $STATUS
1125
 
    else
1126
 
        exit 1
1127
 
    fi
1128
 
_description:
1129
 
 PURPOSE:
1130
 
     Tests that the systems wireless hardware can connect to a router using
1131
 
     no security and the 802.11b/g protocols.
1132
 
 STEPS:
1133
 
     1. Open your routers configuration tool
1134
 
     2. Change the settings to only accept connections on the B and G wireless bands
1135
 
     3. Make sure the SSID is set to ROUTER_SSID
1136
 
     4. Change the security settings to use no security
1137
 
     5. Commence the test to create a connection to the router and test the connection
1138
 
 VERIFICATION:
1139
 
     Verification is automated, do not change the automatically selected result.
1140
 
 
1141
 
plugin: user-interact-verify
1142
 
category_id: 2013.com.canonical.plainbox::suspend
1143
 
id: suspend/wireless_connection_after_suspend_wpa_n_manual
1144
 
depends: suspend/suspend_advanced
1145
 
estimated_duration: 120.0
1146
 
requires:
1147
 
 device.category == 'WIRELESS'
1148
 
 environment.ROUTERS == 'single'
1149
 
user: root
1150
 
environ: ROUTER_SSID ROUTER_PSK
1151
 
command:
1152
 
    trap "nmcli con delete id $ROUTER_SSID" EXIT
1153
 
    if create_connection wifi $ROUTER_SSID --security=wpa --key=$ROUTER_PSK; then
1154
 
        connect_wireless # lp:1471663
1155
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
1156
 
        iw dev $INTERFACE link
1157
 
        gateway_ping_test --interface=$INTERFACE
1158
 
        STATUS=$?
1159
 
        # We reconnect the Ethernet connection if any (lp:1471663)
1160
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
1161
 
        if [[ ! -z $WIRED ]]; then
1162
 
            nmcli c up uuid $WIRED
1163
 
        fi
1164
 
        exit $STATUS
1165
 
    else
1166
 
        exit 1
1167
 
    fi
1168
 
_description:
1169
 
 PURPOSE:
1170
 
     Tests that the systems wireless hardware can connect to a router using WPA
1171
 
     security and the 802.11n protocols.
1172
 
 STEPS:
1173
 
     1. Open your routers configuration tool
1174
 
     2. Change the settings to only accept connections on the N wireless band
1175
 
     3. Make sure the SSID is set to ROUTER_SSID
1176
 
     4. Change the security settings to use WPA2 and ensure the PSK matches that set in ROUTER_PSK
1177
 
     5. Commence the test to create a connection to the router and test the connection
1178
 
 VERIFICATION:
1179
 
     Verification is automated, do not change the automatically selected result.
1180
 
 
1181
 
plugin: user-interact-verify
1182
 
category_id: 2013.com.canonical.plainbox::suspend
1183
 
id: suspend/wireless_connection_after_suspend_open_n_manual
1184
 
depends: suspend/suspend_advanced
1185
 
estimated_duration: 120.0
1186
 
requires:
1187
 
 device.category == 'WIRELESS'
1188
 
 environment.ROUTERS == 'single'
1189
 
user: root
1190
 
environ: ROUTER_SSID
1191
 
command:
1192
 
    trap "nmcli con delete id $ROUTER_SSID" EXIT
1193
 
    if create_connection wifi $ROUTER_SSID; then
1194
 
        connect_wireless # lp:1471663
1195
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
1196
 
        iw dev $INTERFACE link
1197
 
        gateway_ping_test --interface=$INTERFACE
1198
 
        STATUS=$?
1199
 
        # We reconnect the Ethernet connection if any (lp:1471663)
1200
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
1201
 
        if [[ ! -z $WIRED ]]; then
1202
 
            nmcli c up uuid $WIRED
1203
 
        fi
1204
 
        exit $STATUS
1205
 
    else
1206
 
        exit 1
1207
 
    fi
1208
 
_description:
1209
 
 PURPOSE:
1210
 
     Tests that the systems wireless hardware can connect to a router using
1211
 
     no security and the 802.11n protocol.
1212
 
 STEPS:
1213
 
     1. Open your routers configuration tool
1214
 
     2. Change the settings to only accept connections on the N wireless band
1215
 
     3. Make sure the SSID is set to ROUTER_SSID
1216
 
     4. Change the security settings to use no security
1217
 
     5. Commence the test to create a connection to the router and test the connection
1218
 
 VERIFICATION:
1219
 
     Verification is automated, do not change the automatically selected result.
1220
 
 
1221
 
plugin: user-interact-verify
1222
 
category_id: 2013.com.canonical.plainbox::suspend
1223
 
id: suspend/wireless_connection_after_suspend_wpa_ac_manual
1224
 
depends: suspend/suspend_advanced
1225
 
estimated_duration: 120.0
1226
 
requires:
1227
 
 device.category == 'WIRELESS'
1228
 
 environment.ROUTERS == 'single'
1229
 
user: root
1230
 
environ: ROUTER_SSID ROUTER_PSK
1231
 
command:
1232
 
    trap "nmcli con delete id $ROUTER_SSID" EXIT
1233
 
    if create_connection wifi $ROUTER_SSID --security=wpa --key=$ROUTER_PSK; then
1234
 
        connect_wireless # lp:1471663
1235
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
1236
 
        iw dev $INTERFACE link
1237
 
        gateway_ping_test --interface=$INTERFACE
1238
 
        STATUS=$?
1239
 
        # We reconnect the Ethernet connection if any (lp:1471663)
1240
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
1241
 
        if [[ ! -z $WIRED ]]; then
1242
 
            nmcli c up uuid $WIRED
1243
 
        fi
1244
 
        exit $STATUS
1245
 
    else
1246
 
        exit 1
1247
 
    fi
1248
 
_description:
1249
 
 PURPOSE:
1250
 
     Tests that the systems wireless hardware can connect to a router using WPA
1251
 
     security and the 802.11ac protocol.
1252
 
 STEPS:
1253
 
     1. Open your routers configuration tool
1254
 
     2. Change the settings to only accept connections on the 802.11ac protocol.
1255
 
     3. Make sure the SSID is set to ROUTER_SSID
1256
 
     4. Change the security settings to use WPA2 and ensure the PSK matches that set in ROUTER_PSK
1257
 
     5. Commence the test to create a connection to the router and test the connection
1258
 
 VERIFICATION:
1259
 
     Verification is automated, do not change the automatically selected result.
1260
 
 
1261
 
plugin: user-interact-verify
1262
 
category_id: 2013.com.canonical.plainbox::suspend
1263
 
id: suspend/wireless_connection_after_suspend_open_ac_manual
1264
 
depends: suspend/suspend_advanced
1265
 
estimated_duration: 120.0
1266
 
requires:
1267
 
 device.category == 'WIRELESS'
1268
 
 environment.ROUTERS == 'single'
1269
 
user: root
1270
 
environ: ROUTER_SSID
1271
 
command:
1272
 
    trap "nmcli con delete id $ROUTER_SSID" EXIT
1273
 
    if create_connection wifi $ROUTER_SSID; then
1274
 
        connect_wireless # lp:1471663
1275
 
        INTERFACE=`nmcli dev status | awk '/802-11-wireless|wifi/ {print $1}'`
1276
 
        iw dev $INTERFACE link
1277
 
        gateway_ping_test --interface=$INTERFACE
1278
 
        STATUS=$?
1279
 
        # We reconnect the Ethernet connection if any (lp:1471663)
1280
 
        WIRED=$(nmcli -f UUID,TYPE c | grep -oP ".*(?=\s+.*ethernet)")
1281
 
        if [[ ! -z $WIRED ]]; then
1282
 
            nmcli c up uuid $WIRED
1283
 
        fi
1284
 
        exit $STATUS
1285
 
    else
1286
 
        exit 1
1287
 
    fi
1288
 
_description:
1289
 
 PURPOSE:
1290
 
     Tests that the systems wireless hardware can connect to a router using
1291
 
     no security and the 802.11ac protocol.
1292
 
 STEPS:
1293
 
     1. Open your routers configuration tool
1294
 
     2. Change the settings to only accept connections on the 802.11ac protocol.
1295
 
     3. Make sure the SSID is set to ROUTER_SSID
1296
 
     4. Change the security settings to use no security
1297
 
     5. Commence the test to create a connection to the router and test the connection
1298
 
 VERIFICATION:
1299
 
     Verification is automated, do not change the automatically selected result.
1300
 
 
1301
 
plugin: shell
1302
 
category_id: 2013.com.canonical.plainbox::suspend
1303
 
id: suspend/bluetooth_detect_after_suspend
1304
 
depends: suspend/suspend_advanced bluetooth/detect-output
1305
 
estimated_duration: 1.2
1306
 
requires:
1307
 
 package.name == 'bluez'
1308
 
 device.category == 'BLUETOOTH'
1309
 
command:
1310
 
 if rfkill list bluetooth | grep -q 'Hard blocked: yes'; then
1311
 
   echo "rfkill shows BT is hard blocked"
1312
 
 fi
1313
 
 if rfkill list bluetooth | grep -q 'Soft blocked: yes'; then
1314
 
   echo "rfkill shows BT is soft blocked, removing before testing"
1315
 
   rfkill unblock bluetooth
1316
 
   sleep 3
1317
 
 fi
1318
 
 output=$(hcitool dev | tail -n+2 | awk '{print $2}')
1319
 
 echo $output | diff $PLAINBOX_SESSION_SHARE/bluetooth_address -
1320
 
 if [ -z "$output" ]; then
1321
 
     echo "BT hardware not available"
1322
 
     exit 1
1323
 
 fi
1324
 
_description:
1325
 
 This test grabs the hardware address of the bluetooth adapter after suspend and compares it to the address grabbed before suspend.
1326
 
 
1327
 
plugin: shell
1328
 
category_id: 2013.com.canonical.plainbox::suspend
1329
 
id: suspend/bluetooth_obex_send_after_suspend
1330
 
depends: suspend/suspend_advanced
1331
 
estimated_duration: 10.0
1332
 
requires:
1333
 
 package.name == 'bluez'
1334
 
 package.name == 'obexftp'
1335
 
 device.category == 'BLUETOOTH'
1336
 
command:
1337
 
  if [ -z "$BTDEVADDR" ]
1338
 
  then
1339
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1340
 
    exit 1
1341
 
  fi
1342
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1343
 
  then
1344
 
    echo "rfkill list shows BT is hard blocked"
1345
 
  fi
1346
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1347
 
  then
1348
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
1349
 
    rfkill unblock bluetooth
1350
 
    sleep 3
1351
 
  fi
1352
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR send 2>&1 | ansi_parser
1353
 
_description:
1354
 
 This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
1355
 
 
1356
 
plugin: shell
1357
 
category_id: 2013.com.canonical.plainbox::suspend
1358
 
id: suspend/bluetooth_obex_send_after_suspend_auto
1359
 
depends: suspend/suspend_advanced_auto
1360
 
estimated_duration: 10.0
1361
 
requires:
1362
 
 package.name == 'bluez'
1363
 
 package.name == 'obexftp'
1364
 
 device.category == 'BLUETOOTH'
1365
 
command:
1366
 
  if [ -z "$BTDEVADDR" ]
1367
 
  then
1368
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1369
 
    exit 1
1370
 
  fi
1371
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1372
 
  then
1373
 
    echo "rfkill list shows BT is hard blocked"
1374
 
  fi
1375
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1376
 
  then
1377
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
1378
 
    rfkill unblock bluetooth
1379
 
    sleep 3
1380
 
  fi
1381
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR send 2>&1 | ansi_parser
1382
 
_description:
1383
 
 This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
1384
 
 
1385
 
plugin: shell
1386
 
category_id: 2013.com.canonical.plainbox::suspend
1387
 
id: suspend/bluetooth_obex_browse_after_suspend
1388
 
depends: suspend/suspend_advanced
1389
 
estimated_duration: 10.0
1390
 
requires:
1391
 
 package.name == 'bluez'
1392
 
 package.name == 'obexftp'
1393
 
 device.category == 'BLUETOOTH'
1394
 
command:
1395
 
  if [ -z "$BTDEVADDR" ]
1396
 
  then
1397
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1398
 
    exit 1
1399
 
  fi
1400
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1401
 
  then
1402
 
    echo "rfkill list shows BT is hard blocked"
1403
 
  fi
1404
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1405
 
  then
1406
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
1407
 
    rfkill unblock bluetooth
1408
 
    sleep 3
1409
 
  fi
1410
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR browse 2>&1 | ansi_parser
1411
 
_description:
1412
 
 This is an automated Bluetooth test. It emulates browsing on a remote device specified by the BTDEVADDR environment variable.
1413
 
 
1414
 
plugin: shell
1415
 
category_id: 2013.com.canonical.plainbox::suspend
1416
 
id: suspend/bluetooth_obex_browse_after_suspend_auto
1417
 
depends: suspend/suspend_advanced_auto
1418
 
estimated_duration: 20.0
1419
 
requires:
1420
 
 package.name == 'bluez'
1421
 
 package.name == 'obexftp'
1422
 
 device.category == 'BLUETOOTH'
1423
 
command:
1424
 
  if [ -z "$BTDEVADDR" ]
1425
 
  then
1426
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1427
 
    exit 1
1428
 
  fi
1429
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1430
 
  then
1431
 
    echo "rfkill list shows BT is hard blocked"
1432
 
  fi
1433
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1434
 
  then
1435
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
1436
 
    rfkill unblock bluetooth
1437
 
    sleep 3
1438
 
  fi
1439
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR browse 2>&1 | ansi_parser
1440
 
_description:
1441
 
 This is an automated Bluetooth test. It emulates browsing on a remote device specified by the BTDEVADDR environment variable.
1442
 
 
1443
 
plugin: shell
1444
 
category_id: 2013.com.canonical.plainbox::suspend
1445
 
id: suspend/bluetooth_obex_get_after_suspend
1446
 
estimated_duration: 20.0
1447
 
depends: suspend/suspend_advanced
1448
 
requires:
1449
 
 package.name == 'bluez'
1450
 
 package.name == 'obexftp'
1451
 
 device.category == 'BLUETOOTH'
1452
 
command:
1453
 
  if [ -z "$BTDEVADDR" ]
1454
 
  then
1455
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1456
 
    exit 1
1457
 
  fi
1458
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1459
 
  then
1460
 
    echo "rfkill list shows BT is hard blocked"
1461
 
  fi
1462
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1463
 
  then
1464
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
1465
 
    rfkill unblock bluetooth
1466
 
    sleep 3
1467
 
  fi
1468
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR get 2>&1 | ansi_parser
1469
 
_description:
1470
 
 This is an automated Bluetooth test. It receives the given file from a remote host specified by the BTDEVADDR environment variable
1471
 
 
1472
 
plugin: shell
1473
 
category_id: 2013.com.canonical.plainbox::suspend
1474
 
id: suspend/bluetooth_obex_get_after_suspend_auto
1475
 
depends: suspend/suspend_advanced_auto
1476
 
estimated_duration: 20.0
1477
 
requires:
1478
 
 package.name == 'bluez'
1479
 
 package.name == 'obexftp'
1480
 
 device.category == 'BLUETOOTH'
1481
 
command:
1482
 
  if [ -z "$BTDEVADDR" ]
1483
 
  then
1484
 
    echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1485
 
    exit 1
1486
 
  fi
1487
 
  if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1488
 
  then
1489
 
    echo "rfkill list shows BT is hard blocked"
1490
 
  fi
1491
 
  if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1492
 
  then
1493
 
    echo "rfkill list shows BT is soft blocked, removing before testing"
1494
 
    rfkill unblock bluetooth
1495
 
    sleep 3
1496
 
  fi
1497
 
  set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR get 2>&1 | ansi_parser
1498
 
_description:
1499
 
 This is an automated Bluetooth test. It receives the given file from a remote host specified by the BTDEVADDR environment variable
1500
 
 
1501
 
plugin: user-interact-verify
1502
 
category_id: 2013.com.canonical.plainbox::suspend
1503
 
id: suspend/cycle_resolutions_after_suspend
1504
 
estimated_duration: 120.0
1505
 
requires: package.name == 'xorg'
1506
 
depends: suspend/suspend_advanced
1507
 
command: xrandr_cycle --keyword=after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE
1508
 
_description:
1509
 
 PURPOSE:
1510
 
     This test will cycle through the detected display modes
1511
 
 STEPS:
1512
 
     1. Click "Test" and the display will cycle trough the display modes
1513
 
 VERIFICATION:
1514
 
     Did your display look fine in the detected mode?
1515
 
 
1516
 
unit: template
1517
 
template-resource: graphics_card
1518
 
plugin: user-interact-verify
1519
 
category_id: 2013.com.canonical.plainbox::suspend
1520
 
id: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}
1521
 
requires: package.name == 'xorg'
1522
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
1523
 
estimated_duration: 120.0
1524
 
command: xrandr_cycle --keyword={index}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE
1525
 
_description:
1526
 
 PURPOSE:
1527
 
     This test will cycle through the detected display modes
1528
 
 STEPS:
1529
 
     1. Click "Test" and the display will cycle trough the display modes
1530
 
 VERIFICATION:
1531
 
     Did your display look fine in the detected mode?
1532
 
 
1533
 
plugin: shell
1534
 
category_id: 2013.com.canonical.plainbox::suspend
1535
 
id: suspend/cycle_resolutions_after_suspend_auto
1536
 
estimated_duration: 1.2
1537
 
requires: package.name == 'xorg'
1538
 
depends: suspend/suspend_advanced_auto
1539
 
_description:
1540
 
 This test will check to make sure supported video modes work after a suspend and resume.
1541
 
 This is done automatically by taking screenshots and uploading them as an attachment.
1542
 
command: xrandr_cycle --keyword=after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE
1543
 
 
1544
 
plugin: attachment
1545
 
category_id: 2013.com.canonical.plainbox::suspend
1546
 
id: suspend/xrandr_screens_after_suspend.tar.gz
1547
 
depends: suspend/cycle_resolutions_after_suspend
1548
 
command: [ -f $PLAINBOX_SESSION_SHARE/xrandr_screens_after_suspend.tgz ] && base64 $PLAINBOX_SESSION_SHARE/xrandr_screens_after_suspend.tgz
1549
 
_description: This attaches screenshots from the suspend/cycle_resolutions_after_suspend test to the results submission.
1550
 
 
1551
 
unit: template
1552
 
template-resource: graphics_card
1553
 
plugin: attachment
1554
 
category_id: 2013.com.canonical.plainbox::suspend
1555
 
id: suspend/{index}_xrandr_screens_after_suspend.tar.gz
1556
 
depends: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}
1557
 
command: [ -f $PLAINBOX_SESSION_SHARE/{index}_xrandr_screens_after_suspend.tgz ] && base64 $PLAINBOX_SESSION_SHARE/{index}_xrandr_screens_after_suspend.tgz
1558
 
_description: This attaches screenshots from the suspend/cycle_resolutions_after_suspend test to the results submission.
1559
 
 
1560
 
plugin: shell
1561
 
category_id: 2013.com.canonical.plainbox::suspend
1562
 
id: suspend/record_playback_after_suspend
1563
 
estimated_duration: 10.0
1564
 
depends: suspend/suspend_advanced
1565
 
requires:
1566
 
 package.name == 'python3-gi'
1567
 
 package.name == 'gir1.2-gstreamer-1.0'
1568
 
 package.name == 'libgstreamer1.0-0'
1569
 
 package.name == 'gstreamer1.0-plugins-good'
1570
 
 package.name == 'gstreamer1.0-pulseaudio'
1571
 
 package.name == 'alsa-base'
1572
 
 device.category == 'AUDIO'
1573
 
command: audio_test
1574
 
_description:
1575
 
 This will check to make sure that your audio device works properly after a suspend and resume.  This may work fine with speakers and onboard microphone, however, it works best if used with a cable connecting the audio-out jack to the audio-in jack.
1576
 
 
1577
 
plugin: shell
1578
 
category_id: 2013.com.canonical.plainbox::suspend
1579
 
id: suspend/record_playback_after_suspend_auto
1580
 
estimated_duration: 10.0
1581
 
depends: suspend/suspend_advanced_auto
1582
 
requires:
1583
 
 package.name == 'python3-gi'
1584
 
 package.name == 'gir1.2-gstreamer-1.0'
1585
 
 package.name == 'libgstreamer1.0-0'
1586
 
 package.name == 'gstreamer1.0-plugins-good'
1587
 
 package.name == 'gstreamer1.0-pulseaudio'
1588
 
 package.name == 'alsa-base'
1589
 
 device.category == 'AUDIO'
1590
 
command: audio_test
1591
 
_description:
1592
 
 This will check to make sure that your audio device works properly after a suspend and resume.  This may work fine with speakers and onboard microphone, however, it works best if used with a cable connecting the audio-out jack to the audio-in jack.
1593
 
 
1594
 
plugin: attachment
1595
 
category_id: 2013.com.canonical.plainbox::suspend
1596
 
id: suspend/suspend-auto-single-log-attach
1597
 
command: [ -e $PLAINBOX_SESSION_SHARE/suspend_auto_single_log ] && cat $PLAINBOX_SESSION_SHARE/suspend_auto_single_log
1598
 
_description:
1599
 
 Attaches the log from the single suspend/resume test to the results
1600
 
 
1601
 
plugin: shell
1602
 
category_id: 2013.com.canonical.plainbox::suspend
1603
 
id: suspend/screenshot_after_suspend
1604
 
estimated_duration: 10.0
1605
 
depends: suspend/suspend_advanced_auto
1606
 
requires: package.name == 'fswebcam'
1607
 
command: set -o pipefail; camera_test still --device=/dev/external_webcam -f ${PLAINBOX_SESSION_SHARE}/screenshot_after_suspend.jpg -q 2>&1 | ansi_parser
1608
 
_description:
1609
 
 PURPOSE:
1610
 
     Take a screengrab of the current screen after suspend (logged on Unity desktop)
1611
 
 STEPS:
1612
 
     1. Take picture using USB webcam
1613
 
 VERIFICATION:
1614
 
     Review attachment manually later
1615
 
 
1616
 
plugin: attachment
1617
 
category_id: 2013.com.canonical.plainbox::suspend
1618
 
id: screenshot_after_suspend.jpg
1619
 
depends: suspend/screenshot_after_suspend
1620
 
command: base64 ${PLAINBOX_SESSION_SHARE}/screenshot_after_suspend.jpg
1621
 
_description: Attaches the screenshot captured in graphics/screenshot.
1622
 
 
1623
 
plugin: shell
1624
 
category_id: 2013.com.canonical.plainbox::suspend
1625
 
id: suspend/gpu_lockup_after_suspend
1626
 
estimated_duration: 10.0
1627
 
requires:
1628
 
 package.name == 'wmctrl'
1629
 
 package.name == 'mesa-utils'
1630
 
 package.name == 'firefox'
1631
 
depends: suspend/suspend_advanced_auto
1632
 
command: gpu_test
1633
 
_description:
1634
 
 PURPOSE:
1635
 
     Do some challenging operations then check for lockup on the GPU
1636
 
 STEPS:
1637
 
     1. Create 2 glxgears windows and move them quickly
1638
 
     2. Switch workspaces with wmctrl
1639
 
     3. Launch an HTML5 video playback in firefox
1640
 
 VERIFICATION:
1641
 
     After a 60s workload, check kern.log for reported GPU errors
1642
 
 
1643
 
plugin: shell
1644
 
category_id: 2013.com.canonical.plainbox::suspend
1645
 
id: suspend/wifi_resume_time
1646
 
depends: suspend/suspend_advanced
1647
 
requires:
1648
 
   device.category == 'WIRELESS'
1649
 
command: network_reconnect_resume_test -t 90 -d wifi
1650
 
estimated_duration: 0.530
1651
 
_description:
1652
 
 Checks the length of time it takes to reconnect an existing wifi connection
1653
 
 after a suspend/resume cycle.
1654
 
 
1655
 
plugin: shell
1656
 
category_id: 2013.com.canonical.plainbox::suspend
1657
 
id: suspend/wifi_resume_time_auto
1658
 
estimated_duration: 1.2
1659
 
depends: suspend/suspend_advanced_auto
1660
 
requires:
1661
 
   device.category == 'WIRELESS'
1662
 
command: network_reconnect_resume_test -t 90 -d wifi
1663
 
_description:
1664
 
 Checks the length of time it takes to reconnect an existing wifi connection
1665
 
 after a suspend/resume cycle.
1666
 
 
1667
 
plugin: shell
1668
 
category_id: 2013.com.canonical.plainbox::suspend
1669
 
id: suspend/network_resume_time
1670
 
depends: suspend/suspend_advanced
1671
 
estimated_duration: 1.2
1672
 
requires:
1673
 
   device.category == 'NETWORK'
1674
 
command: network_reconnect_resume_test -t 10 -d wired
1675
 
_description:
1676
 
 Checks the length of time it takes to reconnect an existing wired connection
1677
 
  after a suspend/resume cycle.
1678
 
 
1679
 
plugin: shell
1680
 
category_id: 2013.com.canonical.plainbox::suspend
1681
 
id: suspend/network_resume_time_auto
1682
 
depends: suspend/suspend_advanced_auto
1683
 
estimated_duration: 1.2
1684
 
requires:
1685
 
   device.category == 'NETWORK'
1686
 
command: network_reconnect_resume_test -t 10 -d wired
1687
 
_description:
1688
 
 Checks the length of time it takes to reconnect an existing wired connection
1689
 
  after a suspend/resume cycle.
1690
 
 
1691
 
plugin: manual
1692
 
category_id: 2013.com.canonical.plainbox::suspend
1693
 
id: suspend/led_after_suspend/power
1694
 
depends: suspend/suspend_advanced
1695
 
estimated_duration: 120.0
1696
 
_description:
1697
 
 PURPOSE:
1698
 
     Validate that the power LED operated the same after resuming from suspend
1699
 
 STEPS:
1700
 
     1. Power LED should be on while device is switched on
1701
 
 VERIFICATION:
1702
 
     Does the power LED remain on after resuming from suspend?
1703
 
 
1704
 
plugin: manual
1705
 
category_id: 2013.com.canonical.plainbox::suspend
1706
 
id: suspend/led_after_suspend/battery-charging
1707
 
estimated_duration: 120.0
1708
 
depends: suspend/suspend_advanced
1709
 
_description:
1710
 
 PURPOSE:
1711
 
     Validate that the battery light shows charging status after resuming from suspend
1712
 
 STEPS:
1713
 
     1. Let system run on battery for a while
1714
 
     2. Plug in AC plug
1715
 
 VERIFICATION:
1716
 
     Did the battery indicator LED still turn orange after resuming from suspend?
1717
 
 
1718
 
plugin: manual
1719
 
category_id: 2013.com.canonical.plainbox::suspend
1720
 
id: suspend/led_after_suspend/battery-charged
1721
 
depends: suspend/suspend_advanced
1722
 
estimated_duration: 120.0
1723
 
_description:
1724
 
 PURPOSE:
1725
 
     Validate that the battery LED properly displays charged status after resuming from suspend
1726
 
 STEPS:
1727
 
     1. Let system run on battery for a short time
1728
 
     2. Plug in AC
1729
 
     3. Let system run on AC
1730
 
 VERIFICATION:
1731
 
     Does the orange battery LED still shut off when system is fully charged after resuming from suspend?
1732
 
 
1733
 
plugin: manual
1734
 
category_id: 2013.com.canonical.plainbox::suspend
1735
 
id: suspend/led_after_suspend/battery-low
1736
 
depends: suspend/suspend_advanced
1737
 
estimated_duration: 120.0
1738
 
_description:
1739
 
 PURPOSE:
1740
 
     Validate that the battery LED indicated low power after resuming from suspend
1741
 
 STEPS:
1742
 
     1. Let system run on battery for several hours
1743
 
     2. Monitor battery LED carefully
1744
 
 VERIFICATION:
1745
 
     Does the LED light orange when battery is low after resuming from suspend?
1746
 
 
1747
 
plugin: user-interact-verify
1748
 
category_id: 2013.com.canonical.plainbox::suspend
1749
 
id: suspend/led_after_suspend/hdd
1750
 
depends: suspend/suspend_advanced
1751
 
estimated_duration: 120.0
1752
 
command: led_hdd_test
1753
 
_description:
1754
 
 PURPOSE:
1755
 
     Validate that the HDD LED still operates as expected after resuming from suspend
1756
 
 STEPS:
1757
 
     1. Select "Test" to write and read a temporary file for a few seconds
1758
 
     2. HDD LED should blink when writing to/reading from HDD
1759
 
 VERIFICATION:
1760
 
     Did the HDD LED still blink with HDD activity after resuming from suspend?
1761
 
 
1762
 
plugin: user-interact-verify
1763
 
category_id: 2013.com.canonical.plainbox::suspend
1764
 
id: suspend/led_after_suspend/numeric-keypad
1765
 
estimated_duration: 120.0
1766
 
depends: suspend/suspend_advanced
1767
 
command: keyboard_test
1768
 
_description:
1769
 
 PURPOSE:
1770
 
     Validate that the numeric keypad LED operates the same before and after resuming from suspend
1771
 
 STEPS:
1772
 
     1. Press "Block Num" key to toggle numeric keypad LED
1773
 
     2. Click on the "Test" button to open a window to verify your typing
1774
 
     3. Type using the numeric keypad both when the LED is on and off
1775
 
 VERIFICATION:
1776
 
     1. Numeric keypad LED status should toggle everytime the "Block Num" key is pressed
1777
 
     2. Numbers should only be entered in the keyboard verification window when the LED is on
1778
 
 
1779
 
plugin: manual
1780
 
category_id: 2013.com.canonical.plainbox::suspend
1781
 
id: suspend/led_after_suspend/caps-lock
1782
 
depends: suspend/suspend_advanced
1783
 
estimated_duration: 120.0
1784
 
_description:
1785
 
 PURPOSE:
1786
 
     Validate that the Caps Lock key operates the same before and after resuming from suspend
1787
 
 STEPS:
1788
 
     1. Press "Block Cap Keys" to activate/deactivate cap keys blocking
1789
 
     2. Cap Keys LED should be switched on/off every time the key is pressed
1790
 
 VERIFICATION:
1791
 
     Did the Cap Keys LED light as expected after resuming from suspend?
1792
 
 
1793
 
plugin: manual
1794
 
category_id: 2013.com.canonical.plainbox::suspend
1795
 
id: suspend/led_after_suspend/wlan
1796
 
depends: suspend/suspend_advanced
1797
 
estimated_duration: 120.0
1798
 
_description:
1799
 
 PURPOSE:
1800
 
     WLAN LED verification after resuming from suspend
1801
 
 STEPS:
1802
 
     1. Make sure WLAN connection is established
1803
 
     2. WLAN LED should light
1804
 
 VERIFICATION:
1805
 
     Did the WLAN LED light as expected after resuming from suspend?
1806
 
 
1807
 
plugin: manual
1808
 
category_id: 2013.com.canonical.plainbox::suspend
1809
 
id: suspend/led_after_suspend/wlan-disabled
1810
 
depends: suspend/suspend_advanced
1811
 
estimated_duration: 120.0
1812
 
_description:
1813
 
 PURPOSE:
1814
 
     Validate that WLAN LED shuts off when disabled after resuming from suspend
1815
 
 STEPS:
1816
 
     1. Connect to AP
1817
 
     2. Use Physical switch to disable WLAN
1818
 
     3. Re-enable
1819
 
     4. Use Network-Manager to disable WLAN
1820
 
 VERIFICATION:
1821
 
     Did the LED turn off then WLAN is disabled after resuming from suspend?
1822
 
 
1823
 
plugin: manual
1824
 
category_id: 2013.com.canonical.plainbox::suspend
1825
 
id: suspend/led_after_suspend/bluetooth
1826
 
depends: suspend/suspend_advanced
1827
 
estimated_duration: 120.0
1828
 
_description:
1829
 
 PURPOSE:
1830
 
     Validate that the Bluetooth LED turns on and off when BT is enabled/disabled after resuming from suspend
1831
 
 STEPS:
1832
 
     1. Switch bluetooth off from a hardware switch (if present)
1833
 
     2. Switch bluetooth back on
1834
 
     3. Switch bluetooth off from the panel applet
1835
 
     4. Switch bluetooth back on
1836
 
 VERIFICATION:
1837
 
     Did the bluetooth LED turn off and on twice after resuming from suspend?
1838
 
 
1839
 
plugin: user-interact-verify
1840
 
category_id: 2013.com.canonical.plainbox::suspend
1841
 
id: suspend/led_after_suspend/camera
1842
 
estimated_duration: 120.0
1843
 
depends:
1844
 
 camera/detect
1845
 
 suspend/suspend_advanced
1846
 
command: camera_test led
1847
 
_description:
1848
 
 PURPOSE:
1849
 
     Validate that the camera LED still works as expected after resuming from suspend
1850
 
 STEPS:
1851
 
     1. Select Test to activate camera
1852
 
     2. Camera LED should light for a few seconds
1853
 
 VERIFICATION:
1854
 
     Did the camera LED still turn on and off after resuming from suspend?
1855
 
 
1856
 
plugin: manual
1857
 
category_id: 2013.com.canonical.plainbox::suspend
1858
 
id: suspend/led_after_suspend/touchpad
1859
 
depends: suspend/suspend_advanced
1860
 
estimated_duration: 120.0
1861
 
_description:
1862
 
 PURPOSE:
1863
 
     Touchpad LED verification after resuming from suspend
1864
 
 STEPS:
1865
 
     1. Click on the touchpad button or press key combination to enable/disable touchpad button
1866
 
     2. Slide your finger on the touchpad
1867
 
 VERIFICATION:
1868
 
     1. Touchpad LED status should toggle everytime the button is clicked or the key combination is pressed
1869
 
     2. When the LED is on, the mouse pointer should move on touchpad usage
1870
 
     3. When the LED is off, the mouse pointer should not move on touchpad usage
1871
 
 
1872
 
plugin: manual
1873
 
category_id: 2013.com.canonical.plainbox::suspend
1874
 
id: suspend/led_after_suspend/wireless
1875
 
depends: suspend/suspend_advanced
1876
 
estimated_duration: 120.0
1877
 
_description:
1878
 
 PURPOSE:
1879
 
     Validate Wireless (WLAN + Bluetooth) LED operated the same after resuming from suspend
1880
 
 STEPS:
1881
 
     1. Make sure WLAN connection is established and Bluetooth is enabled.
1882
 
     2. WLAN/Bluetooth LED should light
1883
 
     3. Switch WLAN and Bluetooth off from a hardware switch (if present)
1884
 
     4. Switch them back on
1885
 
     5. Switch WLAN and Bluetooth off from the panel applet
1886
 
     6. Switch them back on
1887
 
 VERIFICATION:
1888
 
     Did the WLAN/Bluetooth LED light as expected after resuming from suspend?
1889
 
 
1890
 
plugin: manual
1891
 
category_id: 2013.com.canonical.plainbox::suspend
1892
 
id: suspend/keys_after_suspend/brightness
1893
 
depends: suspend/suspend_advanced
1894
 
estimated_duration: 120.0
1895
 
requires: dmi.product in ['Notebook','Laptop','Portable','All In One','All-In-One','AIO']
1896
 
_description:
1897
 
 PURPOSE:
1898
 
     This test will test the brightness key after resuming from suspend
1899
 
 STEPS:
1900
 
     1. Press the brightness buttons on the keyboard
1901
 
 VERIFICATION:
1902
 
     Did the brightness change following to your key presses after resuming from suspend?
1903
 
 
1904
 
plugin: user-interact-verify
1905
 
category_id: 2013.com.canonical.plainbox::suspend
1906
 
id: suspend/keys_after_suspend/volume
1907
 
depends: suspend/suspend_advanced
1908
 
estimated_duration: 120.0
1909
 
requires:
1910
 
 device.category == 'KEYBOARD'
1911
 
user: root
1912
 
command: key_test -s '0xe02e,0xe0ae:Volume Up' '0xe030,0xe0b0:Volume Down'
1913
 
_description:
1914
 
 PURPOSE:
1915
 
     This test will test the volume keys of your keyboard after resuming from suspend
1916
 
 STEPS:
1917
 
     Skip this test if your computer has no volume keys.
1918
 
     1. Click test to open a window on which to test the volume keys.
1919
 
     2. If all the keys work, the test will be marked as passed.
1920
 
 VERIFICATION:
1921
 
     Did the volume change following to your key presses?
1922
 
 
1923
 
plugin: user-interact-verify
1924
 
category_id: 2013.com.canonical.plainbox::suspend
1925
 
id: suspend/keys_after_suspend/mute
1926
 
depends: suspend/suspend_advanced
1927
 
estimated_duration: 120.0
1928
 
requires:
1929
 
 device.category == 'KEYBOARD'
1930
 
user: root
1931
 
command: key_test -s '0xe020,0xe0a0:Mute'
1932
 
_description:
1933
 
 PURPOSE:
1934
 
     This test will test the mute key of your keyboard after resuming from suspend
1935
 
 STEPS:
1936
 
     1. Click test to open a window on which to test the mute key.
1937
 
     2. If the key works, the test will pass and the window will close.
1938
 
 VERIFICATION:
1939
 
     Did the volume mute following your key presses?
1940
 
 
1941
 
plugin: manual
1942
 
category_id: 2013.com.canonical.plainbox::suspend
1943
 
id: suspend/keys_after_suspend/sleep
1944
 
depends: suspend/suspend_advanced
1945
 
estimated_duration: 120.0
1946
 
requires:
1947
 
 device.category == 'KEYBOARD'
1948
 
_description:
1949
 
 PURPOSE:
1950
 
     This test will test the sleep key after resuming from suspend
1951
 
 STEPS:
1952
 
     1. Press the sleep key on the keyboard
1953
 
     2. Wake your system up by pressing the power button
1954
 
 VERIFICATION:
1955
 
     Did the system go to sleep after pressing the sleep key after resuming from suspend?
1956
 
 
1957
 
plugin: user-interact-verify
1958
 
category_id: 2013.com.canonical.plainbox::suspend
1959
 
id: suspend/keys_after_suspend/battery-info
1960
 
depends: suspend/suspend_advanced
1961
 
estimated_duration: 120.0
1962
 
requires: dmi.product in ['Notebook','Laptop','Portable']
1963
 
user: root
1964
 
command: key_test -s '0xe071,0xef1:Battery Info'
1965
 
_description:
1966
 
 PURPOSE:
1967
 
     This test will test the battery information key after resuming from suspend
1968
 
 STEPS:
1969
 
     Skip this test if you do not have a Battery Button.
1970
 
     1. Click Test to begin
1971
 
     2. Press the Battery Info button (or combo like Fn+F3)
1972
 
     3: Close the Power Statistics tool if it opens
1973
 
 VERIFICATION:
1974
 
     Did the Battery Info key work as expected after resuming from suspend?
1975
 
 
1976
 
plugin: manual
1977
 
category_id: 2013.com.canonical.plainbox::suspend
1978
 
id: suspend/keys_after_suspend/wireless
1979
 
depends: suspend/suspend_advanced
1980
 
estimated_duration: 120.0
1981
 
requires: dmi.product in ['Notebook','Laptop','Portable']
1982
 
_description:
1983
 
 PURPOSE:
1984
 
     This test will test the wireless key after resuming from suspend
1985
 
 STEPS:
1986
 
     1. Press the wireless key on the keyboard
1987
 
     2. Press the same key again
1988
 
 VERIFICATION:
1989
 
     Did the wireless go off on the first press and on again on the second after resuming from suspend?
1990
 
 
1991
 
plugin: user-interact-verify
1992
 
category_id: 2013.com.canonical.plainbox::suspend
1993
 
id: suspend/keys_after_suspend/media-control
1994
 
estimated_duration: 120.0
1995
 
depends: suspend/suspend_advanced
1996
 
requires:
1997
 
 device.category == 'KEYBOARD'
1998
 
user: root
1999
 
command: key_test -s 0xe010,0xe090:Previous 0xe024,0xe0a4:Stop 0xe019,0xe099:Next 0xe022,0xe0a2:Play
2000
 
_description:
2001
 
 PURPOSE:
2002
 
     This test will test the media keys of your keyboard after resuming from suspend
2003
 
 STEPS:
2004
 
     Skip this test if your computer has no media keys.
2005
 
     1. Click test to open a window on which to test the media keys.
2006
 
     2. If all the keys work, the test will be marked as passed.
2007
 
 VERIFICATION:
2008
 
     Do the keys work as expected after resuming from suspend?
2009
 
 
2010
 
plugin: user-interact-verify
2011
 
category_id: 2013.com.canonical.plainbox::suspend
2012
 
id: suspend/keys_after_suspend/super
2013
 
depends: suspend/suspend_advanced
2014
 
estimated_duration: 120.0
2015
 
requires:
2016
 
 device.category == 'KEYBOARD'
2017
 
user: root
2018
 
command: key_test -s '0xe05b,0xe0db:Left Super Key'
2019
 
_description:
2020
 
 PURPOSE:
2021
 
     This test will test the super key of your keyboard after resuming from suspend
2022
 
 STEPS:
2023
 
     1. Click test to open a window on which to test the super key.
2024
 
     2. If the key works, the test will pass and the window will close.
2025
 
 VERIFICATION:
2026
 
     Does the super key work as expected after resuming from suspend?
2027
 
 
2028
 
plugin: manual
2029
 
category_id: 2013.com.canonical.plainbox::suspend
2030
 
id: suspend/keys_after_suspend/video-out
2031
 
depends: suspend/suspend_advanced
2032
 
estimated_duration: 120.0
2033
 
requires: dmi.product in ['Notebook','Laptop','Portable']
2034
 
_description:
2035
 
 PURPOSE:
2036
 
     Validate that the External Video hot key is working as expected after resuming from suspend
2037
 
 STEPS:
2038
 
     1. Plug in an external monitor
2039
 
     2. Press the display hot key to change the monitors configuration
2040
 
 VERIFICATION:
2041
 
     Check that the video signal can be mirrored, extended, displayed on external or onboard only, after resuming from suspend.
2042
 
 
2043
 
plugin: manual
2044
 
category_id: 2013.com.canonical.plainbox::suspend
2045
 
id: suspend/keys_after_suspend/touchpad
2046
 
depends: suspend/suspend_advanced
2047
 
estimated_duration: 120.0
2048
 
requires: dmi.product in ['Notebook','Laptop','Portable']
2049
 
_description:
2050
 
 PURPOSE:
2051
 
     Verify touchpad hotkey toggles touchpad functionality on and off after resuming from suspend
2052
 
 STEPS:
2053
 
     1. Verify the touchpad is functional
2054
 
     2. Tap the touchpad toggle hotkey
2055
 
     3. Tap the touchpad toggle hotkey again
2056
 
 VERIFICATION:
2057
 
     Verify the touchpad has been disabled and re-enabled.
2058
 
 
2059
 
plugin: user-interact
2060
 
category_id: 2013.com.canonical.plainbox::suspend
2061
 
id: suspend/usb_insert_after_suspend
2062
 
estimated_duration: 30.0
2063
 
depends:
2064
 
 suspend/suspend_advanced
2065
 
command: removable_storage_watcher insert usb
2066
 
_description:
2067
 
 PURPOSE:
2068
 
     This test will check that the system correctly detects the insertion of
2069
 
     a USB storage device after suspend and resume.
2070
 
 STEPS:
2071
 
     1. Click "Test" and insert a USB storage device (pen-drive/HDD).
2072
 
        (Note: this test will time-out after 20 seconds.)
2073
 
     2. Do not unplug the device after the test.
2074
 
 VERIFICATION:
2075
 
     The verification of this test is automated. Do not change the
2076
 
     automatically selected result.
2077
 
 
2078
 
plugin: user-interact
2079
 
category_id: 2013.com.canonical.plainbox::suspend
2080
 
id: suspend/usb3_insert_after_suspend
2081
 
estimated_duration: 30.0
2082
 
requires:
2083
 
 usb.usb3 == 'supported'
2084
 
depends:
2085
 
 suspend/suspend_advanced
2086
 
command: removable_storage_watcher -m 500000000 insert usb
2087
 
_description:
2088
 
 PURPOSE:
2089
 
     This test will check that the system correctly detects the insertion of
2090
 
     a USB 3.0 storage device after suspend and resume.
2091
 
 STEPS:
2092
 
     1. Click "Test" and insert a USB 3.0 storage device (pen-drive/HDD) in
2093
 
        a USB 3.0 port. (Note: this test will time-out after 20 seconds.)
2094
 
     2. Do not unplug the device after the test.
2095
 
 VERIFICATION:
2096
 
     The verification of this test is automated. Do not change the
2097
 
     automatically selected result.
2098
 
 
2099
 
plugin: user-interact
2100
 
category_id: 2013.com.canonical.plainbox::suspend
2101
 
id: suspend/usb_remove_after_suspend
2102
 
estimated_duration: 30.0
2103
 
depends:
2104
 
 suspend/usb_insert_after_suspend
2105
 
command: removable_storage_watcher remove usb
2106
 
_description:
2107
 
 PURPOSE:
2108
 
     This test will check that the system correctly detects the removal of
2109
 
     a USB storage device after suspend.
2110
 
 STEPS:
2111
 
     1. Click "Test" and remove the USB device.
2112
 
        (Note: this test will time-out after 20 seconds.)
2113
 
 VERIFICATION:
2114
 
     The verification of this test is automated. Do not change the
2115
 
     automatically selected result.
2116
 
 
2117
 
plugin: user-interact
2118
 
category_id: 2013.com.canonical.plainbox::suspend
2119
 
id: suspend/usb3_remove_after_suspend
2120
 
estimated_duration: 30.0
2121
 
depends:
2122
 
 suspend/usb3_insert_after_suspend
2123
 
requires:
2124
 
 usb.usb3 == 'supported'
2125
 
command: removable_storage_watcher -m 500000000 remove usb
2126
 
_description:
2127
 
 PURPOSE:
2128
 
     This test will check that the system correctly detects the removal of
2129
 
     a USB 3.0 storage device after suspend
2130
 
 STEPS:
2131
 
     1. Click "Test" and remove the USB 3.0 device.
2132
 
        (Note: this test will time-out after 20 seconds.)
2133
 
 VERIFICATION:
2134
 
     The verification of this test is automated. Do not change the
2135
 
     automatically selected result.
2136
 
 
2137
 
plugin: shell
2138
 
category_id: 2013.com.canonical.plainbox::suspend
2139
 
id: suspend/usb_storage_automated_after_suspend
2140
 
estimated_duration: 1.2
2141
 
depends: suspend/usb_insert_after_suspend
2142
 
user: root
2143
 
command: removable_storage_test -s 268400000 usb
2144
 
_description:
2145
 
 This test is automated and executes after the suspend/usb_insert_after_suspend
2146
 
 test is run.
2147
 
 
2148
 
plugin: shell
2149
 
category_id: 2013.com.canonical.plainbox::suspend
2150
 
id: suspend/usb3_storage_automated_after_suspend
2151
 
estimated_duration: 1.2
2152
 
requires:
2153
 
 usb.usb3 == 'supported'
2154
 
depends: suspend/usb3_insert_after_suspend
2155
 
user: root
2156
 
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
2157
 
_description:
2158
 
 This test is automated and executes after the suspend/usb3_insert_after_suspend
2159
 
 test is run.
2160
 
 
2161
 
plugin: shell
2162
 
category_id: 2013.com.canonical.plainbox::suspend
2163
 
id: suspend/usb_storage_preinserted_after_suspend
2164
 
estimated_duration: 1.2
2165
 
user: root
2166
 
depends: suspend/suspend_advanced_auto
2167
 
command: removable_storage_test -l usb && removable_storage_test -s 268400000 usb
2168
 
_description:
2169
 
 This is an automated version of usb/storage-automated and assumes that the
2170
 
 server has usb storage devices plugged in prior to checkbox execution. It
2171
 
 is intended for servers and SRU automated testing.
2172
 
 
2173
 
plugin: shell
2174
 
category_id: 2013.com.canonical.plainbox::suspend
2175
 
id: suspend/usb3_storage_preinserted_after_suspend
2176
 
estimated_duration: 1.2
2177
 
user: root
2178
 
requires:
2179
 
 usb.usb3 == 'supported'
2180
 
depends: suspend/suspend_advanced_auto
2181
 
command: removable_storage_test -l usb && removable_storage_test -s 268400000 -m 500000000  usb --driver xhci_hcd
2182
 
_description:
2183
 
 This is an automated version of usb3/storage-automated and assumes that the
2184
 
 server has usb 3.0 storage devices plugged in prior to checkbox execution. It
2185
 
 is intended for servers and SRU automated testing.
2186
 
 
2187
 
plugin: shell
2188
 
category_id: 2013.com.canonical.plainbox::suspend
2189
 
id: suspend/usb_performance_after_suspend
2190
 
depends: suspend/usb_insert_after_suspend
2191
 
user: root
2192
 
estimated_duration: 45.00
2193
 
command: removable_storage_test -s 268400000 -p 15 usb
2194
 
_description:
2195
 
 This test will check that your USB 2.0 port transfers data at a
2196
 
 minimum expected speed.
2197
 
 
2198
 
plugin: shell
2199
 
category_id: 2013.com.canonical.plainbox::suspend
2200
 
id: suspend/usb3_superspeed_performance_after_suspend
2201
 
requires:
2202
 
 usb.usb3 == 'supported'
2203
 
depends: suspend/usb3_insert_after_suspend
2204
 
user: root
2205
 
estimated_duration: 45.00
2206
 
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
2207
 
_description:
2208
 
 This test will check that your USB 3.0 port could be recognized
2209
 
 as SuperSpeed USB device using xhci_hcd driver and transfers data correctly.
2210
 
 
2211
 
plugin: user-interact
2212
 
category_id: 2013.com.canonical.plainbox::suspend
2213
 
id: suspend/mmc-insert-after-suspend
2214
 
estimated_duration: 30.0
2215
 
depends: suspend/suspend_advanced
2216
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2217
 
_description:
2218
 
 PURPOSE:
2219
 
     This test will check that the systems media card reader can
2220
 
     detect the insertion of an MMC card after the system has been suspended
2221
 
 STEPS:
2222
 
     1. Click "Test" and insert an MMC card into the reader.
2223
 
        If a file browser opens up, you can safely close it.
2224
 
        (Note: this test will time-out after 20 seconds.)
2225
 
     2. Do not remove the device after this test.
2226
 
 VERIFICATION:
2227
 
     The verification of this test is automated. Do not change the
2228
 
     automatically selected result.
2229
 
 
2230
 
plugin: shell
2231
 
category_id: 2013.com.canonical.plainbox::suspend
2232
 
id: suspend/mmc-storage-after-suspend
2233
 
depends: suspend/mmc-insert-after-suspend
2234
 
estimated_duration: 10.0
2235
 
user: root
2236
 
command: removable_storage_test -s 67120000 --memorycard sdio usb scsi
2237
 
_description:
2238
 
 This test is automated and executes after the mediacard/mmc-insert-after-suspend test
2239
 
 is run. It tests reading and writing to the MMC card after the system has been suspended.
2240
 
 
2241
 
plugin: user-interact
2242
 
category_id: 2013.com.canonical.plainbox::suspend
2243
 
id: suspend/mmc-remove-after-suspend
2244
 
depends: suspend/mmc-insert-after-suspend
2245
 
estimated_duration: 30.0
2246
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2247
 
_description:
2248
 
 PURPOSE:
2249
 
     This test will check that the system correctly detects the removal
2250
 
     of an MMC card from the systems card reader after the system has been suspended.
2251
 
 STEPS:
2252
 
     1. Click "Test" and remove the MMC card from the reader.
2253
 
        (Note: this test will time-out after 20 seconds.)
2254
 
 VERIFICATION:
2255
 
     The verification of this test is automated. Do not change the
2256
 
     automatically selected result.
2257
 
 
2258
 
plugin: user-interact
2259
 
category_id: 2013.com.canonical.plainbox::suspend
2260
 
id: suspend/sd-insert-after-suspend
2261
 
estimated_duration: 30.0
2262
 
depends: suspend/suspend_advanced
2263
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2264
 
_description:
2265
 
 PURPOSE:
2266
 
     This test will check that the systems media card reader can
2267
 
     detect the insertion of an UNLOCKED SD card after the system
2268
 
     has been suspended
2269
 
 STEPS:
2270
 
     1. Click "Test" and insert an UNLOCKED SD card into the reader.
2271
 
        If a file browser opens up, you can safely close it.
2272
 
        (Note: this test will time-out after 20 seconds.)
2273
 
     2. Do not remove the device after this test.
2274
 
 VERIFICATION:
2275
 
     The verification of this test is automated. Do not change the
2276
 
     automatically selected result.
2277
 
 
2278
 
plugin: shell
2279
 
category_id: 2013.com.canonical.plainbox::suspend
2280
 
id: suspend/sd-storage-after-suspend
2281
 
estimated_duration: 10.0
2282
 
depends: suspend/sd-insert-after-suspend
2283
 
user: root
2284
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2285
 
_description:
2286
 
 This test is automated and executes after the mediacard/sd-insert-after-suspend test
2287
 
 is run. It tests reading and writing to the SD card after the system has been suspended.
2288
 
 
2289
 
plugin: user-interact
2290
 
category_id: 2013.com.canonical.plainbox::suspend
2291
 
id: suspend/sd-remove-after-suspend
2292
 
estimated_duration: 30.0
2293
 
depends: suspend/sd-insert-after-suspend
2294
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2295
 
_description:
2296
 
 PURPOSE:
2297
 
     This test will check that the system correctly detects
2298
 
     the removal of an SD card from the systems card reader
2299
 
     after the system has been suspended.
2300
 
 STEPS:
2301
 
     1. Click "Test" and remove the SD card from the reader.
2302
 
        (Note: this test will time-out after 20 seconds.)
2303
 
 VERIFICATION:
2304
 
     The verification of this test is automated. Do not change the
2305
 
     automatically selected result.
2306
 
 
2307
 
plugin: user-interact
2308
 
category_id: 2013.com.canonical.plainbox::suspend
2309
 
id: suspend/sdhc-insert-after-suspend
2310
 
estimated_duration: 30.0
2311
 
depends: suspend/suspend_advanced
2312
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2313
 
_description:
2314
 
 PURPOSE:
2315
 
     This test will check that the systems media card reader can
2316
 
     detect the insertion of an UNLOCKED SDHC media card after the
2317
 
     system has been suspended
2318
 
 STEPS:
2319
 
     1. Click "Test" and insert an UNLOCKED SDHC card into the reader.
2320
 
        If a file browser opens up, you can safely close it.
2321
 
        (Note: this test will time-out after 20 seconds.)
2322
 
     2. Do not remove the device after this test.
2323
 
 VERIFICATION:
2324
 
     The verification of this test is automated. Do not change the
2325
 
     automatically selected result.
2326
 
 
2327
 
plugin: shell
2328
 
category_id: 2013.com.canonical.plainbox::suspend
2329
 
id: suspend/sdhc-storage-after-suspend
2330
 
estimated_duration: 10.0
2331
 
depends: suspend/sdhc-insert-after-suspend
2332
 
user: root
2333
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2334
 
_description:
2335
 
 This test is automated and executes after the mediacard/sdhc-insert-after-suspend test
2336
 
 is run. It tests reading and writing to the SDHC card after the system has been suspended.
2337
 
 
2338
 
plugin: user-interact
2339
 
category_id: 2013.com.canonical.plainbox::suspend
2340
 
id: suspend/sdhc-remove-after-suspend
2341
 
estimated_duration: 30.0
2342
 
depends: suspend/sdhc-insert-after-suspend
2343
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2344
 
_description:
2345
 
 PURPOSE:
2346
 
     This test will check that the system correctly detects the removal
2347
 
     of an SDHC card from the systems card reader after the system has been suspended.
2348
 
 STEPS:
2349
 
     1. Click "Test" and remove the SDHC card from the reader.
2350
 
        (Note: this test will time-out after 20 seconds.)
2351
 
 VERIFICATION:
2352
 
     The verification of this test is automated. Do not change the
2353
 
     automatically selected result.
2354
 
 
2355
 
plugin: user-interact
2356
 
category_id: 2013.com.canonical.plainbox::suspend
2357
 
id: mediacard/cf-insert-after-suspend
2358
 
estimated_duration: 30.0
2359
 
depends: suspend/suspend_advanced
2360
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2361
 
_description:
2362
 
 PURPOSE:
2363
 
     This test will check that the systems media card reader can
2364
 
     detect the insertion of a CF card after the system has been suspended
2365
 
 STEPS:
2366
 
     1. Click "Test" and insert a CF card into the reader.
2367
 
        If a file browser opens up, you can safely close it.
2368
 
        (Note: this test will time-out after 20 seconds.)
2369
 
     2. Do not remove the device after this test.
2370
 
 VERIFICATION:
2371
 
     The verification of this test is automated. Do not change the
2372
 
     automatically selected result.
2373
 
 
2374
 
plugin: shell
2375
 
category_id: 2013.com.canonical.plainbox::suspend
2376
 
id: mediacard/cf-storage-after-suspend
2377
 
estimated_duration: 10.0
2378
 
depends: mediacard/cf-insert-after-suspend
2379
 
user: root
2380
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2381
 
_description:
2382
 
 This test is automated and executes after the mediacard/cf-insert-after-suspend test
2383
 
 is run. It tests reading and writing to the CF card after the system has been suspended.
2384
 
 
2385
 
plugin: user-interact
2386
 
category_id: 2013.com.canonical.plainbox::suspend
2387
 
id: mediacard/cf-remove-after-suspend
2388
 
estimated_duration: 30.0
2389
 
depends: mediacard/cf-insert-after-suspend
2390
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2391
 
_description:
2392
 
 PURPOSE:
2393
 
     This test will check that the system correctly detects the removal
2394
 
     of a CF card from the systems card reader after the system has been suspended.
2395
 
 STEPS:
2396
 
     1. Click "Test" and remove the CF card from the reader.
2397
 
        (Note: this test will time-out after 20 seconds.)
2398
 
 VERIFICATION:
2399
 
     The verification of this test is automated. Do not change the
2400
 
     automatically selected result.
2401
 
 
2402
 
plugin: user-interact
2403
 
category_id: 2013.com.canonical.plainbox::suspend
2404
 
id: mediacard/sdxc-insert-after-suspend
2405
 
estimated_duration: 30.0
2406
 
depends: suspend/suspend_advanced
2407
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2408
 
_description:
2409
 
 PURPOSE:
2410
 
     This test will check that the systems media card reader can
2411
 
     detect the insertion of a SDXC card after the system has been suspended
2412
 
 STEPS:
2413
 
     1. Click "Test" and insert a SDXC card into the reader.
2414
 
        If a file browser opens up, you can safely close it.
2415
 
        (Note: this test will time-out after 20 seconds.)
2416
 
     2. Do not remove the device after this test.
2417
 
 VERIFICATION:
2418
 
     The verification of this test is automated. Do not change the
2419
 
     automatically selected result.
2420
 
 
2421
 
plugin: shell
2422
 
category_id: 2013.com.canonical.plainbox::suspend
2423
 
id: mediacard/sdxc-storage-after-suspend
2424
 
estimated_duration: 10.0
2425
 
depends: mediacard/sdxc-insert-after-suspend
2426
 
user: root
2427
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2428
 
_description:
2429
 
 This test is automated and executes after the mediacard/sdxc-insert-after-suspend test
2430
 
 is run. It tests reading and writing to the SDXC card after the system has been suspended.
2431
 
 
2432
 
plugin: user-interact
2433
 
category_id: 2013.com.canonical.plainbox::suspend
2434
 
id: mediacard/sdxc-remove-after-suspend
2435
 
depends: mediacard/sdxc-insert-after-suspend
2436
 
estimated_duration: 30.0
2437
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2438
 
_description:
2439
 
 PURPOSE:
2440
 
     This test will check that the system correctly detects the removal
2441
 
     of a SDXC card from the systems card reader after the system has been suspended.
2442
 
 STEPS:
2443
 
     1. Click "Test" and remove the SDXC card from the reader.
2444
 
        (Note: this test will time-out after 20 seconds.)
2445
 
 VERIFICATION:
2446
 
     The verification of this test is automated. Do not change the
2447
 
     automatically selected result.
2448
 
 
2449
 
plugin: user-interact
2450
 
category_id: 2013.com.canonical.plainbox::suspend
2451
 
id: mediacard/ms-insert-after-suspend
2452
 
estimated_duration: 30.0
2453
 
depends: suspend/suspend_advanced
2454
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2455
 
_description:
2456
 
 PURPOSE:
2457
 
     This test will check that the systems media card reader can
2458
 
     detect the insertion of a MS card after the system has been suspended
2459
 
 STEPS:
2460
 
     1. Click "Test" and insert a MS card into the reader.
2461
 
        If a file browser opens up, you can safely close it.
2462
 
        (Note: this test will time-out after 20 seconds.)
2463
 
     2. Do not remove the device after this test.
2464
 
 VERIFICATION:
2465
 
     The verification of this test is automated. Do not change the
2466
 
     automatically selected result.
2467
 
 
2468
 
plugin: shell
2469
 
category_id: 2013.com.canonical.plainbox::suspend
2470
 
id: mediacard/ms-storage-after-suspend
2471
 
estimated_duration: 10.0
2472
 
depends: mediacard/ms-insert-after-suspend
2473
 
user: root
2474
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2475
 
_description:
2476
 
 This test is automated and executes after the mediacard/ms-insert-after-suspend test
2477
 
 is run. It tests reading and writing to the MS card after the system has been suspended.
2478
 
 
2479
 
plugin: user-interact
2480
 
category_id: 2013.com.canonical.plainbox::suspend
2481
 
id: mediacard/ms-remove-after-suspend
2482
 
estimated_duration: 30.0
2483
 
depends: mediacard/ms-insert-after-suspend
2484
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2485
 
_description:
2486
 
 PURPOSE:
2487
 
     This test will check that the system correctly detects the removal
2488
 
     of a MS card from the systems card reader after the system has been suspended.
2489
 
 STEPS:
2490
 
     1. Click "Test" and remove the MS card from the reader.
2491
 
        (Note: this test will time-out after 20 seconds.)
2492
 
 VERIFICATION:
2493
 
     The verification of this test is automated. Do not change the
2494
 
     automatically selected result.
2495
 
 
2496
 
plugin: user-interact
2497
 
category_id: 2013.com.canonical.plainbox::suspend
2498
 
id: mediacard/msp-insert-after-suspend
2499
 
estimated_duration: 30.0
2500
 
depends: suspend/suspend_advanced
2501
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2502
 
_description:
2503
 
 PURPOSE:
2504
 
     This test will check that the systems media card reader can
2505
 
     detect the insertion of a MSP card after the system has been suspended
2506
 
 STEPS:
2507
 
     1. Click "Test" and insert a MSP card into the reader.
2508
 
        If a file browser opens up, you can safely close it.
2509
 
        (Note: this test will time-out after 20 seconds.)
2510
 
     2. Do not remove the device after this test.
2511
 
 VERIFICATION:
2512
 
     The verification of this test is automated. Do not change the
2513
 
     automatically selected result.
2514
 
 
2515
 
plugin: shell
2516
 
category_id: 2013.com.canonical.plainbox::suspend
2517
 
id: mediacard/msp-storage-after-suspend
2518
 
estimated_duration: 10.0
2519
 
depends: mediacard/msp-insert-after-suspend
2520
 
user: root
2521
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2522
 
_description:
2523
 
 This test is automated and executes after the mediacard/msp-insert-after-suspend test
2524
 
 is run. It tests reading and writing to the MSP card after the system has been suspended.
2525
 
 
2526
 
plugin: user-interact
2527
 
category_id: 2013.com.canonical.plainbox::suspend
2528
 
id: mediacard/msp-remove-after-suspend
2529
 
estimated_duration: 30.0
2530
 
depends: mediacard/msp-insert-after-suspend
2531
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2532
 
_description:
2533
 
 PURPOSE:
2534
 
     This test will check that the system correctly detects the removal
2535
 
     of a MSP card from the systems card reader after the system has been suspended.
2536
 
 STEPS:
2537
 
     1. Click "Test" and remove the MSP card from the reader.
2538
 
        (Note: this test will time-out after 20 seconds.)
2539
 
 VERIFICATION:
2540
 
     The verification of this test is automated. Do not change the
2541
 
     automatically selected result.
2542
 
 
2543
 
plugin: user-interact
2544
 
category_id: 2013.com.canonical.plainbox::suspend
2545
 
id: mediacard/xd-insert-after-suspend
2546
 
estimated_duration: 30.0
2547
 
depends: suspend/suspend_advanced
2548
 
command: removable_storage_watcher --memorycard insert sdio usb scsi
2549
 
_description:
2550
 
 PURPOSE:
2551
 
     This test will check that the systems media card reader can
2552
 
     detect the insertion of a xD card after the system has been suspended
2553
 
 STEPS:
2554
 
     1. Click "Test" and insert a xD card into the reader.
2555
 
        If a file browser opens up, you can safely close it.
2556
 
        (Note: this test will time-out after 20 seconds.)
2557
 
     2. Do not remove the device after this test.
2558
 
 VERIFICATION:
2559
 
     The verification of this test is automated. Do not change the
2560
 
     automatically selected result.
2561
 
 
2562
 
plugin: shell
2563
 
category_id: 2013.com.canonical.plainbox::suspend
2564
 
id: mediacard/xd-storage-after-suspend
2565
 
estimated_duration: 10.0
2566
 
depends: mediacard/xd-insert-after-suspend
2567
 
user: root
2568
 
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
2569
 
_description:
2570
 
 This test is automated and executes after the mediacard/xd-insert-after-suspend test
2571
 
 is run. It tests reading and writing to the xD card after the system has been suspended.
2572
 
 
2573
 
plugin: user-interact
2574
 
category_id: 2013.com.canonical.plainbox::suspend
2575
 
id: mediacard/xd-remove-after-suspend
2576
 
estimated_duration: 30.0
2577
 
depends: mediacard/xd-insert-after-suspend
2578
 
command: removable_storage_watcher --memorycard remove sdio usb scsi
2579
 
_description:
2580
 
 PURPOSE:
2581
 
     This test will check that the system correctly detects the removal
2582
 
     of a xD card from the systems card reader after the system has been suspended.
2583
 
 STEPS:
2584
 
     1. Click "Test" and remove the xD card from the reader.
2585
 
        (Note: this test will time-out after 20 seconds.)
2586
 
 VERIFICATION:
2587
 
     The verification of this test is automated. Do not change the
2588
 
     automatically selected result.
2589
 
 
2590
 
plugin: shell
2591
 
category_id: 2013.com.canonical.plainbox::suspend
2592
 
id: touchpad/touchpad_after_suspend
2593
 
depends: suspend/suspend_advanced_auto
2594
 
requires:
2595
 
  dmi.product in ['Notebook','Laptop','Portable']
2596
 
  xinput.device_class == 'XITouchClass' and xinput.touch_mode != 'dependent'
2597
 
command: true
2598
 
estimated_duration: 1.2
2599
 
_description:
2600
 
 Determine if the touchpad is still functioning after suspend/resume.
2601
 
 
2602
 
plugin: manual
2603
 
category_id: 2013.com.canonical.plainbox::suspend
2604
 
id: touchscreen/touchscreen_after_suspend
2605
 
imports: from 2013.com.canonical.plainbox import manifest
2606
 
requires: manifest.has_touchscreen == 'True'
2607
 
depends: suspend/suspend_advanced_auto
2608
 
estimated_duration: 30.0
2609
 
_description:
2610
 
 PURPOSE:
2611
 
     Check touchscreen tap recognition
2612
 
 STEPS:
2613
 
     1. Tap an object on the screen with finger. The cursor should jump to location tapped and object should highlight
2614
 
 VERIFICATION:
2615
 
     Does tap recognition work?
2616
 
 
2617
 
plugin: user-interact-verify
2618
 
category_id: 2013.com.canonical.plainbox::suspend
2619
 
id: camera/display_after_suspend
2620
 
estimated_duration: 120.0
2621
 
depends: suspend/suspend_advanced
2622
 
requires:
2623
 
 device.category == 'CAPTURE'
2624
 
command: camera_test display
2625
 
_description:
2626
 
 PURPOSE:
2627
 
     This test will check that the built-in camera works after suspend
2628
 
 STEPS:
2629
 
     1. Click on Test to display a video capture from the camera for ten seconds.
2630
 
 VERIFICATION:
2631
 
     Did you see the video capture?
2632
 
 
2633
 
plugin: user-interact-verify
2634
 
category_id: 2013.com.canonical.plainbox::suspend
2635
 
id: camera/still_after_suspend
2636
 
estimated_duration: 120.0
2637
 
depends: camera/display_after_suspend
2638
 
requires:
2639
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
2640
 
 package.name == 'eog'
2641
 
 package.name == 'fswebcam' or package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
2642
 
 device.category == 'CAPTURE'
2643
 
command: camera_test still
2644
 
_description:
2645
 
 PURPOSE:
2646
 
     This test will check that the built-in camera works after suspend
2647
 
 STEPS:
2648
 
     1. Click on Test to display a still image from the camera for ten seconds.
2649
 
 VERIFICATION:
2650
 
     Did you see the image?
2651
 
 
2652
 
plugin: shell
2653
 
category_id: 2013.com.canonical.plainbox::suspend
2654
 
id: camera/multiple_resolution_after_suspend
2655
 
estimated_duration: 1.2
2656
 
depends: camera/still_after_suspend
2657
 
requires:
2658
 
 package.name == 'fswebcam' or package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
2659
 
 device.category == 'CAPTURE'
2660
 
command: camera_test resolutions
2661
 
_description:
2662
 
  Takes multiple pictures based on the resolutions supported by the camera and
2663
 
  validates their size and that they are of a valid format after suspend
2664
 
 
2665
 
unit: template
2666
 
template-resource: device
2667
 
template-filter: device.category == 'MOUSE' or device.category == 'TOUCHPAD' or device.category == 'TOUCHSCREEN'
2668
 
plugin: manual
2669
 
category_id: 2013.com.canonical.plainbox::suspend
2670
 
id: suspend/pointing-after-suspend_{product_slug}_{category}_{__index__}
2671
 
depends: suspend/suspend_advanced
2672
 
_description:
2673
 
 PURPOSE:
2674
 
     This will test your {product} device after suspend.
2675
 
 STEPS:
2676
 
     1. Move the cursor with your {product}.
2677
 
 VERIFICATION:
2678
 
     Did the cursor move?
2679
 
 
2680
 
unit: template
2681
 
template-resource: device
2682
 
template-filter: device.category == 'MOUSE' or device.category == 'TOUCHPAD'
2683
 
plugin: manual
2684
 
category_id: 2013.com.canonical.plainbox::suspend
2685
 
estimated_duration: 30.0
2686
 
id: suspend/clicking-after-suspend_{product_slug}_{category}_{__index__}
2687
 
depends: suspend/suspend_advanced
2688
 
_summary: Check post suspend button functionality for {product}
2689
 
_description:
2690
 
 PURPOSE:
2691
 
     This will test the buttons of your {product} device after suspend
2692
 
 STEPS:
2693
 
     1. Click the left button with your {product}.
2694
 
     2. Click the right button with your {product}.
2695
 
     3. Click the middle button with your {product} (if available).
2696
 
     4. Double-click the left button with your {product}.
2697
 
 VERIFICATION:
2698
 
     Did these buttons work as expected?
2699
 
 
2700
 
unit: template
2701
 
template-resource: graphics_card
2702
 
plugin: shell
2703
 
category_id: 2013.com.canonical.plainbox::suspend
2704
 
id: suspend/{index}_compiz_check_after_suspend_{product_slug}
2705
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
2706
 
requires: package.name == 'nux-tools'
2707
 
command: ! /usr/lib/nux/unity_support_test -c -p 2>&1 | ansi_parser | grep -e ":\(\s\+\)no$" -ie "error"
2708
 
estimated_duration: 0.130
2709
 
_description: Check that {product} hardware is able to run compiz after suspend
2710
 
_summary: Test Compiz support for {product} after suspend
2711
 
 
2712
 
plugin: shell
2713
 
category_id: 2013.com.canonical.plainbox::suspend
2714
 
id: suspend/compiz_check_after_suspend
2715
 
depends: suspend/suspend_advanced
2716
 
requires: package.name == 'nux-tools'
2717
 
command: ! /usr/lib/nux/unity_support_test -c -p 2>&1 | ansi_parser | grep -e ":\(\s\+\)no$" -ie "error"
2718
 
estimated_duration: 0.130
2719
 
_description: Check that the hardware is able to run compiz after suspend
2720
 
_summary: Test Compiz support after suspend
2721
 
 
2722
 
unit: template
2723
 
template-resource: graphics_card
2724
 
plugin: user-interact-verify
2725
 
category_id: 2013.com.canonical.plainbox::suspend
2726
 
id: suspend/{index}_glxgears_after_suspend_{product_slug}
2727
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
2728
 
requires: package.name == 'mesa-utils'
2729
 
command: glxgears; true
2730
 
_summary: Test that glxgears works for {vendor} {product} after suspend
2731
 
_description:
2732
 
 PURPOSE:
2733
 
     This test tests the basic 3D capabilities of your {vendor} {product} video card after suspend
2734
 
 STEPS:
2735
 
     1. Click "Test" to execute an OpenGL demo. Press ESC at any time to close.
2736
 
     2. Verify that the animation is not jerky or slow.
2737
 
 VERIFICATION:
2738
 
     1. Did the 3d animation appear?
2739
 
     2. Was the animation free from slowness/jerkiness?
2740
 
 
2741
 
plugin: user-interact-verify
2742
 
category_id: 2013.com.canonical.plainbox::suspend
2743
 
id: suspend/glxgears_after_suspend
2744
 
depends: suspend/suspend_advanced
2745
 
requires:
2746
 
 package.name == 'mesa-utils'
2747
 
 device.category == 'VIDEO'
2748
 
command: glxgears; true
2749
 
_summary: Test that glxgears works after suspend
2750
 
_description:
2751
 
 PURPOSE:
2752
 
     This test tests the basic 3D capabilities of your video card after suspend
2753
 
 STEPS:
2754
 
     1. Click "Test" to execute an OpenGL demo. Press ESC at any time to close.
2755
 
     2. Verify that the animation is not jerky or slow.
2756
 
 VERIFICATION:
2757
 
     1. Did the 3d animation appear?
2758
 
     2. Was the animation free from slowness/jerkiness?
2759
 
 
2760
 
unit: template
2761
 
template-resource: graphics_card
2762
 
id: suspend/{index}_video_after_suspend_{product_slug}
2763
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
2764
 
plugin: user-interact-verify
2765
 
category_id: 2013.com.canonical.plainbox::suspend
2766
 
requires:
2767
 
 package.name == 'xorg'
2768
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
2769
 
command: gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink'
2770
 
_summary: Test that video can be displayed after suspend with {vendor} {product}
2771
 
_description:
2772
 
 PURPOSE:
2773
 
     This test will test the default display after suspend with a sample video
2774
 
 STEPS:
2775
 
     1. Click "Test" to display a video test.
2776
 
 VERIFICATION:
2777
 
     Do you see color bars and static?
2778
 
 
2779
 
id: suspend/video_after_suspend
2780
 
plugin: user-interact-verify
2781
 
category_id: 2013.com.canonical.plainbox::suspend
2782
 
depends: suspend/suspend_advanced
2783
 
requires:
2784
 
 device.category == 'VIDEO'
2785
 
 package.name == 'xorg'
2786
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
2787
 
command: gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink'
2788
 
_summary: Test that video can be displayed after suspend
2789
 
_description:
2790
 
 PURPOSE:
2791
 
     This test will test the default display after suspend with a sample video
2792
 
 STEPS:
2793
 
     1. Click "Test" to display a video test.
2794
 
 VERIFICATION:
2795
 
     Do you see color bars and static?
2796
 
 
2797
 
unit: template
2798
 
template-resource: graphics_card
2799
 
plugin: shell
2800
 
category_id: 2013.com.canonical.plainbox::suspend
2801
 
id: suspend/{index}_driver_version_after_suspend_{product_slug}
2802
 
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}
2803
 
command: graphics_driver
2804
 
estimated_duration: 0.500
2805
 
_description: Parses Xorg.0.Log and discovers the running X driver and version after suspend for the {vendor} {product} graphics card
2806
 
_summary: Test X driver/version after suspend for {vendor} {product}
2807
 
 
2808
 
id: suspend/driver_version_after_suspend
2809
 
requires: device.category == 'VIDEO'
2810
 
depends: suspend/suspend_advanced
2811
 
plugin: shell
2812
 
category_id: 2013.com.canonical.plainbox::suspend
2813
 
command: graphics_driver
2814
 
estimated_duration: 0.500
2815
 
_description: Parses Xorg.0.Log and discovers the running X driver and version after suspend
2816
 
_summary: Test X driver/version after suspend
2817
 
 
2818
 
id: suspend/oops_after_suspend
2819
 
depends: suspend/suspend_advanced
2820
 
plugin:shell
2821
 
estimated_duration: 10.0
2822
 
requires:
2823
 
  package.name == 'fwts'
2824
 
user: root
2825
 
_description:
2826
 
 Run Firmware Test Suite (fwts) oops tests after suspend.
2827
 
environ: PLAINBOX_SESSION_SHARE
2828
 
command:
2829
 
 fwts_test -l $PLAINBOX_SESSION_SHARE/fwts_oops_results_after_s3.log -t oops
2830
 
 
2831
 
id: suspend/oops_results_after_suspend.log
2832
 
plugin: attachment
2833
 
category_id: 2013.com.canonical.plainbox::suspend
2834
 
estimated_duration: 0.5
2835
 
command:
2836
 
 [ -e ${PLAINBOX_SESSION_SHARE}/fwts_oops_results_after_s3.log ] && cat ${PLAINBOX_SESSION_SHARE}/fwts_oops_results_after_s3.log
2837
 
_description: Attaches the FWTS oops results log to the submission after suspend
2838