~kissiel/checkbox/migrate-from-make

« back to all changes in this revision

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

"automatic merge of lp:~pierre-equoy/checkbox/AMD-hybrid-graphics-xenial/ by tarmac [r=sylvain-pineau][bug=][author=pierre-equoy]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
unit: template
 
2
template-resource: graphics_card
 
3
plugin: shell
 
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.
 
9
command:
 
10
 source graphics_env {vendor_slug} {index}
 
11
 xrandr -q |grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt
 
12
 
 
13
unit: template
 
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
 
18
requires:
 
19
 sleep.mem == 'supported'
 
20
 rtc.state == 'supported'
 
21
after: graphics/{index}_switch_card_{product_slug}_xenial
 
22
user: root
 
23
environ: PLAINBOX_SESSION_SHARE
 
24
command:
 
25
 if type -P fwts >/dev/null; then
 
26
  echo "Calling fwts"
 
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
 
28
 else
 
29
  echo "Calling sleep_test"
 
30
  set -o pipefail; sleep_test -p | tee $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log
 
31
 fi
 
32
estimated_duration: 90.0
 
33
_summary: Test suspend/resume after switching to {vendor} {product}
 
34
_description:
 
35
 PURPOSE:
 
36
     This test will check suspend and resume after switching to {vendor} {product} graphics card.
 
37
 STEPS:
 
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
 
43
 VERIFICATION:
 
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.)
 
46
 
 
47
unit: template
 
48
template-resource: graphics_card
 
49
plugin: shell
 
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.
 
55
command:
 
56
 source graphics_env {vendor_slug} {index}
 
57
 xrandr -q |grep '*'| awk '{{print $1}}' | diff $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt -
 
58
 
 
59
unit: template
 
60
template-resource: graphics_card
 
61
plugin: manual
 
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}
 
66
_description:
 
67
 PURPOSE:
 
68
     This test will check that the display is correct after suspend and resume on the {vendor} {product} graphics card.
 
69
 STEPS:
 
70
     1. Check that your display does not show up visual artifacts after resuming.
 
71
 VERIFICATION:
 
72
     Does the display work normally after resuming from suspend using the {vendor} {product} graphics card?
 
73
 
 
74
unit: template
 
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
 
82
command:
 
83
 source graphics_env {vendor_slug} {index}
 
84
 xrandr_cycle --keyword={index}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE
 
85
_description:
 
86
 PURPOSE:
 
87
     This test will cycle through the detected display modes
 
88
 STEPS:
 
89
     1. Click "Test" and the display will cycle trough the display modes
 
90
 VERIFICATION:
 
91
     Did your display look fine in the detected mode?
 
92
 
 
93
unit: template
 
94
template-resource: graphics_card
 
95
plugin: attachment
 
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.
 
101
 
 
102
unit: template
 
103
template-resource: graphics_card
 
104
plugin: shell
 
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'
 
109
command:
 
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
 
115
 
 
116
unit: template
 
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'
 
123
command:
 
124
 source graphics_env {vendor_slug} {index}
 
125
 glxgears
 
126
 true
 
127
_summary: Test that glxgears works for {vendor} {product} after suspend
 
128
_description:
 
129
 PURPOSE:
 
130
     This test tests the basic 3D capabilities of your {vendor} {product} video card after suspend
 
131
 STEPS:
 
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.
 
134
 VERIFICATION:
 
135
     1. Did the 3d animation appear?
 
136
     2. Was the animation free from slowness/jerkiness?
 
137
 
 
138
unit: template
 
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
 
144
requires:
 
145
 package.name == 'xorg'
 
146
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
 
147
command:
 
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}
 
151
_description:
 
152
 PURPOSE:
 
153
     This test will test the default display after suspend with a sample video
 
154
 STEPS:
 
155
     1. Click "Test" to display a video test.
 
156
 VERIFICATION:
 
157
     Do you see color bars and static?
 
158
 
 
159
unit: template
 
160
template-resource: graphics_card
 
161
plugin: shell
 
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
 
165
command:
 
166
 source graphics_env {vendor_slug} {index}
 
167
 graphics_driver
 
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}
 
171
 
 
172
unit: template
 
173
template-resource: graphics_card
 
174
plugin: attachment
 
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
 
179
_description:
 
180
 Attaches the log from the single suspend/resume test to the results
 
181
 
 
182
unit: template
 
183
template-resource: graphics_card
 
184
plugin: shell
 
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
 
191