diff options
author | PMR <pmr@pmr-lander> | 2019-02-14 09:16:04 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2019-02-14 09:16:04 +0000 |
commit | 65ee4ab6eeab656041c8274b7cf120b2d13d10ff (patch) | |
tree | 5689b9d138eb09b68f7d41dc83bd6613e164272c /units | |
parent | 6d57503c2df7b803b8147c00adb6bbae42cf4c2f (diff) | |
parent | a27781f69133f98358c425c4e39792b9fcd1e754 (diff) |
Merge #362097 from ~ray.chen/plainbox-provider-checkbox:automated-switch-gpu-job-into-nested-plan
modified: units/graphics/test-plan.pxu and units/suspend/suspend-graphics.pxu
Diffstat (limited to 'units')
-rw-r--r-- | units/graphics/test-plan.pxu | 96 | ||||
-rw-r--r-- | units/suspend/suspend-graphics.pxu | 50 |
2 files changed, 73 insertions, 73 deletions
diff --git a/units/graphics/test-plan.pxu b/units/graphics/test-plan.pxu index 5b58844..9085cb8 100644 --- a/units/graphics/test-plan.pxu +++ b/units/graphics/test-plan.pxu @@ -60,7 +60,7 @@ _name: Graphics tests (discrete GPU) (Manual) _description: Graphics tests (discrete GPU) (Manual) include: - graphics/2_switch_card_.*_xenial certification-status=blocker + graphics/2_auto_switch_card_.* certification-status=blocker graphics/2_maximum_resolution_.* certification-status=blocker graphics/2_glxgears_.* certification-status=blocker graphics/2_rotation_.* certification-status=blocker @@ -88,44 +88,44 @@ unit: test plan _name: After suspend tests (integrated GPU) _description: After suspend tests (integrated GPU) include: - graphics/1_switch_card_.*_xenial certification-status=blocker - suspend/1_resolution_before_suspend_.*_xenial certification-status=blocker + graphics/1_auto_switch_card_.* certification-status=blocker + suspend/1_resolution_before_suspend_.*_auto 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 - power-management/lid_close certification-status=blocker - power-management/lid_open certification-status=blocker - suspend/1_compiz_check_after_suspend_.*_xenial certification-status=blocker - suspend/1_driver_version_after_suspend_.*_xenial certification-status=blocker - suspend/1_resolution_after_suspend_.*_xenial certification-status=blocker - suspend/1_display_after_suspend_.*_xenial certification-status=blocker - suspend/1_glxgears_after_suspend_.*_xenial certification-status=blocker - 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 + # or suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto (two GPUs) + suspend/1_suspend-time-check_.*_auto certification-status=non-blocker + suspend/1_suspend-single-log-attach_.*_auto + power-management/lid certification-status=blocker + power-management/lid_close certification-status=blocker + power-management/lid_open certification-status=blocker + suspend/1_compiz_check_after_suspend_.*_auto certification-status=blocker + suspend/1_driver_version_after_suspend_.*_auto certification-status=blocker + suspend/1_resolution_after_suspend_.*_auto certification-status=blocker + suspend/1_display_after_suspend_.*_auto certification-status=blocker + suspend/1_glxgears_after_suspend_.*_auto certification-status=blocker + suspend/1_video_after_suspend_.*_auto certification-status=blocker + suspend/1_cycle_resolutions_after_suspend_.*_auto certification-status=non-blocker + suspend/1_xrandr_screens_after_suspend.tar.gz_auto id: after-suspend-graphics-discrete-gpu-cert-full unit: test plan _name: After suspend tests (discrete GPU) _description: After suspend tests (discrete GPU) include: - suspend/2_resolution_before_suspend_.*_xenial certification-status=blocker - suspend/2_suspend_after_switch_to_card_.*_xenial certification-status=blocker - suspend/2_suspend-time-check_.*_xenial certification-status=non-blocker - suspend/2_suspend-single-log-attach_.*_xenial - suspend/2_compiz_check_after_suspend_.*_xenial certification-status=blocker - suspend/2_driver_version_after_suspend_.*_xenial certification-status=blocker - suspend/2_resolution_after_suspend_.*_xenial certification-status=blocker - suspend/2_display_after_suspend_.*_xenial certification-status=blocker - suspend/2_glxgears_after_suspend_.*_xenial certification-status=blocker - suspend/2_video_after_suspend_.*_xenial certification-status=blocker - suspend/2_cycle_resolutions_after_suspend_.*_xenial certification-status=non-blocker - suspend/2_xrandr_screens_after_suspend_.*.tar.gz_xenial - after-suspend-manual-monitor/2_dim_brightness_.* certification-status=blocker + suspend/2_resolution_before_suspend_.*_auto certification-status=blocker + suspend/2_suspend_after_switch_to_card_.*_auto certification-status=blocker + suspend/2_suspend-time-check_.*_auto certification-status=non-blocker + suspend/2_suspend-single-log-attach_.*_auto + suspend/2_compiz_check_after_suspend_.*_auto certification-status=blocker + suspend/2_driver_version_after_suspend_.*_auto certification-status=blocker + suspend/2_resolution_after_suspend_.*_auto certification-status=blocker + suspend/2_display_after_suspend_.*_auto certification-status=blocker + suspend/2_glxgears_after_suspend_.*_auto certification-status=blocker + suspend/2_video_after_suspend_.*_auto certification-status=blocker + suspend/2_cycle_resolutions_after_suspend_.*_auto certification-status=non-blocker + suspend/2_xrandr_screens_after_suspend_.*.tar.gz_auto + after-suspend-manual-monitor/2_dim_brightness_.* certification-status=blocker id: graphics-integrated-gpu-cert-blockers unit: test plan @@ -150,7 +150,7 @@ unit: test plan _name: Graphics tests (discrete GPU, certification blockers only) _description: Graphics tests (discrete GPU, certification blockers only) include: - graphics/2_switch_card_.*_xenial certification-status=blocker + graphics/2_auto_switch_card_.* certification-status=blocker graphics/2_maximum_resolution_.* certification-status=blocker graphics/2_valid_opengl_renderer_.* certification-status=blocker graphics/2_glxgears_.* certification-status=blocker @@ -166,18 +166,18 @@ unit: test plan _name: After suspend tests (integrated GPU, certification blockers only) _description: After suspend tests (integrated GPU, certification blockers only) include: - graphics/1_switch_card_.*_xenial certification-status=blocker - suspend/1_resolution_before_suspend_.*_xenial certification-status=blocker + graphics/1_auto_switch_card_.* certification-status=blocker + suspend/1_resolution_before_suspend_.*_auto certification-status=blocker suspend/suspend_advanced certification-status=blocker power-management/lid certification-status=blocker power-management/lid_close certification-status=blocker power-management/lid_open certification-status=blocker - suspend/1_compiz_check_after_suspend_.*_xenial certification-status=blocker - suspend/1_driver_version_after_suspend_.*_xenial certification-status=blocker - suspend/1_resolution_after_suspend_.*_xenial certification-status=blocker - suspend/1_display_after_suspend_.*_xenial certification-status=blocker - suspend/1_glxgears_after_suspend_.*_xenial certification-status=blocker - suspend/1_video_after_suspend_.*_xenial certification-status=blocker + suspend/1_compiz_check_after_suspend_.*_auto certification-status=blocker + suspend/1_driver_version_after_suspend_.*_auto certification-status=blocker + suspend/1_resolution_after_suspend_.*_auto certification-status=blocker + suspend/1_display_after_suspend_.*_auto certification-status=blocker + suspend/1_glxgears_after_suspend_.*_auto certification-status=blocker + suspend/1_video_after_suspend_.*_auto certification-status=blocker after-suspend-manual-monitor/1_dim_brightness_.* certification-status=blocker id: after-suspend-graphics-discrete-gpu-cert-blockers @@ -185,12 +185,12 @@ unit: test plan _name: After suspend tests (discrete GPU, certification blockers only) _description: After suspend tests (discrete GPU, certification blockers only) include: - suspend/2_resolution_before_suspend_.*_xenial certification-status=blocker - suspend/2_suspend_after_switch_to_card_.*_xenial certification-status=blocker - suspend/2_compiz_check_after_suspend_.*_xenial certification-status=blocker - suspend/2_driver_version_after_suspend_.*_xenial certification-status=blocker - suspend/2_resolution_after_suspend_.*_xenial certification-status=blocker - suspend/2_display_after_suspend_.*_xenial certification-status=blocker - suspend/2_glxgears_after_suspend_.*_xenial certification-status=blocker - suspend/2_video_after_suspend_.*_xenial certification-status=blocker - after-suspend-manual-monitor/2_dim_brightness_.* certification-status=blocker + suspend/2_resolution_before_suspend_.*_auto certification-status=blocker + suspend/2_suspend_after_switch_to_card_.*_auto certification-status=blocker + suspend/2_compiz_check_after_suspend_.*_auto certification-status=blocker + suspend/2_driver_version_after_suspend_.*_auto certification-status=blocker + suspend/2_resolution_after_suspend_.*_auto certification-status=blocker + suspend/2_display_after_suspend_.*_auto certification-status=blocker + suspend/2_glxgears_after_suspend_.*_auto certification-status=blocker + suspend/2_video_after_suspend_.*_auto certification-status=blocker + after-suspend-manual-monitor/2_dim_brightness_.* certification-status=blocker diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu index 43a7246..be820a7 100644 --- a/units/suspend/suspend-graphics.pxu +++ b/units/suspend/suspend-graphics.pxu @@ -3,8 +3,8 @@ template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' plugin: shell category_id: com.canonical.plainbox::suspend -id: suspend/{index}_resolution_before_suspend_{product_slug}_xenial -after: graphics/{index}_switch_card_{product_slug}_xenial +id: suspend/{index}_resolution_before_suspend_{product_slug}_auto +after: graphics/{index}_auto_switch_card_{product_slug} estimated_duration: 1.2 _description: Record the current resolution before suspending. command: @@ -16,11 +16,11 @@ template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' plugin: user-interact-verify category_id: com.canonical.plainbox::suspend -id: suspend/{index}_suspend_after_switch_to_card_{product_slug}_xenial +id: suspend/{index}_suspend_after_switch_to_card_{product_slug}_auto requires: sleep.mem == 'supported' rtc.state == 'supported' -after: graphics/{index}_switch_card_{product_slug}_xenial +after: graphics/{index}_auto_switch_card_{product_slug} user: root environ: PLAINBOX_SESSION_SHARE command: @@ -52,12 +52,12 @@ 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 }}_auto estimated_duration: 1.2 depends: - suspend/{{ index }}_resolution_before_suspend_{{ product_slug }}_xenial + suspend/{{ index }}_resolution_before_suspend_{{ product_slug }}_auto {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -72,10 +72,10 @@ 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 +id: suspend/{{ index }}_display_after_suspend_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -94,11 +94,11 @@ 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 }}_auto requires: package.name == 'xorg' depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -119,8 +119,8 @@ template-resource: graphics_card template-filter: graphics_card.prime_gpu_offload == 'Off' plugin: attachment category_id: com.canonical.plainbox::suspend -id: suspend/{index}_xrandr_screens_after_suspend.tar.gz_xenial -depends: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}_xenial +id: suspend/{index}_xrandr_screens_after_suspend.tar.gz_auto +depends: suspend/{index}_cycle_resolutions_after_suspend_{product_slug}_auto command: [ -f $PLAINBOX_SESSION_SHARE/{index}_xrandr_screens_after_suspend.tgz ] && cat $PLAINBOX_SESSION_SHARE/{index}_xrandr_screens_after_suspend.tgz _description: This attaches screenshots from the suspend/cycle_resolutions_after_suspend test to the results submission. @@ -130,10 +130,10 @@ 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 +id: suspend/{{ index }}_compiz_check_after_suspend_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -150,10 +150,10 @@ 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 +id: suspend/{{ index }}_glxgears_after_suspend_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -176,10 +176,10 @@ _description: unit: template template-resource: graphics_card template-engine: jinja2 -id: suspend/{{ index }}_video_after_suspend_{{ product_slug }}_xenial +id: suspend/{{ index }}_video_after_suspend_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -206,10 +206,10 @@ 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 +id: suspend/{{ index }}_driver_version_after_suspend_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -226,10 +226,10 @@ 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 +id: suspend/{{ index }}_suspend-single-log-attach_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} @@ -243,10 +243,10 @@ 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 +id: suspend/{{ index }}_suspend-time-check_{{ product_slug }}_auto depends: {%- if gpu_count > "1" %} - suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_xenial + suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto {%- else %} suspend/suspend_advanced {%- endif %} |