diff options
-rw-r--r-- | units/keys/jobs.pxu | 13 | ||||
-rw-r--r-- | units/keys/test-plan.pxu | 40 | ||||
-rw-r--r-- | units/suspend/suspend.pxu | 169 |
3 files changed, 53 insertions, 169 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 diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu index 287071a..136adfb 100644 --- a/units/suspend/suspend.pxu +++ b/units/suspend/suspend.pxu @@ -1910,175 +1910,6 @@ _description: VERIFICATION: Did the WLAN/Bluetooth LED light as expected after resuming from suspend? -plugin: manual -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/brightness -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: dmi.product in ['Notebook','Laptop','Portable','All In One','All-In-One','AIO'] -_description: - PURPOSE: - This test will test the brightness key after resuming from suspend - STEPS: - 1. Press the brightness buttons on the keyboard - VERIFICATION: - Did the brightness change following to your key presses after resuming from suspend? - -plugin: user-interact-verify -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/volume -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: - device.category == 'KEYBOARD' -user: root -command: key_test -s '0xe02e,0xe0ae:Volume Up' '0xe030,0xe0b0:Volume Down' -_description: - PURPOSE: - This test will test the volume keys of your keyboard after resuming from suspend - STEPS: - Skip this test if your computer has no volume keys. - 1. Click test to open a window on which to test the volume keys. - 2. If all the keys work, the test will be marked as passed. - VERIFICATION: - Did the volume change following to your key presses? - -plugin: user-interact-verify -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/mute -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: - device.category == 'KEYBOARD' -user: root -command: key_test -s '0xe020,0xe0a0:Mute' -_description: - PURPOSE: - This test will test the mute key of your keyboard after resuming from suspend - STEPS: - 1. Click test to open a window on which to test the mute key. - 2. If the key works, the test will pass and the window will close. - VERIFICATION: - Did the volume mute following your key presses? - -plugin: manual -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/sleep -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: - device.category == 'KEYBOARD' -_description: - PURPOSE: - This test will test the sleep key after resuming from suspend - STEPS: - 1. Press the sleep key on the keyboard - 2. Wake your system up by pressing the power button - VERIFICATION: - Did the system go to sleep after pressing the sleep key after resuming from suspend? - -plugin: user-interact-verify -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/battery-info -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: dmi.product in ['Notebook','Laptop','Portable'] -user: root -command: key_test -s '0xe071,0xef1:Battery Info' -_description: - PURPOSE: - This test will test the battery information key after resuming from suspend - STEPS: - Skip this test if you do not have a Battery Button. - 1. Click Test to begin - 2. Press the Battery Info button (or combo like Fn+F3) - 3: Close the Power Statistics tool if it opens - VERIFICATION: - Did the Battery Info key work as expected after resuming from suspend? - -plugin: manual -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/wireless -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: dmi.product in ['Notebook','Laptop','Portable'] -_description: - PURPOSE: - This test will test the wireless key after resuming from suspend - STEPS: - 1. Press the wireless key on the keyboard - 2. Press the same key again - VERIFICATION: - Did the wireless go off on the first press and on again on the second after resuming from suspend? - -plugin: user-interact-verify -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/media-control -estimated_duration: 120.0 -depends: suspend/suspend_advanced -requires: - device.category == 'KEYBOARD' -user: root -command: key_test -s 0xe010,0xe090:Previous 0xe024,0xe0a4:Stop 0xe019,0xe099:Next 0xe022,0xe0a2:Play -_description: - PURPOSE: - This test will test the media keys of your keyboard after resuming from suspend - STEPS: - Skip this test if your computer has no media keys. - 1. Click test to open a window on which to test the media keys. - 2. If all the keys work, the test will be marked as passed. - VERIFICATION: - Do the keys work as expected after resuming from suspend? - -plugin: user-interact-verify -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/super -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: - device.category == 'KEYBOARD' -user: root -command: key_test -s '0xe05b,0xe0db:Left Super Key' -_description: - PURPOSE: - This test will test the super key of your keyboard after resuming from suspend - STEPS: - 1. Click test to open a window on which to test the super key. - 2. If the key works, the test will pass and the window will close. - VERIFICATION: - Does the super key work as expected after resuming from suspend? - -plugin: manual -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/video-out -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: dmi.product in ['Notebook','Laptop','Portable'] -_description: - PURPOSE: - Validate that the External Video hot key is working as expected after resuming from suspend - STEPS: - 1. Plug in an external monitor - 2. Press the display hot key to change the monitors configuration - VERIFICATION: - Check that the video signal can be mirrored, extended, displayed on external or onboard only, after resuming from suspend. - -plugin: manual -category_id: com.canonical.plainbox::suspend -id: suspend/keys_after_suspend/touchpad -depends: suspend/suspend_advanced -estimated_duration: 120.0 -requires: dmi.product in ['Notebook','Laptop','Portable'] -_description: - PURPOSE: - Verify touchpad hotkey toggles touchpad functionality on and off after resuming from suspend - STEPS: - 1. Verify the touchpad is functional - 2. Tap the touchpad toggle hotkey - 3. Tap the touchpad toggle hotkey again - VERIFICATION: - Verify the touchpad has been disabled and re-enabled. - plugin: user-interact category_id: com.canonical.plainbox::suspend id: suspend/usb_insert_after_suspend |