Skip to content

Commit

Permalink
Add test cases to call the GPU renderer verification script (New) (#1550
Browse files Browse the repository at this point in the history
)

This PR adds the following test cases to check the GPU renderer on devices without an integrated GPU:

- graphics/auto_glxgears
- graphics/auto_glxgears_fullscreen
- graphics/valid_glxgears
- graphics/valid_glxgears_fullscreen

These jobs use the recently introduced `prime_offload_tester.py` script (see PR #1245)

They are added to nested test plans used for 24.04 LTS certification, and do not impact 22.04 or older.
  • Loading branch information
hanhsuan authored Oct 29, 2024
1 parent 744a2af commit eb30482
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
38 changes: 34 additions & 4 deletions providers/base/units/graphics/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -398,16 +398,46 @@ verification:
1. Did the 3D animation appear?
2. Was the animation free from slowness/jerkiness?

plugin: shell
category_id: com.canonical.plainbox::graphics
id: graphics/auto_glxgears
flags: also-after-suspend
user: root
requires:
executable.name == 'glxgears'
dmi.product in ['Desktop','Low Profile Desktop','Tower','Mini Tower','Space-saving']
command:
prime_offload_tester.py -c glxgears -t 30
summary:
Test that glxgears works for current video card
purpose:
Tests the basic 3D capabilities of your current video card. This test covers all devices without an integrated display, such as desktops.

plugin: shell
category_id: com.canonical.plainbox::graphics
id: graphics/auto_glxgears_fullscreen
flags: also-after-suspend
user: root
requires:
executable.name == 'glxgears'
dmi.product in ['Desktop','Low Profile Desktop','Tower','Mini Tower','Space-saving']
command:
prime_offload_tester.py -c "glxgears -fullscreen" -t 30
summary:
Test that glxgears works in full screen mode for current video card
purpose:
Tests the basic full screen 3D capabilities of your current video card. This test covers all devices without an integrated display, such as desktops.

plugin: user-interact-verify
category_id: com.canonical.plainbox::graphics
id: graphics/valid_glxgears
flags: also-after-suspend
user: root
requires:
executable.name == 'glxgears'
dmi.product in ['Desktop','Low Profile Desktop','Tower','Mini Tower','Space-saving']
command:
glxgears
true
prime_offload_tester.py -c glxgears -t 30
summary:
Test that glxgears works for current video card
purpose:
Expand All @@ -423,12 +453,12 @@ plugin: user-interact-verify
category_id: com.canonical.plainbox::graphics
id: graphics/valid_glxgears_fullscreen
flags: also-after-suspend
user: root
requires:
executable.name == 'glxgears'
dmi.product in ['Desktop','Low Profile Desktop','Tower','Mini Tower','Space-saving']
command:
glxgears -fullscreen
true
prime_offload_tester.py -c "glxgears -fullscreen" -t 30
summary:
Test that glxgears works in full screen mode for current video card
purpose:
Expand Down
4 changes: 4 additions & 0 deletions providers/base/units/graphics/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ include:
graphics/2_minimum_resolution_.*
graphics/1_auto_glxgears_.* certification-status=blocker
graphics/2_auto_glxgears_.* certification-status=blocker
graphics/auto_glxgears certification-status=blocker
graphics/auto_glxgears_fullscreen certification-status=blocker
suspend/resolution_before_suspend certification-status=blocker
bootstrap_include:
graphics_card
Expand Down Expand Up @@ -68,6 +70,8 @@ include:
after-suspend-graphics/1_minimum_resolution_.*
after-suspend-graphics/1_auto_glxgears_.* certification-status=blocker
after-suspend-graphics/2_auto_glxgears_.* certification-status=blocker
after-suspend-graphics/auto_glxgears certification-status=blocker
after-suspend-graphics/auto_glxgears_fullscreen certification-status=blocker
suspend/resolution_after_suspend certification-status=blocker

id: after-suspend-graphics-gpu-cert-manual
Expand Down

0 comments on commit eb30482

Please sign in to comment.