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 | |
parent | 4a58715d7d6b165d4e3b5a4169570a5b2e680429 (diff) |
bin:graphics_env -> graphics_env.sh
Diffstat (limited to 'units')
-rw-r--r-- | units/graphics/jobs.pxu | 16 | ||||
-rw-r--r-- | units/suspend/suspend-graphics.pxu | 16 |
2 files changed, 16 insertions, 16 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} diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu index 056be9e..d55ad69 100644 --- a/units/suspend/suspend-graphics.pxu +++ b/units/suspend/suspend-graphics.pxu @@ -8,7 +8,7 @@ after: graphics/{index}_auto_switch_card_{product_slug} estimated_duration: 1.2 _description: Record the current resolution before suspending. command: - source graphics_env {driver} {index} + source graphics_env.sh {driver} {index} xrandr -q | grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt unit: template @@ -48,7 +48,7 @@ depends: {%- endif %} _description: Test to see that we have the same resolution after resuming as before. command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} xrandr -q | grep '*'| awk '{print $1}' | diff $PLAINBOX_SESSION_SHARE/{{ index }}_resolution_before_suspend.txt - unit: template @@ -89,7 +89,7 @@ depends: {%- endif %} estimated_duration: 120.0 command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} xrandr_cycle --keyword={{ index }}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE _description: PURPOSE: @@ -124,7 +124,7 @@ depends: {%- endif %} requires: package.name == 'nux-tools' command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} ! /usr/lib/nux/unity_support_test -p 2>&1 | ansi_parser.py | grep -e ":\(\s\+\)no$" -ie "error" estimated_duration: 0.130 _description: Check that {{ product }} hardware is able to run a desktop session (OpenGL) @@ -144,7 +144,7 @@ depends: {%- endif %} 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 }} after suspend @@ -174,7 +174,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 after suspend with {{ vendor }} {{ product }} _description: @@ -199,7 +199,7 @@ depends: suspend/suspend_advanced {%- endif %} command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} graphics_driver.py estimated_duration: 0.500 _description: Parses Xorg.0.Log and discovers the running X driver and version after suspend for the {{ vendor }} {{ product }} graphics card @@ -277,7 +277,7 @@ depends: suspend/suspend_advanced {%- endif %} command: - source graphics_env {{ driver }} {{ index }} + source graphics_env.sh {{ driver }} {{ index }} rotation_test estimated_duration: 20.000 _summary: Test rotation for {{ vendor }} {{ product }} after suspend |