diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-13 11:26:52 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2020-07-13 11:26:52 +0200 |
commit | 258f3177860c34a2b772c62b99bfc88ce1c755f7 (patch) | |
tree | 586e5cc73e550aafd1bc165be9eac2862577b610 /units/graphics | |
parent | 4a58715d7d6b165d4e3b5a4169570a5b2e680429 (diff) |
bin:graphics_env -> graphics_env.sh
Diffstat (limited to 'units/graphics')
-rw-r--r-- | units/graphics/jobs.pxu | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/units/graphics/jobs.pxu b/units/graphics/jobs.pxu index 3e82694..c3b883d 100644 --- a/units/graphics/jobs.pxu +++ b/units/graphics/jobs.pxu @@ -5,7 +5,7 @@ plugin: shell category_id: com.canonical.plainbox::graphics id: graphics/{index}_driver_version_{product_slug} command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} graphics_driver.py estimated_duration: 0.5 _description: Parses Xorg.0.log and discovers the running X driver and version for the {vendor} {product} graphics card @@ -108,7 +108,7 @@ id: graphics/{index}_minimum_resolution_{product_slug} requires: device.category == 'VIDEO' command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} resolution_test --horizontal 800 --vertical 600 estimated_duration: 0.331 _summary: Test that {vendor} {product} meets minimum resolution requirement @@ -127,7 +127,7 @@ requires: device.category == 'VIDEO' package.name == 'zenity' command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} maxi="$(xrandr -q |grep -A 1 "connected\( primary\)* [0-9]" |tail -1 |awk '{{print $1}}')" 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="")')" test "$maxi" != "$now" && notify="\nPlease switch to the maximum resolution \nfor every graphic tests" @@ -191,7 +191,7 @@ requires: package.name == 'xorg' package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0' command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} gst_pipeline_test -t 2 'videotestsrc ! videoconvert ! autovideosink' || gst_pipeline_test -t 2 'videotestsrc ! ffmpegcolorspace ! autovideosink' _summary: Test that video can be displayed with {vendor} {product} _description: @@ -219,7 +219,7 @@ id: graphics/{index}_cycle_resolution_{product_slug} requires: package.name == 'xorg' depends: graphics/VESA_drivers_not_in_use command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} xrandr_cycle --screenshot-dir $PLAINBOX_SESSION_SHARE estimated_duration: 250.000 _summary: Test resolution cycling for {vendor} {product} @@ -239,7 +239,7 @@ category_id: com.canonical.plainbox::graphics id: graphics/{index}_rotation_{product_slug} depends: graphics/xorg-version command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} rotation_test estimated_duration: 20.000 _summary: Test rotation for {vendor} {product} @@ -286,7 +286,7 @@ category_id: com.canonical.plainbox::graphics id: graphics/{index}_glxgears_{product_slug} requires: executable.name == 'glxgears' command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} glxgears true _summary: Test that glxgears works for {vendor} {product} @@ -307,7 +307,7 @@ category_id: com.canonical.plainbox::graphics id: graphics/{index}_glxgears_fullscreen_{product_slug} requires: executable.name == 'glxgears' command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} glxgears -fullscreen true _summary: Test that glxgears works on fullscreen for {vendor} {product} |