~kissiel/checkbox/migrate-from-make

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-checkbox/jobs/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:
3
3
plugin: shell
4
4
category_id: 2013.com.canonical.plainbox::graphics
5
5
id: graphics/{index}_driver_version_{product_slug}
6
 
command: graphics_driver
 
6
command:
 
7
 source graphics_env {vendor_slug} {index}
 
8
 graphics_driver
7
9
estimated_duration: 0.5
8
10
_description: Parses Xorg.0.Log and discovers the running X driver and version for the {vendor} {product} graphics card
9
11
_summary: Test X driver/version for {vendor} {product}
103
105
id: graphics/{index}_minimum_resolution_{product_slug}
104
106
requires:
105
107
 device.category == 'VIDEO'
106
 
command: resolution_test --horizontal 800 --vertical 600
 
108
command:
 
109
 source graphics_env {vendor_slug} {index}
 
110
 resolution_test --horizontal 800 --vertical 600
107
111
estimated_duration: 0.331
108
112
_summary: Test that {vendor} {product} meets minimum resolution requirement
109
113
_description:
120
124
 device.category == 'VIDEO'
121
125
 package.name == 'zenity'
122
126
command: 
 
127
   source graphics_env {vendor_slug} {index}
123
128
   maxi="$(xrandr -q |grep -A 1 "connected\( primary\)* [0-9]" |tail -1 |awk '{{print $1}}')"
124
129
   now="$(python3 -c 'from gi.repository import Gdk; screen=Gdk.Screen.get_default(); geo = screen.get_monitor_geometry(screen.get_primary_monitor()); print(geo.width, "x", geo.height, sep="")')"
125
130
   test "$maxi" != "$now" && notify="\nPlease switch to the maximum resolution \nfor every graphic tests"
182
187
requires:
183
188
 package.name == 'xorg'
184
189
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
185
 
command: gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink'
 
190
command:
 
191
 source graphics_env {vendor_slug} {index}
 
192
 gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink'
186
193
_summary: Test that video can be displayed with {vendor} {product}
187
194
_description:
188
195
 PURPOSE:
207
214
id: graphics/{index}_cycle_resolution_{product_slug}
208
215
requires: package.name == 'xorg'
209
216
depends: graphics/VESA_drivers_not_in_use
210
 
command: xrandr_cycle --screenshot-dir $PLAINBOX_SESSION_SHARE
 
217
command:
 
218
 source graphics_env {vendor_slug} {index}
 
219
 xrandr_cycle --screenshot-dir $PLAINBOX_SESSION_SHARE
211
220
estimated_duration: 250.000
212
221
_summary: Test resolution cycling for {vendor} {product}
213
222
_description:
224
233
category_id: 2013.com.canonical.plainbox::graphics
225
234
id: graphics/{index}_rotation_{product_slug}
226
235
depends: graphics/xorg-version
227
 
command: rotation_test_using_dbus
 
236
command:
 
237
 source graphics_env {vendor_slug} {index}
 
238
 rotation_test_using_dbus
228
239
estimated_duration: 20.000
229
240
_summary: Test rotation for {vendor} {product}
230
241
_description:
242
253
category_id: 2013.com.canonical.plainbox::graphics
243
254
id: graphics/{index}_compiz_check_{product_slug}
244
255
requires: package.name == 'nux-tools'
245
 
command: ! /usr/lib/nux/unity_support_test -c -p 2>&1 | ansi_parser | grep -e ":\(\s\+\)no$" -ie "error"
 
256
command:
 
257
 source graphics_env {vendor_slug} {index}
 
258
 ! /usr/lib/nux/unity_support_test -c -p 2>&1 | ansi_parser | grep -e ":\(\s\+\)no$" -ie "error"
246
259
estimated_duration: 0.130
247
260
_description: Check that {vendor} {product} hardware is able to run compiz
248
261
_summary: Test Compiz support for {vendor} {product}
264
277
category_id: 2013.com.canonical.plainbox::graphics
265
278
id: graphics/{index}_glxgears_{product_slug}
266
279
requires: package.name == 'mesa-utils'
267
 
command: glxgears; true
 
280
command:
 
281
 source graphics_env {vendor_slug} {index}
 
282
 glxgears
 
283
 true
268
284
_summary: Test that glxgears works for {vendor} {product}
269
285
_description:
270
286
 PURPOSE:
379
395
id: graphics/{index}_switch_card_{product_slug}
380
396
_summary: Test GPU switching for {vendor} {product}
381
397
_description:
382
 
 PURPOSE:
383
 
     Manually switch to the {vendor} {product} card.
384
 
 STEPS:
385
 
     1. If your system is already running with the {vendor} {product} card, then please mark this test as "passed" and proceed.
386
 
     2. Using the appropriate tool (either NVidia settings or AMD Control Center), switch your system to use the {vendor} {product} graphics card. This will require restarting your session.
387
 
     3. Once the session restarts, please restart this testing program and select "continue" when prompted for a resume action.
388
 
     4. Don't answer the verification question until the system has restarted with the {vendor} {product} card enabled.
389
 
 VERIFICATION:
 
398
_purpose:
 
399
     Manually switch to the {vendor} {product} card.
 
400
_steps:
 
401
     Note: If your system is already running with the {vendor} {product} card, then please mark this test as "passed" and proceed.
 
402
     .
 
403
     1. Using the appropriate tool (either NVidia settings or AMD Control Center), switch your system to use the {vendor} {product} graphics card. This will require restarting your session.
 
404
     2. Once the session restarts, please restart this testing program and select "continue" when prompted for a resume action.
 
405
     3. Don't answer the verification question until the system has restarted with the {vendor} {product} card enabled.
 
406
_verification:
 
407
     Is the system using the {vendor} {product} card now?
 
408
 
 
409
unit: template
 
410
template-resource: graphics_card
 
411
plugin: manual
 
412
category_id: 2013.com.canonical.plainbox::graphics
 
413
id: graphics/{index}_switch_card_{product_slug}_xenial
 
414
requires:
 
415
 device.driver in ['nouveau', 'nvidia']
 
416
 lsb.codename == 'xenial'
 
417
_summary: Test GPU switching for {vendor} {product}
 
418
_description:
 
419
_purpose:
 
420
     Manually switch to the {vendor} {product} card.
 
421
_steps:
 
422
     Note: If your system is already running with the {vendor} {product} card, then please mark this test as "passed" and proceed.
 
423
     .
 
424
     1. Using the appropriate tool (e.g. NVidia settings), switch your system to use the {vendor} {product} graphics card. This will require restarting your session.
 
425
     2. Once the session restarts, please restart this testing program and select "continue" when prompted for a resume action.
 
426
     3. Don't answer the verification question until the system has restarted with the {vendor} {product} card enabled.
 
427
_verification:
390
428
     Is the system using the {vendor} {product} card now?
391
429
 
392
430
unit: template