summaryrefslogtreecommitdiff
path: root/units/suspend
diff options
authorweichenwu <weichen.wu@canonical.com>2022-06-23 16:40:44 +0800
committerweichenwu <weichen.wu@canonical.com>2022-07-22 16:34:00 +0800
commit8824cc630c944abf78476b548115b10516330216 (patch)
tree4b022ddc8535bff325cf9f97104a415e3c925d15 /units/suspend
parenta268c57eff4329ad7c0d252e250dfda176a40a91 (diff)
Add: bluetooth obex job and bluetooth-cert test plan
Previously OBEX was under suspend category and it's hard to maintain or rerun Hence put it under bluetooth and add new test plan to in include it for further use 1. add bluetooth_obex_send under bluetooth 2. add obex and beacon cases to bluetooth-cert-automated 3. new test plan after-suspend-bluetooth-cert-automated 4. remove bluetooth test cases from suspend jobs/plans
Diffstat (limited to 'units/suspend')
-rw-r--r--units/suspend/suspend.pxu87
-rw-r--r--units/suspend/test-plan.pxu10
2 files changed, 0 insertions, 97 deletions
diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu
index 9d905da..3c55b47 100644
--- a/units/suspend/suspend.pxu
+++ b/units/suspend/suspend.pxu
@@ -97,35 +97,6 @@ _description:
plugin: shell
category_id: com.canonical.plainbox::suspend
-id: suspend/bluetooth_obex_send_before_suspend
-estimated_duration: 10.0
-requires:
- package.name == 'bluez'
- executable.name == 'obexftp'
- device.category == 'BLUETOOTH'
-command:
- if [ -z "$BTDEVADDR" ]
- then
- echo "btdevaddr option not set to device address of Bluetooth target in checkbox.conf"
- exit 1
- fi
- if rfkill list bluetooth | grep -q 'Hard blocked: yes'
- then
- echo "rfkill list shows BT is hard blocked"
- fi
- if rfkill list bluetooth | grep -q 'Soft blocked: yes'
- then
- echo "rfkill list shows BT is soft blocked, removing before testing"
- rfkill unblock bluetooth
- sleep 3
- fi
- set -o pipefail; bluetooth_test.py "$PLAINBOX_PROVIDER_DATA"/images/JPEG_Color_Image_Ubuntu.jpg "$BTDEVADDR" send 2>&1 | ansi_parser.py
-_summary: Bluetooth OBEX send before suspend
-_description:
- This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
-
-plugin: shell
-category_id: com.canonical.plainbox::suspend
id: suspend/bluetooth_obex_browse_before_suspend
estimated_duration: 10.0
requires:
@@ -1001,64 +972,6 @@ _description:
plugin: shell
category_id: com.canonical.plainbox::suspend
-id: suspend/bluetooth_obex_send_after_suspend
-depends: suspend/suspend_advanced_auto
-estimated_duration: 10.0
-requires:
- package.name == 'bluez'
- executable.name == 'obexftp'
- device.category == 'BLUETOOTH'
-command:
- if [ -z "$BTDEVADDR" ]
- then
- echo "btdevaddr option not set to device address of Bluetooth target in checkbox.conf"
- exit 1
- fi
- if rfkill list bluetooth | grep -q 'Hard blocked: yes'
- then
- echo "rfkill list shows BT is hard blocked"
- fi
- if rfkill list bluetooth | grep -q 'Soft blocked: yes'
- then
- echo "rfkill list shows BT is soft blocked, removing before testing"
- rfkill unblock bluetooth
- sleep 3
- fi
- set -o pipefail; bluetooth_test.py "$PLAINBOX_PROVIDER_DATA"/images/JPEG_Color_Image_Ubuntu.jpg "$BTDEVADDR" send 2>&1 | ansi_parser.py
-_description:
- This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
-
-plugin: shell
-category_id: com.canonical.plainbox::suspend
-id: suspend/bluetooth_obex_send_after_suspend_auto
-depends: suspend/suspend_advanced_auto
-estimated_duration: 10.0
-requires:
- package.name == 'bluez'
- executable.name == 'obexftp'
- device.category == 'BLUETOOTH'
-command:
- if [ -z "$BTDEVADDR" ]
- then
- echo "btdevaddr option not set to device address of Bluetooth target in checkbox.conf"
- exit 1
- fi
- if rfkill list bluetooth | grep -q 'Hard blocked: yes'
- then
- echo "rfkill list shows BT is hard blocked"
- fi
- if rfkill list bluetooth | grep -q 'Soft blocked: yes'
- then
- echo "rfkill list shows BT is soft blocked, removing before testing"
- rfkill unblock bluetooth
- sleep 3
- fi
- set -o pipefail; bluetooth_test.py "$PLAINBOX_PROVIDER_DATA"/images/JPEG_Color_Image_Ubuntu.jpg "$BTDEVADDR" send 2>&1 | ansi_parser.py
-_description:
- This is an automated Bluetooth file transfer test. It sends an image to the device specified by the BTDEVADDR environment variable.
-
-plugin: shell
-category_id: com.canonical.plainbox::suspend
id: suspend/bluetooth_obex_browse_after_suspend
depends: suspend/suspend_advanced_auto
estimated_duration: 10.0
diff --git a/units/suspend/test-plan.pxu b/units/suspend/test-plan.pxu