summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2018-01-23 09:00:48 +0000
committerPMR <pmr@pmr-lander>2018-01-23 09:00:48 +0000
commit40e72610eb570c6111643c0eeeaa9eb334d5c1dd (patch)
tree101b51972772652d48f0bdeb8194025d1b62c2cc
parent796ac54ae842ae094565ae9e209cddc0009f5d50 (diff)
parent1ffee078e8babd2fecb6c072dccbbfbc7576b9b2 (diff)
Merge #336224 from ~jocave/plainbox-provider-checkbox:import-snappy-led-tests
-rw-r--r--units/led/category.pxu3
-rw-r--r--units/led/jobs.pxu48
-rw-r--r--units/led/test-plan.pxu18
3 files changed, 52 insertions, 17 deletions
diff --git a/units/led/category.pxu b/units/led/category.pxu
new file mode 100644
index 0000000..9f72d20
--- /dev/null
+++ b/units/led/category.pxu
@@ -0,0 +1,3 @@
+unit: category
+id: led
+_name: LED tests
diff --git a/units/led/jobs.pxu b/units/led/jobs.pxu
index 17ce655..15d3065 100644
--- a/units/led/jobs.pxu
+++ b/units/led/jobs.pxu
@@ -7,7 +7,7 @@ _steps:
_verification:
Power led is on when system is powered on
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
estimated_duration: 15.0
id: led/power-blink-suspend
@@ -20,11 +20,11 @@ _steps:
_verification:
Power led is blinking when system is in suspend
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
estimated_duration: 180
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/suspend
estimated_duration: 30.0
depends: suspend/suspend_advanced
@@ -39,7 +39,7 @@ _description:
Did the Suspend LED blink or change color while the system was suspended?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/battery-charging
estimated_duration: 120.0
_description:
@@ -52,7 +52,7 @@ _description:
Did the battery indicator LED turn orange?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/battery-charged
estimated_duration: 240.0
_description:
@@ -66,7 +66,7 @@ _description:
Does the orange battery LED shut off when system is fully charged?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/battery-low
estimated_duration: 30.0
_description:
@@ -79,7 +79,7 @@ _description:
Does the LED light orange when battery is low?
plugin: user-interact-verify
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/hdd
estimated_duration: 30.0
command: led_hdd_test
@@ -93,7 +93,7 @@ _description:
Did the HDD LED light?
plugin: user-interact-verify
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/numeric-keypad
estimated_duration: 30.0
command: keyboard_test
@@ -109,7 +109,7 @@ _description:
2. Numbers should only be entered in the keyboard verification window when the LED is on
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/caps-lock
estimated_duration: 30.0
_description:
@@ -122,7 +122,7 @@ _description:
Did the Cap Keys LED light as expected?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/wlan
depends: keys/wireless
estimated_duration: 60.0
@@ -137,7 +137,7 @@ _description:
Did the WLAN LED turn on or change color as expected?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/wlan-disabled
estimated_duration: 30.0
depends: keys/wireless
@@ -168,11 +168,11 @@ _steps:
_verification:
Bluetooth LED is turned on in step 2, and turned off in step 3.
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
estimated_duration: 180
plugin: user-interact-verify
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/camera
estimated_duration: 20.0
depends: camera/detect
@@ -187,7 +187,7 @@ _description:
Did the camera LED light?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/touchpad
estimated_duration: 30.0
_description:
@@ -202,7 +202,7 @@ _description:
3. When the LED is off, the mouse pointer should not move on touchpad usage
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/wireless
estimated_duration: 120.0
_description:
@@ -219,7 +219,7 @@ _description:
Did the WLAN/Bluetooth LED light as expected?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/mute
depends: keys/mute
estimated_duration: 30.0
@@ -234,7 +234,7 @@ _description:
Did the Audio LED turn on and off or change color as expected?
plugin: manual
-category_id: com.canonical.plainbox::led
+category_id: led
id: led/microphone-mute
estimated_duration: 30.0
depends: keys/microphone-mute
@@ -247,3 +247,17 @@ _description:
determine if it either turned off and on or changed colors.
VERIFICATION:
Did the Microphone Mute LED turn on and off or change color as expected?
+
+id: led/serial
+_summary: Serial ports LED behavior
+_purpose:
+ Check serial ports LED behavior is correct
+_steps:
+ 1. Start the test to send data to all serial ports (/dev/ttyS*)
+_verification:
+ All serial ports LED are on for a few seconds (3-4s)
+plugin: user-interact-verify
+command: echo {0..1024} | tee /dev/ttyS{0..100} &> /dev/null
+user: root
+category_id: led
+estimated_duration: 15
diff --git a/units/led/test-plan.pxu b/units/led/test-plan.pxu
index 4f59af9..f43a3ca 100644
--- a/units/led/test-plan.pxu
+++ b/units/led/test-plan.pxu
@@ -28,3 +28,21 @@ include:
suspend/led_after_suspend/caps-lock
suspend/led_after_suspend/power
suspend/led_after_suspend/touchpad
+
+id: led-full
+unit: test plan
+_name: LED tests
+_description: QA LED tests for IoT devices
+include:
+nested_part:
+ led-manual
+
+id: led-manual
+unit: test plan
+_name: Manual LED tests
+_description: Manual LED tests for IoT devices
+include:
+ led/power
+ led/power-blink-suspend
+ led/bluetooth
+ led/serial