diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2019-10-16 18:51:49 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2019-10-16 18:51:49 +0200 |
commit | 2b21c124f452112a44cce4896455c1f027bfcb30 (patch) | |
tree | e60b3d20e2f4fcdfad264cec7580b246889db193 /units/touchscreen | |
parent | 5a17231d343d45da82f3062e526bbd4c62723aa5 (diff) |
units:touchscreen: New evdev tap tests (no GUI)
Diffstat (limited to 'units/touchscreen')
-rw-r--r-- | units/touchscreen/jobs.pxu | 95 | ||||
-rw-r--r-- | units/touchscreen/packaging.pxu | 3 | ||||
-rw-r--r-- | units/touchscreen/test-plan.pxu | 20 |
3 files changed, 118 insertions, 0 deletions
diff --git a/units/touchscreen/jobs.pxu b/units/touchscreen/jobs.pxu index de55c5d..3a8a33a 100644 --- a/units/touchscreen/jobs.pxu +++ b/units/touchscreen/jobs.pxu @@ -197,3 +197,98 @@ command: {% endif %} exit $EXIT flags: also-after-suspend-manual + +unit: template +template-resource: device +template-filter: device.category == 'TOUCHSCREEN' +template-engine: jinja2 +template-unit: job +plugin: user-interact +category_id: com.canonical.plainbox::touchscreen +id: touchscreen/evdev/single-touch-tap-{{ product_slug }} +imports: from com.canonical.plainbox import manifest +requires: manifest.has_touchscreen == 'True' +estimated_duration: 10.0 +_description: + PURPOSE: + Validate that single-touch tap is properly detected + STEPS: + 1. Commence the test + 2. Tap the screen with one finger. + VERIFICATION: + If the tap is not detected the test will time out after 10 seconds. +user: root +command: evdev_touch_test.py '{{ product }}' -x 1 +flags: also-after-suspend + +unit: template +template-resource: device +template-filter: device.category == 'TOUCHSCREEN' +template-engine: jinja2 +template-unit: job +plugin: user-interact +category_id: com.canonical.plainbox::touchscreen +id: touchscreen/evdev/2-touch-tap-{{ product_slug }} +imports: from com.canonical.plainbox import manifest +requires: manifest.has_touchscreen == 'True' +estimated_duration: 10.0 +_description: + PURPOSE: + Validate that 2-touch tap is properly detected + STEPS: + 1. Commence the test + 2. Tap the screen with 2 fingers simultaneously. + VERIFICATION: + If the tap is not detected the test will time out after 10 seconds. +user: root +command: evdev_touch_test.py '{{ product }}' -x 2 +flags: also-after-suspend +after: touchscreen/evdev/single-touch-tap-{{ product_slug }} + +unit: template +template-resource: device +template-filter: device.category == 'TOUCHSCREEN' +template-engine: jinja2 +template-unit: job +plugin: user-interact +category_id: com.canonical.plainbox::touchscreen +id: touchscreen/evdev/3-touch-tap-{{ product_slug }} +imports: from com.canonical.plainbox import manifest +requires: manifest.has_touchscreen == 'True' +estimated_duration: 10.0 +_description: + PURPOSE: + Validate that 3-touch tap is properly detected + STEPS: + 1. Commence the test + 2. Tap the screen with 34 fingers simultaneously. + VERIFICATION: + If the tap is not detected the test will time out after 10 seconds. +user: root +command: evdev_touch_test.py '{{ product }}' -x 3 +flags: also-after-suspend +after: touchscreen/evdev/2-touch-tap-{{ product_slug }} + +unit: template +template-resource: device +template-filter: device.category == 'TOUCHSCREEN' +template-engine: jinja2 +template-unit: job +plugin: user-interact +category_id: com.canonical.plainbox::touchscreen +id: touchscreen/evdev/4-touch-tap-{{ product_slug }} +imports: from com.canonical.plainbox import manifest +requires: manifest.has_touchscreen == 'True' +estimated_duration: 10.0 +_description: + PURPOSE: + Validate that 4-touch tap is properly detected + STEPS: + 1. Commence the test + 2. Tap the screen with 4 fingers simultaneously. + VERIFICATION: + If the tap is not detected the test will time out after 10 seconds. +user: root +command: evdev_touch_test.py '{{ product }}' -x 4 +flags: also-after-suspend +after: touchscreen/evdev/3-touch-tap-{{ product_slug }} diff --git a/units/touchscreen/packaging.pxu b/units/touchscreen/packaging.pxu new file mode 100644 index 0000000..9c0b9d1 --- /dev/null +++ b/units/touchscreen/packaging.pxu @@ -0,0 +1,3 @@ +unit: packaging meta-data +os-id: debian +Depends: python3-evdev diff --git a/units/touchscreen/test-plan.pxu b/units/touchscreen/test-plan.pxu index cfe9907..f53e3dd 100644 --- a/units/touchscreen/test-plan.pxu +++ b/units/touchscreen/test-plan.pxu @@ -75,3 +75,23 @@ include: after-suspend-manual-touchscreen/multitouch-zoom certification-status=blocker after-suspend-manual-touchscreen/3-touch-tap certification-status=blocker after-suspend-manual-touchscreen/4-touch-tap certification-status=blocker + +id: touchscreen-evdev +unit: test plan +_name: Touchscreen evdev tests +_description: + Touchscreen evdev tests +include: + touchscreen/evdev.* +bootstrap_include: + device + +id: after-suspend-touchscreen-evdev +unit: test plan +_name: Touchscreen evdev tests +_description: + Touchscreen evdev tests +include: + after-suspend-touchscreen/evdev.* +bootstrap_include: + device |