2
template-resource: graphics_card
4
category_id: 2013.com.canonical.plainbox::suspend
5
id: suspend/{index}_resolution_before_suspend_{product_slug}_xenial
6
after: graphics/{index}_switch_card_{product_slug}_xenial
7
estimated_duration: 1.2
8
_description: Record the current resolution before suspending.
10
source graphics_env {vendor_slug} {index}
11
xrandr -q |grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt
14
template-resource: graphics_card
15
plugin: user-interact-verify
16
category_id: 2013.com.canonical.plainbox::suspend
17
id: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
19
sleep.mem == 'supported'
20
rtc.state == 'supported'
21
after: graphics/{index}_switch_card_{product_slug}_xenial
23
environ: PLAINBOX_SESSION_SHARE
25
if type -P fwts >/dev/null; then
27
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
29
echo "Calling sleep_test"
30
set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
32
estimated_duration: 90.0
33
_summary: Test suspend/resume after switching to {vendor} {product}
36
This test will check suspend and resume after switching to {vendor} {product} graphics card.
38
1. Ensure you have switched to {vendor} {product} graphics card.
39
2. Click "Test" and your system will suspend for about 30 - 60 seconds
40
3. Observe the Power LED to see if it blinks or changes color during suspend
41
4. If your system does not wake itself up after 60 seconds, please press the power button momentarily to wake the system manually
42
5. If your system fails to wake at all and must be rebooted, restart System Testing after reboot and mark this test as Failed
44
Did your system suspend and resume correctly after switching to {vendor} {product} graphics card?
45
(NOTE: Please only consider whether the system successfully suspended and resumed. Power/Suspend LED verification will occur after this test is completed.)
48
template-resource: graphics_card
50
category_id: 2013.com.canonical.plainbox::suspend
51
id: suspend/{index}_resolution_after_suspend_{product_slug}_xenial
52
estimated_duration: 1.2
53
depends: suspend/{index}_resolution_before_suspend_{product_slug}_xenial
54
_description: Test to see that we have the same resolution after resuming as before.
56
source graphics_env {vendor_slug} {index}
57
xrandr -q |grep '*'| awk '{{print $1}}' | diff $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt -
60
template-resource: graphics_card
62
category_id: 2013.com.canonical.plainbox::suspend
63
id: suspend/{index}_display_after_suspend_{product_slug}_xenial
64
after: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
65
_summary: Test display function after suspend for {vendor} {product}
68
This test will check that the display is correct after suspend and resume on the {vendor} {product} graphics card.
70
1. Check that your display does not show up visual artifacts after resuming.
72
Does the display work normally after resuming from suspend using the {vendor} {product} graphics card?
75
template-resource: graphics_card
76
plugin: user-interact-verify
77
category_id: 2013.com.canonical.plainbox::suspend
78
id: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}_xenial
79
requires: package.name == 'xorg'
80
after: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
81
estimated_duration: 120.0
83
source graphics_env {vendor_slug} {index}
84
xrandr_cycle --keyword={index}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE
87
This test will cycle through the detected display modes
89
1. Click "Test" and the display will cycle trough the display modes
91
Did your display look fine in the detected mode?
94
template-resource: graphics_card
96
category_id: 2013.com.canonical.plainbox::suspend
97
id: suspend/{index}_xrandr_screens_after_suspend.tar.gz_xenial
98
depends: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}_xenial
99
command: [ -f $PLAINBOX_SESSION_SHARE/{index}_xrandr_screens_after_suspend.tgz ] && base64 $PLAINBOX_SESSION_SHARE/{index}_xrandr_screens_after_suspend.tgz
100
_description: This attaches screenshots from the suspend/cycle_resolutions_after_suspend test to the results submission.
103
template-resource: graphics_card
105
category_id: 2013.com.canonical.plainbox::suspend
106
id: suspend/{index}_compiz_check_after_suspend_{product_slug}_xenial
107
after: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
108
requires: package.name == 'nux-tools'
110
source graphics_env {vendor_slug} {index}
111
! /usr/lib/nux/unity_support_test -c -p 2>&1 | ansi_parser | grep -e ":\(\s\+\)no$" -ie "error"
112
estimated_duration: 0.130
113
_description: Check that {product} hardware is able to run compiz after suspend
114
_summary: Test Compiz support for {product} after suspend
117
template-resource: graphics_card
118
plugin: user-interact-verify
119
category_id: 2013.com.canonical.plainbox::suspend
120
id: suspend/{index}_glxgears_after_suspend_{product_slug}_xenial
121
after: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
122
requires: package.name == 'mesa-utils'
124
source graphics_env {vendor_slug} {index}
127
_summary: Test that glxgears works for {vendor} {product} after suspend
130
This test tests the basic 3D capabilities of your {vendor} {product} video card after suspend
132
1. Click "Test" to execute an OpenGL demo. Press ESC at any time to close.
133
2. Verify that the animation is not jerky or slow.
135
1. Did the 3d animation appear?
136
2. Was the animation free from slowness/jerkiness?
139
template-resource: graphics_card
140
id: suspend/{index}_video_after_suspend_{product_slug}_xenial
141
after: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
142
plugin: user-interact-verify
143
category_id: 2013.com.canonical.plainbox::suspend
145
package.name == 'xorg'
146
package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
148
source graphics_env {vendor_slug} {index}
149
gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink'
150
_summary: Test that video can be displayed after suspend with {vendor} {product}
153
This test will test the default display after suspend with a sample video
155
1. Click "Test" to display a video test.
157
Do you see color bars and static?
160
template-resource: graphics_card
162
category_id: 2013.com.canonical.plainbox::suspend
163
id: suspend/{index}_driver_version_after_suspend_{product_slug}_xenial
164
after: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
166
source graphics_env {vendor_slug} {index}
168
estimated_duration: 0.500
169
_description: Parses Xorg.0.Log and discovers the running X driver and version after suspend for the {vendor} {product} graphics card
170
_summary: Test X driver/version after suspend for {vendor} {product}
173
template-resource: graphics_card
175
category_id: 2013.com.canonical.plainbox::suspend
176
id: suspend/{index}_suspend-single-log-attach_{product_slug}_xenial
177
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
178
command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single.log ] && cat $PLAINBOX_SESSION_SHARE/{index}_suspend_single.log
180
Attaches the log from the single suspend/resume test to the results
183
template-resource: graphics_card
185
category_id: 2013.com.canonical.plainbox::suspend
186
id: suspend/{index}_suspend-time-check_{product_slug}_xenial
187
depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial
188
estimated_duration: 1.2
189
command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
190
_description: Checks the sleep times to ensure that a machine suspends and resumes within a given threshold