diff options
author | PMR <pmr@pmr-lander> | 2021-07-06 10:05:58 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2021-07-06 10:05:58 +0000 |
commit | bbc8248e91bf2ac2db1e7f622b43b7fbda89673b (patch) | |
tree | 6f22b4c4a83b73f403436ccff886f68d17450897 /units | |
parent | 0b8046061c1773c78bee2d8f78a797939de5f92b (diff) | |
parent | 97d36c7503be9335686aad926b09a4e3750b95e9 (diff) |
Merge #405174 from ~jocave/plainbox-provider-checkbox:add-aaeon-vendor-tests
Diffstat (limited to 'units')
-rw-r--r-- | units/gpio/test-plan.pxu | 1 | ||||
-rw-r--r-- | units/gpio/vendor-aaeon.pxu | 16 | ||||
-rw-r--r-- | units/led/test-plan.pxu | 6 | ||||
-rw-r--r-- | units/led/vendor-aaeon.pxu | 39 |
4 files changed, 60 insertions, 2 deletions
diff --git a/units/gpio/test-plan.pxu b/units/gpio/test-plan.pxu index a32be08..91d83b5 100644 --- a/units/gpio/test-plan.pxu +++ b/units/gpio/test-plan.pxu @@ -25,6 +25,7 @@ _name: Automated GPIO tests _description: Automated GPIO tests for Ubuntu Core devices bootstrap_include: model_assertion + dmi include: gpio/sysfs_loopback_pairs_.* gpio/gpiomem_loopback_pairs_.* diff --git a/units/gpio/vendor-aaeon.pxu b/units/gpio/vendor-aaeon.pxu new file mode 100644 index 0000000..7f8d6bc --- /dev/null +++ b/units/gpio/vendor-aaeon.pxu @@ -0,0 +1,16 @@ + +unit: template +template-resource: dmi +template-filter: dmi.category == 'SYSTEM' and dmi.vendor == 'AAEON' and dmi.product in ('UPX-TGL01') +template-unit: job +id: gpio/sysfs_loopback_pairs_{vendor}_{product} +_summary: Test GPIO lines exposed on headers can be controlled via sysfs +plugin: shell +user: root +category_id: gpio +estimated_duration: 30.0 +flags: preserve-locale also-after-suspend +imports: from com.canonical.plainbox import manifest +requires: manifest.gpio_loopback == 'True' +command: + gpio_sysfs_loopback.py {product} diff --git a/units/led/test-plan.pxu b/units/led/test-plan.pxu index fc83aa2..b0d0129 100644 --- a/units/led/test-plan.pxu +++ b/units/led/test-plan.pxu @@ -115,5 +115,7 @@ include: led/bluetooth led/serial led/fn - - + led/sysfs_led_brightness_on_.* + led/sysfs_led_brightness_off_.* +bootstrap_include: + dmi diff --git a/units/led/vendor-aaeon.pxu b/units/led/vendor-aaeon.pxu new file mode 100644 index 0000000..d4ed7cd --- /dev/null +++ b/units/led/vendor-aaeon.pxu @@ -0,0 +1,39 @@ + +unit: template +template-resource: dmi +template-filter: dmi.category == 'SYSTEM' and dmi.vendor == 'AAEON' and dmi.product in ('UPX-TGL01') +template-unit: job +id: led/sysfs_led_brightness_on_{vendor}_{product} +plugin: user-interact-verify +category_id: led +estimated_duration: 30.0 +flags: preserve-locale also-after-suspend +command: + led_sysfs_brightness.py {product} on +_purpose: + Verify that the leds_aaeon driver is working by setting all LEDs to maximum + brightness +_steps: + Press ENTER to start the test while watching external LEDs on the SUT +_verification: + The external LEDs should now be on at maximum brightness + +unit: template +template-resource: dmi +template-filter: dmi.category == 'SYSTEM' and dmi.vendor == 'AAEON' and dmi.product in ('UPX-TGL01') +template-unit: job +id: led/sysfs_led_brightness_off_{vendor}_{product} +plugin: user-interact-verify +category_id: led +estimated_duration: 30.0 +flags: preserve-locale also-after-suspend +depends: led/sysfs_led_brightness_on_{vendor}_{product} +command: + led_sysfs_brightness.py {product} off +_purpose: + Verify that the leds_aaeon driver is working by setting all LEDs to off / + minimum brightness +_steps: + Press ENTER to start the test while watching external LEDs on the SUT +_verification: + The external LEDs should now be off or at minimum brightness |