summaryrefslogtreecommitdiff
path: root/units/keys
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2017-10-23 17:12:23 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2017-10-23 17:12:23 +0200
commit44935070df061161423ea423099dcabc3092cd9b (patch)
tree6d24e72fb461ab6e7eaf2311ca36e6081183c78d /units/keys
parentd81165456095ed5b02aa7901efc6e7dbe678a560 (diff)
keys: Create after suspend key tests using also-after-suspend flag
Diffstat (limited to 'units/keys')
-rw-r--r--units/keys/jobs.pxu13
-rw-r--r--units/keys/test-plan.pxu40
2 files changed, 53 insertions, 0 deletions
diff --git a/units/keys/jobs.pxu b/units/keys/jobs.pxu
index 891281f..6923941 100644
--- a/units/keys/jobs.pxu
+++ b/units/keys/jobs.pxu
@@ -4,6 +4,7 @@ id: keys/lock-screen
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
command: lock_screen_watcher
_description:
PURPOSE:
@@ -23,6 +24,7 @@ id: keys/brightness
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
_description:
PURPOSE:
This test will test the brightness key
@@ -37,6 +39,7 @@ id: keys/volume
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
user: root
command: key_test -s '0xe02e,0xe0ae:Volume Down' '0xe030,0xe0b0:Volume Up'
_description:
@@ -55,6 +58,7 @@ id: keys/mute
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
user: root
command: key_test -s '0xe020,0xe0a0:Mute'
_description:
@@ -72,6 +76,7 @@ id: keys/sleep
estimated_duration: 90.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
_description:
PURPOSE:
This test will test the sleep key
@@ -87,6 +92,7 @@ id: keys/battery-info
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
user: root
command: key_test -s '0xe071,0xef1:Battery Info'
_description:
@@ -106,6 +112,7 @@ id: keys/wireless
estimated_duration: 90.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
_description:
PURPOSE:
This test will test the wireless key
@@ -127,6 +134,7 @@ id: keys/media-control
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
user: root
command: key_test -s 0xe010,0xe090:Previous 0xe024,0xe0a4:Stop 0xe019,0xe099:Next 0xe022,0xe0a2:Play
_description:
@@ -145,6 +153,7 @@ id: keys/super
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
user: root
command: key_test -s '0xe05b,0xe0db:Left Super Key'
_description:
@@ -162,6 +171,7 @@ id: keys/video-out
estimated_duration: 120.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
_description:
PURPOSE:
Validate that the External Video hot key is working as expected
@@ -177,6 +187,7 @@ id: keys/touchpad
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
_description:
PURPOSE:
Verify touchpad hotkey toggles touchpad functionality on and off
@@ -193,6 +204,7 @@ id: keys/keyboard-backlight
estimated_duration: 30.0
imports: from com.canonical.plainbox import manifest
requires: manifest.has_special_keys == 'True'
+flags: also-after-suspend
_description:
PURPOSE:
Verify that the keyboard backlight toggle key works properly
@@ -215,6 +227,7 @@ requires:
package.name == 'alsa-base'
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
+flags: also-after-suspend
command:
audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
audio_settings set --device=pci --volume=50
diff --git a/units/keys/test-plan.pxu b/units/keys/test-plan.pxu
index ebd1696..c258338 100644
--- a/units/keys/test-plan.pxu
+++ b/units/keys/test-plan.pxu
@@ -13,6 +13,26 @@ include:
keys/volume certification-status=blocker
keys/video-out certification-status=blocker
keys/wireless certification-status=blocker
+ keys/keyboard-backlight certification-status=blocker
+ keys/microphone-mute certification-status=blocker
+
+id: after-suspend-keys-cert-full
+unit: test plan
+_name: Special keys tests (after suspend)
+_description:
+ Special keys tests (after suspend)
+include:
+ after-suspend-keys/lock-screen certification-status=blocker
+ after-suspend-keys/super certification-status=blocker
+ after-suspend-keys/battery-info certification-status=blocker
+ after-suspend-keys/brightness certification-status=blocker
+ after-suspend-keys/media-control certification-status=blocker
+ after-suspend-keys/mute certification-status=blocker
+ after-suspend-keys/volume certification-status=blocker
+ after-suspend-keys/video-out certification-status=blocker
+ after-suspend-keys/wireless certification-status=blocker
+ after-suspend-keys/keyboard-backlight certification-status=blocker
+ after-suspend-keys/microphone-mute certification-status=blocker
id: keys-cert-blockers
unit: test plan
@@ -30,3 +50,23 @@ include:
keys/volume certification-status=blocker
keys/video-out certification-status=blocker
keys/wireless certification-status=blocker
+ keys/keyboard-backlight certification-status=blocker
+ keys/microphone-mute certification-status=blocker
+
+id: after-suspend-keys-cert-blockers
+unit: test plan
+_name: Special keys tests (certification blockers only, after suspend)
+_description:
+ Special keys tests (certification blockers only, after suspend)
+include:
+ after-suspend-keys/lock-screen certification-status=blocker
+ after-suspend-keys/super certification-status=blocker
+ after-suspend-keys/battery-info certification-status=blocker
+ after-suspend-keys/brightness certification-status=blocker
+ after-suspend-keys/media-control certification-status=blocker
+ after-suspend-keys/mute certification-status=blocker
+ after-suspend-keys/volume certification-status=blocker
+ after-suspend-keys/video-out certification-status=blocker
+ after-suspend-keys/wireless certification-status=blocker
+ after-suspend-keys/keyboard-backlight certification-status=blocker
+ after-suspend-keys/microphone-mute certification-status=blocker