summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorDaniel Manrique <roadmr@ubuntu.com>2014-09-29 13:20:47 -0400
committerDaniel Manrique <roadmr@ubuntu.com>2014-09-29 13:20:47 -0400
commitd5b78282941b8eccbd444d98320cd05aaa962c82 (patch)
treef8a19ffa7cc0599e2cbeead6da993fe98bb634fd /jobs
parent849e07e9c3983f95e8a06098eb6f5ef062e902d1 (diff)
providers:checkbox: Added bluetooth file transfer stress test
Test creates a random 10-MB file, transfers to an obexftp target using bluetooth, then retrieves the same file again, and checksums both files to ensure data didn't get corrupted in either transfer path.
Diffstat (limited to 'jobs')
-rw-r--r--jobs/bluetooth.txt.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/jobs/bluetooth.txt.in b/jobs/bluetooth.txt.in
index da371fb..ea9ee73 100644
--- a/jobs/bluetooth.txt.in
+++ b/jobs/bluetooth.txt.in
@@ -120,3 +120,33 @@ _description:
VERIFICATION:
Did the device work as expected?
+plugin: shell
+id: bluetooth/file_transfer_stress
+estimated_duration: 300.0
+requires:
+ package.name == 'bluez'
+ package.name == 'obexftp'
+ device.category == 'BLUETOOTH'
+command:
+ if [ -z "$BTDEVADDR" ]
+ then
+ echo "btdevaddr option not set to device address of Bluetooth target in plainbox.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
+ bluetooth_transfer_stress $BTDEVADDR
+_description:
+ This is an automated Bluetooth file transfer test. It sends a large file
+ to the device specified by the BTDEVADDR environment variable, then
+ retrieves it again using Bluetooth and verifies the checksum to ensure the
+ transfer didn't corrupt the file.
+