From eb3048277986fe6c2b7cdbaa21a4729e9542a8dc Mon Sep 17 00:00:00 2001 From: hanhsuan <32028620+hanhsuan@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:38:57 +0800 Subject: [PATCH] Add test cases to call the GPU renderer verification script (New) (#1550) 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. --- providers/base/units/graphics/jobs.pxu | 38 ++++++++++++++++++--- providers/base/units/graphics/test-plan.pxu | 4 +++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/providers/base/units/graphics/jobs.pxu b/providers/base/units/graphics/jobs.pxu index 7180d3181..13fe4ccf2 100644 --- a/providers/base/units/graphics/jobs.pxu +++ b/providers/base/units/graphics/jobs.pxu @@ -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: @@ -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: diff --git a/providers/base/units/graphics/test-plan.pxu b/providers/base/units/graphics/test-plan.pxu index 8ace0f0b0..72a7c4b54 100644 --- a/providers/base/units/graphics/test-plan.pxu +++ b/providers/base/units/graphics/test-plan.pxu @@ -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 @@ -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