4
4
category_id: 2013.com.canonical.plainbox::graphics
5
5
id: graphics/{index}_driver_version_{product_slug}
6
command: graphics_driver
7
source graphics_env {vendor_slug} {index}
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}
105
107
device.category == 'VIDEO'
106
command: resolution_test --horizontal 800 --vertical 600
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
120
124
device.category == 'VIDEO'
121
125
package.name == 'zenity'
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"
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'
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}
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
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}
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
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}
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"
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
281
source graphics_env {vendor_slug} {index}
268
284
_summary: Test that glxgears works for {vendor} {product}
379
395
id: graphics/{index}_switch_card_{product_slug}
380
396
_summary: Test GPU switching for {vendor} {product}
383
Manually switch to the {vendor} {product} card.
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.
399
Manually switch to the {vendor} {product} card.
401
Note: If your system is already running with the {vendor} {product} card, then please mark this test as "passed" and proceed.
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.
407
Is the system using the {vendor} {product} card now?
410
template-resource: graphics_card
412
category_id: 2013.com.canonical.plainbox::graphics
413
id: graphics/{index}_switch_card_{product_slug}_xenial
415
device.driver in ['nouveau', 'nvidia']
416
lsb.codename == 'xenial'
417
_summary: Test GPU switching for {vendor} {product}
420
Manually switch to the {vendor} {product} card.
422
Note: If your system is already running with the {vendor} {product} card, then please mark this test as "passed" and proceed.
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.
390
428
Is the system using the {vendor} {product} card now?