diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-07-02 12:18:35 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-07-02 15:41:39 +0200 |
commit | cfccea5375aca495e52235832ced4e8782712b14 (patch) | |
tree | 3be08560e63a8783b28ea7c953d16b4a9c3d132a /units/bluetooth | |
parent | 28789c9f43d7da630e56d06abc33f4d57e7de16d (diff) |
New Bluetooth LE test to check beacon measurement notifications
Three environ variables to setup: - ADV_SVC_UUID: General/Configuration GATT service UUID advertised even if the device is not connected - SVC_UUID: GATT service to use to enable notifications. - MSRMT_UUID: GATT characteristic from the SVC_UUID service to trigger notifications.
Diffstat (limited to 'units/bluetooth')
-rw-r--r-- | units/bluetooth/jobs.pxu | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/units/bluetooth/jobs.pxu b/units/bluetooth/jobs.pxu index ef73a5a9..1f85fa61 100644 --- a/units/bluetooth/jobs.pxu +++ b/units/bluetooth/jobs.pxu @@ -194,3 +194,23 @@ _steps: 3. After it's paired and connected, enter some text with your keyboard and close the small input test tool. _verification: Did the Bluetooth Smart keyboard work as expected? + +unit: template +template-resource: device +template-filter: device.category == 'BLUETOOTH' +template-engine: jinja2 +template-unit: job +id: bluetooth4/beacon_notification_{{ path }} +_summary: Test system can get beacon notifications on the {{ path.split('/')[-1] }} adapter +environ: ADV_SVC_UUID SVC_UUID MSRMT_UUID +command: + gatt-notify-test.py {{ path.split('/')[-1] }} $ADV_SVC_UUID $SVC_UUID $MSRMT_UUID +plugin: shell +user: root +category_id: com.canonical.plainbox::bluetooth +estimated_duration: 30 +requires: + package.name == 'bluez' or snap.name == 'bluez' + {%- if __on_ubuntucore__ %} + connections.slot == 'bluez:service' and connections.plug == '{{ __system_env__["SNAP_NAME"] }}:bluez' + {% endif -%} |