diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-09-11 20:55:32 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-09-11 20:55:32 +0200 |
commit | 47a086222f56766cfffb72b2e0bce3dcfb577974 (patch) | |
tree | 74432c7f1fdd22ddebdcf2c7bdd5234f4fddda5a /units | |
parent | 1b956812a9332f8faa9a4ea7a3c27efdb912a46f (diff) |
Import plainbox-provider-checkbox_0.46.0~rc3.orig.tar.gzupstream-0.46.0_rc3patched-0.46.0_rc3-1
Diffstat (limited to 'units')
-rw-r--r-- | units/graphics/test-plan.pxu | 6 | ||||
-rw-r--r-- | units/info/jobs.pxu | 7 | ||||
-rw-r--r-- | units/monitor/test-plan.pxu | 64 | ||||
-rw-r--r-- | units/socketcan/manifest.pxu | 3 | ||||
-rw-r--r-- | units/suspend/suspend-graphics.pxu | 133 |
5 files changed, 169 insertions, 44 deletions
diff --git a/units/graphics/test-plan.pxu b/units/graphics/test-plan.pxu index 9c1f294..5b58844 100644 --- a/units/graphics/test-plan.pxu +++ b/units/graphics/test-plan.pxu @@ -90,7 +90,10 @@ _description: After suspend tests (integrated GPU) include: graphics/1_switch_card_.*_xenial certification-status=blocker suspend/1_resolution_before_suspend_.*_xenial certification-status=blocker - suspend/suspend_advanced certification-status=blocker + # The following after suspend jobs will automatically select the right suspend job + # depending on the amount of graphic cards available on the SUT: + # suspend/suspend_advanced (one GPU) + # or suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial (two GPUs) suspend/1_suspend-time-check_.*_xenial certification-status=non-blocker suspend/1_suspend-single-log-attach_.*_xenial power-management/lid certification-status=blocker @@ -104,7 +107,6 @@ include: suspend/1_video_after_suspend_.*_xenial certification-status=blocker suspend/1_cycle_resolutions_after_suspend_.*_xenial certification-status=non-blocker suspend/1_xrandr_screens_after_suspend.tar.gz_xenial - after-suspend-manual-monitor/1_dim_brightness_.* certification-status=blocker id: after-suspend-graphics-discrete-gpu-cert-full unit: test plan diff --git a/units/info/jobs.pxu b/units/info/jobs.pxu index 5d86eca..dee4fd5 100644 --- a/units/info/jobs.pxu +++ b/units/info/jobs.pxu @@ -422,3 +422,10 @@ command: cat /proc/cmdline estimated_duration: 0.005 _description: Attaches the kernel command line used to boot _summary: Attach a copy of /proc/cmdline + +plugin: shell +category_id: com.canonical.plainbox::info +id: info/systemd-analyze +estimated_duration: 0.2 +_summary: System boot-up performance statistics +command: systemd-analyze diff --git a/units/monitor/test-plan.pxu b/units/monitor/test-plan.pxu index ca90299..fbed317 100644 --- a/units/monitor/test-plan.pxu +++ b/units/monitor/test-plan.pxu @@ -10,14 +10,50 @@ nested_part: com.canonical.certification::monitor-integrated-gpu-cert-manual com.canonical.certification::monitor-integrated-gpu-cert-automated +id: after-suspend-monitor-integrated-gpu-cert-full +unit: test plan +_name: Monitor tests (after suspend, integrated GPU) +_description: Monitor tests (after suspend, integrated GPU) +include: +nested_part: + after-suspend-manual-monitor-integrated-gpu-cert-manual + id: monitor-integrated-gpu-cert-manual unit: test plan _name: Monitor tests (integrated GPU) (Manual) _description: Monitor tests (integrated GPU) (Manual) include: + monitor/1_powersaving_.* certification-status=blocker + monitor/1_dim_brightness_.* certification-status=blocker + monitor/1_displayport_.* certification-status=blocker + monitor/1_type-c_displayport_.* certification-status=blocker + monitor/type-c-to-hdmi certification-status=blocker + monitor/type-c-to-vga certification-status=blocker + audio/1_playback_displayport_.* certification-status=blocker + audio/1_playback_type-c_displayport_.* certification-status=blocker + monitor/1_dvi_.* certification-status=blocker + monitor/1_hdmi_.* certification-status=blocker + audio/1_playback_hdmi_.* certification-status=blocker + monitor/1_thunderbolt_.* certification-status=blocker + monitor/1_thunderbolt3_.* certification-status=non-blocker + audio/1_playback_thunderbolt_.* certification-status=blocker + audio/1_playback_thunderbolt3_.* certification-status=non-blocker + thunderbolt/daisy-chain certification-status=blocker + thunderbolt3/daisy-chain certification-status=non-blocker + monitor/1_vga_.* certification-status=blocker + monitor/1_multi-head_.* certification-status=blocker +bootstrap_include: + graphics_card + +id: after-suspend-manual-monitor-integrated-gpu-cert-manual +unit: test plan +_name: Monitor tests (after manual suspend, integrated GPU) (Manual) +_description: + Monitor tests (after manual suspend, integrated GPU) (Manual) +include: (after-suspend-manual-)?monitor/1_powersaving_.* certification-status=blocker - monitor/1_dim_brightness_.* certification-status=blocker + (after-suspend-manual-)?monitor/1_dim_brightness_.* certification-status=blocker (after-suspend-manual-)?monitor/1_displayport_.* certification-status=blocker (after-suspend-manual-)?monitor/1_type-c_displayport_.* certification-status=blocker (after-suspend-manual-)?monitor/type-c-to-hdmi certification-status=blocker @@ -99,8 +135,32 @@ unit: test plan _name: Monitor tests (integrated GPU, certification blockers only) _description: Monitor tests (integrated GPU, certification blockers only) include: + monitor/1_powersaving_.* certification-status=blocker + monitor/1_dim_brightness_.* certification-status=blocker + monitor/1_displayport_.* certification-status=blocker + monitor/1_type-c_displayport_.* certification-status=blocker + monitor/type-c-to-hdmi certification-status=blocker + monitor/type-c-to-vga certification-status=blocker + audio/1_playback_displayport_.* certification-status=blocker + audio/1_playback_type-c_displayport_.* certification-status=blocker + monitor/1_dvi_.* certification-status=blocker + monitor/1_hdmi_.* certification-status=blocker + audio/1_playback_hdmi_.* certification-status=blocker + monitor/1_thunderbolt_.* certification-status=blocker + audio/1_playback_thunderbolt_.* certification-status=blocker + thunderbolt/daisy-chain certification-status=blocker + monitor/1_vga_.* certification-status=blocker + monitor/1_multi-head_.* certification-status=blocker +bootstrap_include: + graphics_card + +id: after-suspend-manual-monitor-integrated-gpu-cert-blockers +unit: test plan +_name: Monitor tests (after manual suspend, integrated GPU, certification blockers only) +_description: Monitor tests (after manual suspend, integrated GPU, certification blockers only) +include: (after-suspend-manual-)?monitor/1_powersaving_.* certification-status=blocker - monitor/1_dim_brightness_.* certification-status=blocker + (after-suspend-manual-)?monitor/1_dim_brightness_.* certification-status=blocker (after-suspend-manual-)?monitor/1_displayport_.* certification-status=blocker (after-suspend-manual-)?monitor/1_type-c_displayport_.* certification-status=blocker (after-suspend-manual-)?monitor/type-c-to-hdmi certification-status=blocker diff --git a/units/socketcan/manifest.pxu b/units/socketcan/manifest.pxu index bb140c4..2c9b898 100644 --- a/units/socketcan/manifest.pxu +++ b/units/socketcan/manifest.pxu @@ -1,5 +1,6 @@ unit: manifest entry id: socket_can_echo_server_running -_name: SocketCAN Echo Server Running +prompt: Is the device connected to the following?: +_name: A SocketCAN Echo Server value-type: bool diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu index 849e5eb..43a7246 100644 --- a/units/suspend/suspend-graphics.pxu +++ b/units/suspend/suspend-graphics.pxu @@ -9,7 +9,7 @@ estimated_duration: 1.2 _description: Record the current resolution before suspending. command: source graphics_env {driver} {index} - xrandr -q |grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt + xrandr -q | grep '*'| awk '{{print $1}}' > $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt unit: template template-resource: graphics_card @@ -49,44 +49,63 @@ _description: unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: shell category_id: com.canonical.plainbox::suspend -id: suspend/{index}_resolution_after_suspend_{product_slug}_xenial +id: suspend/{{ index }}_resolution_after_suspend_{{ product_slug }}_xenial estimated_duration: 1.2 -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial suspend/{index}_resolution_before_suspend_{product_slug}_xenial +depends: + suspend/{{ index }}_resolution_before_suspend_{{ product_slug }}_xenial + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} _description: Test to see that we have the same resolution after resuming as before. command: - source graphics_env {driver} {index} - xrandr -q |grep '*'| awk '{{print $1}}' | diff $PLAINBOX_SESSION_SHARE/{index}_resolution_before_suspend.txt - + source graphics_env {{ driver }} {{ index }} + xrandr -q | grep '*'| awk '{print $1}' | diff $PLAINBOX_SESSION_SHARE/{{ index }}_resolution_before_suspend.txt - unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: manual category_id: com.canonical.plainbox::suspend -id: suspend/{index}_display_after_suspend_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial -_summary: Test display function after suspend for {vendor} {product} +id: suspend/{{ index }}_display_after_suspend_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} +_summary: Test display function after suspend for {{ vendor }} {{ product }} _description: PURPOSE: - This test will check that the display is correct after suspend and resume on the {vendor} {product} graphics card. + This test will check that the display is correct after suspend and resume on the {{ vendor }} {{ product }} graphics card. STEPS: 1. Check that your display does not show up visual artifacts after resuming. VERIFICATION: - Does the display work normally after resuming from suspend using the {vendor} {product} graphics card? + Does the display work normally after resuming from suspend using the {{ vendor }} {{ product }} graphics card? unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: user-interact-verify category_id: com.canonical.plainbox::suspend -id: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}_xenial +id: suspend/{{ index }}_cycle_resolutions_after_suspend_{{ product_slug }}_xenial requires: package.name == 'xorg' -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} estimated_duration: 120.0 command: - source graphics_env {driver} {index} - xrandr_cycle --keyword={index}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE + source graphics_env {{ driver }} {{ index }} + xrandr_cycle --keyword={{ index }}_after_suspend --screenshot-dir $PLAINBOX_SESSION_SHARE _description: PURPOSE: This test will cycle through the detected display modes @@ -108,33 +127,45 @@ _description: This attaches screenshots from the suspend/cycle_resolutions_after unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: shell category_id: com.canonical.plainbox::suspend -id: suspend/{index}_compiz_check_after_suspend_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +id: suspend/{{ index }}_compiz_check_after_suspend_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} requires: package.name == 'nux-tools' command: - source graphics_env {driver} {index} + source graphics_env {{ driver }} {{ index }} ! /usr/lib/nux/unity_support_test -c -p 2>&1 | ansi_parser | grep -e ":\(\s\+\)no$" -ie "error" estimated_duration: 0.130 -_description: Check that {product} hardware is able to run compiz after suspend -_summary: Test Compiz support for {product} after suspend +_description: Check that {{ product }} hardware is able to run compiz after suspend +_summary: Test Compiz support for {{ product }} after suspend unit: template template-resource: graphics_card +template-engine: jinja2 plugin: user-interact-verify category_id: com.canonical.plainbox::suspend -id: suspend/{index}_glxgears_after_suspend_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +id: suspend/{{ index }}_glxgears_after_suspend_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} requires: executable.name == 'glxgears' command: - source graphics_env {driver} {index} + source graphics_env {{ driver }} {{ index }} glxgears true -_summary: Test that glxgears works for {vendor} {product} after suspend +_summary: Test that glxgears works for {{ vendor }} {{ product }} after suspend _description: PURPOSE: - This test tests the basic 3D capabilities of your {vendor} {product} video card after suspend + This test tests the basic 3D capabilities of your {{ vendor }} {{ product }} video card after suspend STEPS: 1. Click "Test" to execute an OpenGL demo. Press ESC at any time to close. 2. Verify that the animation is not jerky or slow. @@ -144,17 +175,23 @@ _description: unit: template template-resource: graphics_card -id: suspend/{index}_video_after_suspend_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +template-engine: jinja2 +id: suspend/{{ index }}_video_after_suspend_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} plugin: user-interact-verify category_id: com.canonical.plainbox::suspend 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 {{ 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} +_summary: Test that video can be displayed after suspend with {{ vendor }} {{ product }} _description: PURPOSE: This test will test the default display after suspend with a sample video @@ -166,37 +203,55 @@ _description: unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: shell category_id: com.canonical.plainbox::suspend -id: suspend/{index}_driver_version_after_suspend_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +id: suspend/{{ index }}_driver_version_after_suspend_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} command: - source graphics_env {driver} {index} + source graphics_env {{ driver }} {{ index }} graphics_driver 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 -_summary: Test X driver/version after suspend for {vendor} {product} +_description: Parses Xorg.0.Log and discovers the running X driver and version after suspend for the {{ vendor }} {{ product }} graphics card +_summary: Test X driver/version after suspend for {{ vendor }} {{ product }} unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: attachment category_id: com.canonical.plainbox::suspend -id: suspend/{index}_suspend-single-log-attach_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial -command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single.log ] && cat $PLAINBOX_SESSION_SHARE/{index}_suspend_single.log +id: suspend/{{ index }}_suspend-single-log-attach_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} +command: [ -e $PLAINBOX_SESSION_SHARE/{{ index }}_suspend_single.log ] && cat $PLAINBOX_SESSION_SHARE/{{ index }}_suspend_single.log _description: Attaches the log from the single suspend/resume test to the results unit: template template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' +template-engine: jinja2 plugin: shell category_id: com.canonical.plainbox::suspend -id: suspend/{index}_suspend-time-check_{product_slug}_xenial -depends: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +id: suspend/{{ index }}_suspend-time-check_{{ product_slug }}_xenial +depends: + {%- if gpu_count > "1" %} + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + {%- else %} + suspend/suspend_advanced + {%- endif %} estimated_duration: 1.2 -command: [ -e $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/{index}_suspend_single_times.log +command: [ -e $PLAINBOX_SESSION_SHARE/{{ index }}_suspend_single_times.log ] && sleep_time_check $PLAINBOX_SESSION_SHARE/{{ index }}_suspend_single_times.log _description: Checks the sleep times to ensure that a machine suspends and resumes within a given threshold unit: template |