summaryrefslogtreecommitdiff
path: root/units/suspend
diff options
authorPMR <pmr@pmr-lander>2020-05-29 07:11:33 +0000
committerPMR <pmr@pmr-lander>2020-05-29 07:11:33 +0000
commit72c2f886b7b4e8ab11459bcd5aed5d1e9b0dc1e2 (patch)
treef2294a1e13c9a2d4743d49966e3bebfa1fd7ad00 /units/suspend
parent4e47b0aa0514b79cad859e08a176adb8b19c4650 (diff)
parentebf8a2479675321f1659852f68bc2934b5e93470 (diff)
Merge branch 'master' into release
Diffstat (limited to 'units/suspend')
-rw-r--r--units/suspend/suspend-graphics.pxu27
1 files changed, 27 insertions, 0 deletions
diff --git a/units/suspend/suspend-graphics.pxu b/units/suspend/suspend-graphics.pxu
index 21effcc1..b0a8608b 100644
--- a/units/suspend/suspend-graphics.pxu
+++ b/units/suspend/suspend-graphics.pxu
@@ -262,3 +262,30 @@ command:
fi
_purpose:
Suspend SUT 30 times while using {product_slug} 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 }}_rotation_after_suspend_{{ product_slug }}_graphics
+depends:
+ {%- if gpu_count > "1" %}
+ suspend/{{ index }}_suspend_after_switch_to_card_{{ product_slug }}_auto
+ {%- else %}
+ suspend/suspend_advanced
+ {%- endif %}
+command:
+ source graphics_env {{ driver }} {{ index }}
+ rotation_test
+estimated_duration: 20.000
+_summary: Test rotation for {{ vendor }} {{ product }} after suspend
+_description:
+ PURPOSE:
+ This test will test display rotation on the {{ vendor }} {{ product }} graphics card after suspend
+ STEPS:
+ 1. Click "Test" to test display rotation. The display will be rotated every 4 seconds.
+ 2. Check if all rotations (normal right inverted left) took place without permanent screen corruption
+ VERIFICATION:
+ Did the display rotation take place without permanent screen corruption after suspend?