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
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
17
template-resource: graphics_card
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
27
category_id: 2013.com.canonical.plainbox::suspend
28
id: suspend/audio_before_suspend
29
estimated_duration: 1.0
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
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
44
category_id: 2013.com.canonical.plainbox::suspend
45
id: suspend/memory_before_suspend
46
estimated_duration: 1.2
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
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
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.
63
template-resource: device
64
template-filter: device.category == 'NETWORK'
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
71
package.name == 'iperf'
73
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
74
command: network -i {interface} -t iperf
76
This test executes iperf connection performance/stability against device {__index__} ({interface}) before suspend.
79
template-resource: device
80
template-filter: device.category == 'WIRELESS'
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
87
package.name == 'iperf'
89
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
90
command: network -i {interface} -t iperf
92
This test executes iperf connection performance/stability against device {__index__} ({interface}) before suspend.
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
100
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
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
106
This test executes iperf connection performance/stability against the broadband device found on the system before suspend.
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
114
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
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
120
This test executes iperf connection performance/stability against the broadband device found on the system before suspend.
123
category_id: 2013.com.canonical.plainbox::suspend
124
id: suspend/bluetooth_obex_send_before_suspend
125
estimated_duration: 10.0
127
package.name == 'bluez'
128
package.name == 'obexftp'
129
device.category == 'BLUETOOTH'
131
if [ -z "$BTDEVADDR" ]
133
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
136
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
138
echo "rfkill list shows BT is hard blocked"
140
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
142
echo "rfkill list shows BT is soft blocked, removing before testing"
143
rfkill unblock bluetooth
146
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR send 2>&1 | ansi_parser
148
This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
151
category_id: 2013.com.canonical.plainbox::suspend
152
id: suspend/bluetooth_obex_browse_before_suspend
153
estimated_duration: 10.0
155
package.name == 'bluez'
156
package.name == 'obexftp'
157
device.category == 'BLUETOOTH'
159
if [ -z "$BTDEVADDR" ]
161
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
164
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
166
echo "rfkill list shows BT is hard blocked"
168
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
170
echo "rfkill list shows BT is soft blocked, removing before testing"
171
rfkill unblock bluetooth
174
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR browse 2>&1 | ansi_parser
176
This is an automated Bluetooth test. It emulates browsing on a remote device specified by the BTDEVADDR environment variable.
179
category_id: 2013.com.canonical.plainbox::suspend
180
id: suspend/bluetooth_obex_get_before_suspend
181
estimated_duration: 20.0
183
package.name == 'bluez'
184
package.name == 'obexftp'
185
device.category == 'BLUETOOTH'
187
if [ -z "$BTDEVADDR" ]
189
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
192
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
194
echo "rfkill list shows BT is hard blocked"
196
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
198
echo "rfkill list shows BT is soft blocked, removing before testing"
199
rfkill unblock bluetooth
202
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR get 2>&1 | ansi_parser
204
This is an automated Bluetooth test. It receives the given file from a remote host specified by the BTDEVADDR environment variable
206
plugin: user-interact-verify
207
category_id: 2013.com.canonical.plainbox::suspend
208
id: suspend/suspend_advanced
210
sleep.mem == 'supported'
211
rtc.state == 'supported'
213
environ: PLAINBOX_SESSION_SHARE
215
if type -P fwts >/dev/null; then
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
219
echo "Calling sleep_test"
220
set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/2_suspend_single_times.log
222
estimated_duration: 90.0
225
This test will check suspend and resume
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
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.)
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}
241
sleep.mem == 'supported'
242
rtc.state == 'supported'
243
depends: graphics/{index}_switch_card_{product_slug}
245
environ: PLAINBOX_SESSION_SHARE
247
if type -P fwts >/dev/null; then
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
251
echo "Calling sleep_test"
252
set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
254
estimated_duration: 90.0
255
_summary: Test suspend/resume after switching to {vendor} {product}
258
This test will check suspend and resume after switching to {vendor} {product} graphics card.
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
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.)
270
category_id: 2013.com.canonical.plainbox::suspend
271
id: suspend/suspend_advanced_auto
273
sleep.mem == 'supported'
274
rtc.state == 'supported'
276
This is the automated version of suspend/suspend_advanced.
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
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}
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
293
This test will check hybrid sleep and resume
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
300
Did your system enter hybrid sleep and then resume correctly?
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
308
Automated check of the suspend log to look for errors reported by fwts
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
315
Attaches the log from the single suspend/resume test to the results
318
template-resource: graphics_card
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
325
Attaches the log from the single suspend/resume test to the results
328
template-resource: graphics_card
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
336
Automated check of the hybrid sleep log to look for errors reported by fwts
339
template-resource: graphics_card
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
346
Attaches the log from the single hybrid sleep/resume test to the results
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
354
Checks the sleep times to ensure that a machine suspends and resumes within a given threshold
357
template-resource: graphics_card
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
366
plugin: user-interact-verify
367
category_id: 2013.com.canonical.plainbox::suspend
368
id: power-management/usb_wakeup_keyboard
370
depends: suspend/suspend_advanced
371
estimated_duration: 120.0
375
Wake up by USB keyboard
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
381
Did the system wake up from suspend mode when you pressed a keyboard key?
383
plugin: user-interact-verify
384
category_id: 2013.com.canonical.plainbox::suspend
385
id: power-management/usb_wakeup_mouse
387
depends: suspend/suspend_advanced
388
estimated_duration: 120.0
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
398
Did the system wake up from suspend mode when you pressed the mouse button?
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 -
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 -
417
template-resource: graphics_card
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 -
427
category_id: 2013.com.canonical.plainbox::suspend
428
id: suspend/audio_after_suspend
429
estimated_duration: 1.0
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.
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
440
category_id: 2013.com.canonical.plainbox::suspend
441
id: suspend/audio_after_suspend_auto
442
estimated_duration: 1.2
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.
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
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
458
device.category == 'AUDIO'
459
package.name == 'pulseaudio-utils'
460
command: pulse-active-port-change sinks
463
Check that system detects speakers or headphones being plugged in after suspend
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.
471
Verification is automatic, no action is required.
472
The test times out after 30 seconds (and fails in that case).
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
480
device.category == 'AUDIO'
481
package.name == 'pulseaudio-utils'
482
command: pulse-active-port-change sources
485
Check that system detects a microphone being plugged in after suspend
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.
494
Verification is automatic, no action is required.
495
The test times out after 30 seconds (and fails in that case).
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
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'
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'
512
audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
516
This test will check that headphones connector works correctly after suspend
518
1. Connect a pair of headphones to your audio device
519
2. Commence the test to play a sound to your audio device
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?
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
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'
534
audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
535
audio_settings set --device=pci --volume=50
538
audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
542
This test will check that recording sound using an external microphone works correctly after suspend
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
548
Did you hear your speech played back?
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 -
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 -
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
572
Verify that all memory is available after resuming from suspend.
573
command: meminfo_resource | diff $PLAINBOX_SESSION_SHARE/meminfo_before_suspend -
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
581
Verify that all memory is available after resuming from suspend.
582
command: meminfo_resource | diff $PLAINBOX_SESSION_SHARE/meminfo_before_suspend -
585
category_id: 2013.com.canonical.plainbox::suspend
586
id: suspend/display_after_suspend
587
estimated_duration: 120.0
588
depends: suspend/suspend_advanced
591
This test will check that the display is correct after suspend and resume
593
1. Check that your display does not show up visual artifacts after resuming.
595
Does the display work normally after resuming from suspend?
598
template-resource: graphics_card
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}
606
This test will check that the display is correct after suspend and resume on the {vendor} {product} graphics card.
608
1. Check that your display does not show up visual artifacts after resuming.
610
Does the display work normally after resuming from suspend using the {vendor} {product} graphics card?
613
category_id: 2013.com.canonical.plainbox::suspend
614
id: suspend/wireless_after_suspend
615
depends: suspend/suspend_advanced suspend/wireless_before_suspend
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
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.
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
631
device.category == 'WIRELESS'
632
environment.ROUTERS == 'multiple'
634
environ: WPA_BG_SSID WPA_BG_PSK
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
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
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.
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
662
device.category == 'WIRELESS'
663
environment.ROUTERS == 'multiple'
665
environ: OPEN_BG_SSID
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
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
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.
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
693
device.category == 'WIRELESS'
694
environment.ROUTERS == 'multiple'
696
environ: WPA_N_SSID WPA_N_PSK
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
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
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.
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
724
device.category == 'WIRELESS'
725
environment.ROUTERS == 'multiple'
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
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
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.
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
755
device.category == 'WIRELESS'
756
environment.ROUTERS == 'multiple'
757
IEEE_80211.ac == 'supported'
759
environ: WPA_AC_SSID WPA_AC_PSK
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
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
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.
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
787
device.category == 'WIRELESS'
788
environment.ROUTERS == 'multiple'
789
IEEE_80211.ac == 'supported'
791
environ: OPEN_AC_SSID
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
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
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.
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
819
device.category == 'WIRELESS'
820
environment.ROUTERS == 'multiple'
822
environ: WPA_BG_SSID WPA_BG_PSK
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
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
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.
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
850
device.category == 'WIRELESS'
851
environment.ROUTERS == 'multiple'
853
environ: OPEN_BG_SSID
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
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
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.
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
881
device.category == 'WIRELESS'
882
environment.ROUTERS == 'multiple'
884
environ: WPA_N_SSID WPA_N_PSK
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
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
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.
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
912
device.category == 'WIRELESS'
913
environment.ROUTERS == 'multiple'
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
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
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.
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
943
device.category == 'WIRELESS'
944
environment.ROUTERS == 'multiple'
945
IEEE_80211.ac == 'supported'
947
environ: WPA_AC_SSID WPA_AC_PSK
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
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
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.
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
975
device.category == 'WIRELESS'
976
environment.ROUTERS == 'multiple'
977
IEEE_80211.ac == 'supported'
979
environ: OPEN_AC_SSID
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
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
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.
1002
template-resource: device
1003
template-filter: device.category == 'NETWORK'
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
1010
package.name == 'iperf'
1012
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
1013
command: network -i {interface} -t iperf
1015
This test executes iperf connection performance/stability against device {__index__} ({interface}) after suspend.
1018
template-resource: device
1019
template-filter: device.category == 'WIRELESS'
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
1026
package.name == 'iperf'
1028
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
1029
command: network -i {interface} -t iperf
1031
This test executes iperf connection performance/stability against device {__index__} ({interface}) after suspend.
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
1039
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
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
1045
This test executes iperf connection performance/stability against the broadband device found on the system after suspend.
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
1053
environ: TEST_TARGET_FTP TEST_TARGET_IPERF TEST_USER TEST_PASS
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
1059
This test executes iperf connection performance/stability against the broadband device found on the system after suspend.
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
1067
device.category == 'WIRELESS'
1068
environment.ROUTERS == 'single'
1070
environ: ROUTER_SSID ROUTER_PSK
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
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
1090
Tests that the systems wireless hardware can connect to a router using WPA
1091
security and the 802.11b/g protocols.
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
1099
Verification is automated, do not change the automatically selected result.
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
1107
device.category == 'WIRELESS'
1108
environment.ROUTERS == 'single'
1110
environ: ROUTER_SSID
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
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
1130
Tests that the systems wireless hardware can connect to a router using
1131
no security and the 802.11b/g protocols.
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
1139
Verification is automated, do not change the automatically selected result.
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
1147
device.category == 'WIRELESS'
1148
environment.ROUTERS == 'single'
1150
environ: ROUTER_SSID ROUTER_PSK
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
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
1170
Tests that the systems wireless hardware can connect to a router using WPA
1171
security and the 802.11n protocols.
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
1179
Verification is automated, do not change the automatically selected result.
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
1187
device.category == 'WIRELESS'
1188
environment.ROUTERS == 'single'
1190
environ: ROUTER_SSID
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
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
1210
Tests that the systems wireless hardware can connect to a router using
1211
no security and the 802.11n protocol.
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
1219
Verification is automated, do not change the automatically selected result.
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
1227
device.category == 'WIRELESS'
1228
environment.ROUTERS == 'single'
1230
environ: ROUTER_SSID ROUTER_PSK
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
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
1250
Tests that the systems wireless hardware can connect to a router using WPA
1251
security and the 802.11ac protocol.
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
1259
Verification is automated, do not change the automatically selected result.
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
1267
device.category == 'WIRELESS'
1268
environment.ROUTERS == 'single'
1270
environ: ROUTER_SSID
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
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
1290
Tests that the systems wireless hardware can connect to a router using
1291
no security and the 802.11ac protocol.
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
1299
Verification is automated, do not change the automatically selected result.
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
1307
package.name == 'bluez'
1308
device.category == 'BLUETOOTH'
1310
if rfkill list bluetooth | grep -q 'Hard blocked: yes'; then
1311
echo "rfkill shows BT is hard blocked"
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
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"
1325
This test grabs the hardware address of the bluetooth adapter after suspend and compares it to the address grabbed before suspend.
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
1333
package.name == 'bluez'
1334
package.name == 'obexftp'
1335
device.category == 'BLUETOOTH'
1337
if [ -z "$BTDEVADDR" ]
1339
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1342
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1344
echo "rfkill list shows BT is hard blocked"
1346
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1348
echo "rfkill list shows BT is soft blocked, removing before testing"
1349
rfkill unblock bluetooth
1352
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR send 2>&1 | ansi_parser
1354
This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
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
1362
package.name == 'bluez'
1363
package.name == 'obexftp'
1364
device.category == 'BLUETOOTH'
1366
if [ -z "$BTDEVADDR" ]
1368
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1371
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1373
echo "rfkill list shows BT is hard blocked"
1375
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1377
echo "rfkill list shows BT is soft blocked, removing before testing"
1378
rfkill unblock bluetooth
1381
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR send 2>&1 | ansi_parser
1383
This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
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
1391
package.name == 'bluez'
1392
package.name == 'obexftp'
1393
device.category == 'BLUETOOTH'
1395
if [ -z "$BTDEVADDR" ]
1397
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1400
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1402
echo "rfkill list shows BT is hard blocked"
1404
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1406
echo "rfkill list shows BT is soft blocked, removing before testing"
1407
rfkill unblock bluetooth
1410
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR browse 2>&1 | ansi_parser
1412
This is an automated Bluetooth test. It emulates browsing on a remote device specified by the BTDEVADDR environment variable.
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
1420
package.name == 'bluez'
1421
package.name == 'obexftp'
1422
device.category == 'BLUETOOTH'
1424
if [ -z "$BTDEVADDR" ]
1426
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1429
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1431
echo "rfkill list shows BT is hard blocked"
1433
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1435
echo "rfkill list shows BT is soft blocked, removing before testing"
1436
rfkill unblock bluetooth
1439
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR browse 2>&1 | ansi_parser
1441
This is an automated Bluetooth test. It emulates browsing on a remote device specified by the BTDEVADDR environment variable.
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
1449
package.name == 'bluez'
1450
package.name == 'obexftp'
1451
device.category == 'BLUETOOTH'
1453
if [ -z "$BTDEVADDR" ]
1455
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1458
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1460
echo "rfkill list shows BT is hard blocked"
1462
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1464
echo "rfkill list shows BT is soft blocked, removing before testing"
1465
rfkill unblock bluetooth
1468
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR get 2>&1 | ansi_parser
1470
This is an automated Bluetooth test. It receives the given file from a remote host specified by the BTDEVADDR environment variable
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
1478
package.name == 'bluez'
1479
package.name == 'obexftp'
1480
device.category == 'BLUETOOTH'
1482
if [ -z "$BTDEVADDR" ]
1484
echo "btdevaddr option not set to device address of Bluetooth target in checkbox.ini"
1487
if rfkill list bluetooth | grep -q 'Hard blocked: yes'
1489
echo "rfkill list shows BT is hard blocked"
1491
if rfkill list bluetooth | grep -q 'Soft blocked: yes'
1493
echo "rfkill list shows BT is soft blocked, removing before testing"
1494
rfkill unblock bluetooth
1497
set -o pipefail; bluetooth_test $PLAINBOX_PROVIDER_DATA/images/JPEG_Color_Image_Ubuntu.jpg $BTDEVADDR get 2>&1 | ansi_parser
1499
This is an automated Bluetooth test. It receives the given file from a remote host specified by the BTDEVADDR environment variable
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
1510
This test will cycle through the detected display modes
1512
1. Click "Test" and the display will cycle trough the display modes
1514
Did your display look fine in the detected mode?
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
1527
This test will cycle through the detected display modes
1529
1. Click "Test" and the display will cycle trough the display modes
1531
Did your display look fine in the detected mode?
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
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
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.
1552
template-resource: graphics_card
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.
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
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'
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.
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
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'
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.
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
1599
Attaches the log from the single suspend/resume test to the results
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
1610
Take a screengrab of the current screen after suspend (logged on Unity desktop)
1612
1. Take picture using USB webcam
1614
Review attachment manually later
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.
1624
category_id: 2013.com.canonical.plainbox::suspend
1625
id: suspend/gpu_lockup_after_suspend
1626
estimated_duration: 10.0
1628
package.name == 'wmctrl'
1629
package.name == 'mesa-utils'
1630
package.name == 'firefox'
1631
depends: suspend/suspend_advanced_auto
1635
Do some challenging operations then check for lockup on the GPU
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
1641
After a 60s workload, check kern.log for reported GPU errors
1644
category_id: 2013.com.canonical.plainbox::suspend
1645
id: suspend/wifi_resume_time
1646
depends: suspend/suspend_advanced
1648
device.category == 'WIRELESS'
1649
command: network_reconnect_resume_test -t 90 -d wifi
1650
estimated_duration: 0.530
1652
Checks the length of time it takes to reconnect an existing wifi connection
1653
after a suspend/resume cycle.
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
1661
device.category == 'WIRELESS'
1662
command: network_reconnect_resume_test -t 90 -d wifi
1664
Checks the length of time it takes to reconnect an existing wifi connection
1665
after a suspend/resume cycle.
1668
category_id: 2013.com.canonical.plainbox::suspend
1669
id: suspend/network_resume_time
1670
depends: suspend/suspend_advanced
1671
estimated_duration: 1.2
1673
device.category == 'NETWORK'
1674
command: network_reconnect_resume_test -t 10 -d wired
1676
Checks the length of time it takes to reconnect an existing wired connection
1677
after a suspend/resume cycle.
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
1685
device.category == 'NETWORK'
1686
command: network_reconnect_resume_test -t 10 -d wired
1688
Checks the length of time it takes to reconnect an existing wired connection
1689
after a suspend/resume cycle.
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
1698
Validate that the power LED operated the same after resuming from suspend
1700
1. Power LED should be on while device is switched on
1702
Does the power LED remain on after resuming from suspend?
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
1711
Validate that the battery light shows charging status after resuming from suspend
1713
1. Let system run on battery for a while
1716
Did the battery indicator LED still turn orange after resuming from suspend?
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
1725
Validate that the battery LED properly displays charged status after resuming from suspend
1727
1. Let system run on battery for a short time
1729
3. Let system run on AC
1731
Does the orange battery LED still shut off when system is fully charged after resuming from suspend?
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
1740
Validate that the battery LED indicated low power after resuming from suspend
1742
1. Let system run on battery for several hours
1743
2. Monitor battery LED carefully
1745
Does the LED light orange when battery is low after resuming from suspend?
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
1755
Validate that the HDD LED still operates as expected after resuming from suspend
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
1760
Did the HDD LED still blink with HDD activity after resuming from suspend?
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
1770
Validate that the numeric keypad LED operates the same before and after resuming from suspend
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
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
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
1786
Validate that the Caps Lock key operates the same before and after resuming from suspend
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
1791
Did the Cap Keys LED light as expected after resuming from suspend?
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
1800
WLAN LED verification after resuming from suspend
1802
1. Make sure WLAN connection is established
1803
2. WLAN LED should light
1805
Did the WLAN LED light as expected after resuming from suspend?
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
1814
Validate that WLAN LED shuts off when disabled after resuming from suspend
1817
2. Use Physical switch to disable WLAN
1819
4. Use Network-Manager to disable WLAN
1821
Did the LED turn off then WLAN is disabled after resuming from suspend?
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
1830
Validate that the Bluetooth LED turns on and off when BT is enabled/disabled after resuming from suspend
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
1837
Did the bluetooth LED turn off and on twice after resuming from suspend?
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
1845
suspend/suspend_advanced
1846
command: camera_test led
1849
Validate that the camera LED still works as expected after resuming from suspend
1851
1. Select Test to activate camera
1852
2. Camera LED should light for a few seconds
1854
Did the camera LED still turn on and off after resuming from suspend?
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
1863
Touchpad LED verification after resuming from suspend
1865
1. Click on the touchpad button or press key combination to enable/disable touchpad button
1866
2. Slide your finger on the touchpad
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
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
1879
Validate Wireless (WLAN + Bluetooth) LED operated the same after resuming from suspend
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
1888
Did the WLAN/Bluetooth LED light as expected after resuming from suspend?
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']
1898
This test will test the brightness key after resuming from suspend
1900
1. Press the brightness buttons on the keyboard
1902
Did the brightness change following to your key presses after resuming from suspend?
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
1910
device.category == 'KEYBOARD'
1912
command: key_test -s '0xe02e,0xe0ae:Volume Up' '0xe030,0xe0b0:Volume Down'
1915
This test will test the volume keys of your keyboard after resuming from suspend
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.
1921
Did the volume change following to your key presses?
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
1929
device.category == 'KEYBOARD'
1931
command: key_test -s '0xe020,0xe0a0:Mute'
1934
This test will test the mute key of your keyboard after resuming from suspend
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.
1939
Did the volume mute following your key presses?
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
1947
device.category == 'KEYBOARD'
1950
This test will test the sleep key after resuming from suspend
1952
1. Press the sleep key on the keyboard
1953
2. Wake your system up by pressing the power button
1955
Did the system go to sleep after pressing the sleep key after resuming from suspend?
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']
1964
command: key_test -s '0xe071,0xef1:Battery Info'
1967
This test will test the battery information key after resuming from suspend
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
1974
Did the Battery Info key work as expected after resuming from suspend?
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']
1984
This test will test the wireless key after resuming from suspend
1986
1. Press the wireless key on the keyboard
1987
2. Press the same key again
1989
Did the wireless go off on the first press and on again on the second after resuming from suspend?
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
1997
device.category == 'KEYBOARD'
1999
command: key_test -s 0xe010,0xe090:Previous 0xe024,0xe0a4:Stop 0xe019,0xe099:Next 0xe022,0xe0a2:Play
2002
This test will test the media keys of your keyboard after resuming from suspend
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.
2008
Do the keys work as expected after resuming from suspend?
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
2016
device.category == 'KEYBOARD'
2018
command: key_test -s '0xe05b,0xe0db:Left Super Key'
2021
This test will test the super key of your keyboard after resuming from suspend
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.
2026
Does the super key work as expected after resuming from suspend?
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']
2036
Validate that the External Video hot key is working as expected after resuming from suspend
2038
1. Plug in an external monitor
2039
2. Press the display hot key to change the monitors configuration
2041
Check that the video signal can be mirrored, extended, displayed on external or onboard only, after resuming from suspend.
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']
2051
Verify touchpad hotkey toggles touchpad functionality on and off after resuming from suspend
2053
1. Verify the touchpad is functional
2054
2. Tap the touchpad toggle hotkey
2055
3. Tap the touchpad toggle hotkey again
2057
Verify the touchpad has been disabled and re-enabled.
2059
plugin: user-interact
2060
category_id: 2013.com.canonical.plainbox::suspend
2061
id: suspend/usb_insert_after_suspend
2062
estimated_duration: 30.0
2064
suspend/suspend_advanced
2065
command: removable_storage_watcher insert usb
2068
This test will check that the system correctly detects the insertion of
2069
a USB storage device after suspend and resume.
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.
2075
The verification of this test is automated. Do not change the
2076
automatically selected result.
2078
plugin: user-interact
2079
category_id: 2013.com.canonical.plainbox::suspend
2080
id: suspend/usb3_insert_after_suspend
2081
estimated_duration: 30.0
2083
usb.usb3 == 'supported'
2085
suspend/suspend_advanced
2086
command: removable_storage_watcher -m 500000000 insert usb
2089
This test will check that the system correctly detects the insertion of
2090
a USB 3.0 storage device after suspend and resume.
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.
2096
The verification of this test is automated. Do not change the
2097
automatically selected result.
2099
plugin: user-interact
2100
category_id: 2013.com.canonical.plainbox::suspend
2101
id: suspend/usb_remove_after_suspend
2102
estimated_duration: 30.0
2104
suspend/usb_insert_after_suspend
2105
command: removable_storage_watcher remove usb
2108
This test will check that the system correctly detects the removal of
2109
a USB storage device after suspend.
2111
1. Click "Test" and remove the USB device.
2112
(Note: this test will time-out after 20 seconds.)
2114
The verification of this test is automated. Do not change the
2115
automatically selected result.
2117
plugin: user-interact
2118
category_id: 2013.com.canonical.plainbox::suspend
2119
id: suspend/usb3_remove_after_suspend
2120
estimated_duration: 30.0
2122
suspend/usb3_insert_after_suspend
2124
usb.usb3 == 'supported'
2125
command: removable_storage_watcher -m 500000000 remove usb
2128
This test will check that the system correctly detects the removal of
2129
a USB 3.0 storage device after suspend
2131
1. Click "Test" and remove the USB 3.0 device.
2132
(Note: this test will time-out after 20 seconds.)
2134
The verification of this test is automated. Do not change the
2135
automatically selected result.
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
2143
command: removable_storage_test -s 268400000 usb
2145
This test is automated and executes after the suspend/usb_insert_after_suspend
2149
category_id: 2013.com.canonical.plainbox::suspend
2150
id: suspend/usb3_storage_automated_after_suspend
2151
estimated_duration: 1.2
2153
usb.usb3 == 'supported'
2154
depends: suspend/usb3_insert_after_suspend
2156
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
2158
This test is automated and executes after the suspend/usb3_insert_after_suspend
2162
category_id: 2013.com.canonical.plainbox::suspend
2163
id: suspend/usb_storage_preinserted_after_suspend
2164
estimated_duration: 1.2
2166
depends: suspend/suspend_advanced_auto
2167
command: removable_storage_test -l usb && removable_storage_test -s 268400000 usb
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.
2174
category_id: 2013.com.canonical.plainbox::suspend
2175
id: suspend/usb3_storage_preinserted_after_suspend
2176
estimated_duration: 1.2
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
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.
2188
category_id: 2013.com.canonical.plainbox::suspend
2189
id: suspend/usb_performance_after_suspend
2190
depends: suspend/usb_insert_after_suspend
2192
estimated_duration: 45.00
2193
command: removable_storage_test -s 268400000 -p 15 usb
2195
This test will check that your USB 2.0 port transfers data at a
2196
minimum expected speed.
2199
category_id: 2013.com.canonical.plainbox::suspend
2200
id: suspend/usb3_superspeed_performance_after_suspend
2202
usb.usb3 == 'supported'
2203
depends: suspend/usb3_insert_after_suspend
2205
estimated_duration: 45.00
2206
command: removable_storage_test -s 268400000 -m 500000000 usb --driver xhci_hcd
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.
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
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
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.
2227
The verification of this test is automated. Do not change the
2228
automatically selected result.
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
2236
command: removable_storage_test -s 67120000 --memorycard sdio usb scsi
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.
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
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.
2252
1. Click "Test" and remove the MMC card from the reader.
2253
(Note: this test will time-out after 20 seconds.)
2255
The verification of this test is automated. Do not change the
2256
automatically selected result.
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
2266
This test will check that the systems media card reader can
2267
detect the insertion of an UNLOCKED SD card after the system
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.
2275
The verification of this test is automated. Do not change the
2276
automatically selected result.
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
2284
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2301
1. Click "Test" and remove the SD card from the reader.
2302
(Note: this test will time-out after 20 seconds.)
2304
The verification of this test is automated. Do not change the
2305
automatically selected result.
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
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
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.
2324
The verification of this test is automated. Do not change the
2325
automatically selected result.
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
2333
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2349
1. Click "Test" and remove the SDHC card from the reader.
2350
(Note: this test will time-out after 20 seconds.)
2352
The verification of this test is automated. Do not change the
2353
automatically selected result.
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
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
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.
2371
The verification of this test is automated. Do not change the
2372
automatically selected result.
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
2380
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2396
1. Click "Test" and remove the CF card from the reader.
2397
(Note: this test will time-out after 20 seconds.)
2399
The verification of this test is automated. Do not change the
2400
automatically selected result.
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
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
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.
2418
The verification of this test is automated. Do not change the
2419
automatically selected result.
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
2427
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2443
1. Click "Test" and remove the SDXC card from the reader.
2444
(Note: this test will time-out after 20 seconds.)
2446
The verification of this test is automated. Do not change the
2447
automatically selected result.
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
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
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.
2465
The verification of this test is automated. Do not change the
2466
automatically selected result.
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
2474
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2490
1. Click "Test" and remove the MS card from the reader.
2491
(Note: this test will time-out after 20 seconds.)
2493
The verification of this test is automated. Do not change the
2494
automatically selected result.
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
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
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.
2512
The verification of this test is automated. Do not change the
2513
automatically selected result.
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
2521
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2537
1. Click "Test" and remove the MSP card from the reader.
2538
(Note: this test will time-out after 20 seconds.)
2540
The verification of this test is automated. Do not change the
2541
automatically selected result.
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
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
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.
2559
The verification of this test is automated. Do not change the
2560
automatically selected result.
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
2568
command: removable_storage_test -s 268400000 --memorycard sdio usb scsi
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.
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
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.
2584
1. Click "Test" and remove the xD card from the reader.
2585
(Note: this test will time-out after 20 seconds.)
2587
The verification of this test is automated. Do not change the
2588
automatically selected result.
2591
category_id: 2013.com.canonical.plainbox::suspend
2592
id: touchpad/touchpad_after_suspend
2593
depends: suspend/suspend_advanced_auto
2595
dmi.product in ['Notebook','Laptop','Portable']
2596
xinput.device_class == 'XITouchClass' and xinput.touch_mode != 'dependent'
2598
estimated_duration: 1.2
2600
Determine if the touchpad is still functioning after suspend/resume.
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
2611
Check touchscreen tap recognition
2613
1. Tap an object on the screen with finger. The cursor should jump to location tapped and object should highlight
2615
Does tap recognition work?
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
2623
device.category == 'CAPTURE'
2624
command: camera_test display
2627
This test will check that the built-in camera works after suspend
2629
1. Click on Test to display a video capture from the camera for ten seconds.
2631
Did you see the video capture?
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
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
2646
This test will check that the built-in camera works after suspend
2648
1. Click on Test to display a still image from the camera for ten seconds.
2650
Did you see the image?
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
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
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
2666
template-resource: device
2667
template-filter: device.category == 'MOUSE' or device.category == 'TOUCHPAD' or device.category == 'TOUCHSCREEN'
2669
category_id: 2013.com.canonical.plainbox::suspend
2670
id: suspend/pointing-after-suspend_{product_slug}_{category}_{__index__}
2671
depends: suspend/suspend_advanced
2674
This will test your {product} device after suspend.
2676
1. Move the cursor with your {product}.
2678
Did the cursor move?
2681
template-resource: device
2682
template-filter: device.category == 'MOUSE' or device.category == 'TOUCHPAD'
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}
2691
This will test the buttons of your {product} device after suspend
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}.
2698
Did these buttons work as expected?
2701
template-resource: graphics_card
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
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
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
2733
This test tests the basic 3D capabilities of your {vendor} {product} video card after suspend
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.
2738
1. Did the 3d animation appear?
2739
2. Was the animation free from slowness/jerkiness?
2741
plugin: user-interact-verify
2742
category_id: 2013.com.canonical.plainbox::suspend
2743
id: suspend/glxgears_after_suspend
2744
depends: suspend/suspend_advanced
2746
package.name == 'mesa-utils'
2747
device.category == 'VIDEO'
2748
command: glxgears; true
2749
_summary: Test that glxgears works after suspend
2752
This test tests the basic 3D capabilities of your video card after suspend
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.
2757
1. Did the 3d animation appear?
2758
2. Was the animation free from slowness/jerkiness?
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
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}
2773
This test will test the default display after suspend with a sample video
2775
1. Click "Test" to display a video test.
2777
Do you see color bars and static?
2779
id: suspend/video_after_suspend
2780
plugin: user-interact-verify
2781
category_id: 2013.com.canonical.plainbox::suspend
2782
depends: suspend/suspend_advanced
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
2791
This test will test the default display after suspend with a sample video
2793
1. Click "Test" to display a video test.
2795
Do you see color bars and static?
2798
template-resource: graphics_card
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}
2808
id: suspend/driver_version_after_suspend
2809
requires: device.category == 'VIDEO'
2810
depends: suspend/suspend_advanced
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
2818
id: suspend/oops_after_suspend
2819
depends: suspend/suspend_advanced
2821
estimated_duration: 10.0
2823
package.name == 'fwts'
2826
Run Firmware Test Suite (fwts) oops tests after suspend.
2827
environ: PLAINBOX_SESSION_SHARE
2829
fwts_test -l $PLAINBOX_SESSION_SHARE/fwts_oops_results_after_s3.log -t oops
2831
id: suspend/oops_results_after_suspend.log
2833
category_id: 2013.com.canonical.plainbox::suspend
2834
estimated_duration: 0.5
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