diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2021-07-01 14:42:18 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2021-07-02 16:01:31 +0100 |
commit | 9482044d5be659d23b5a097eb8007c4a9391521e (patch) | |
tree | 50bb81182b21c0b8523326406fc8b75faa161a8d /units/gpio | |
parent | 3b91bc778fcff39e2a90dab13a667aa1e4d2d7e5 (diff) |
Add: gpio test for specific AAEON devices
Diffstat (limited to 'units/gpio')
-rw-r--r-- | units/gpio/test-plan.pxu | 1 | ||||
-rw-r--r-- | units/gpio/vendor-aaeon.pxu | 16 |
2 files changed, 17 insertions, 0 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} |