summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2015-04-14 18:55:33 +0800
committerPo-Hsu Lin <po-hsu.lin@canonical.com>2015-04-14 18:55:33 +0800
commit7e32d4850d7294678018e21fbdc14d7f1a7cee0f (patch)
tree14fe035f9ae64eb9e698a82d312775ab19766b28 /jobs
parent55bb60b62a2aaa09419a613599d2d9dfce79c4d4 (diff)
plainbox:checkbox thunderbolt tests for audio/storage/display/daisy-chain
Diffstat (limited to 'jobs')
-rw-r--r--jobs/audio.txt.in30
-rw-r--r--jobs/monitor.txt.in5
-rw-r--r--jobs/thunderbolt.pxu68
3 files changed, 100 insertions, 3 deletions
diff --git a/jobs/audio.txt.in b/jobs/audio.txt.in
index 69367de..5993fc7 100644
--- a/jobs/audio.txt.in
+++ b/jobs/audio.txt.in
@@ -53,7 +53,7 @@ _description:
PURPOSE:
HDMI audio interface verification
STEPS:
- 1. Plug an external HDMI device with sound (Use only one HDMI/DisplayPort interface at a time for this test)
+ 1. Plug an external HDMI device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
2. Click the Test button
VERIFICATION:
Did you hear the sound from the HDMI device?
@@ -77,12 +77,38 @@ _description:
PURPOSE:
DisplayPort audio interface verification
STEPS:
- 1. Plug an external DisplayPort device with sound (Use only one HDMI/DisplayPort interface at a time for this test)
+ 1. Plug an external DisplayPort device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
2. Click the Test button
VERIFICATION:
Did you hear the sound from the DisplayPort device?
plugin: user-interact-verify
+id: audio/playback_thunderbolt
+estimated_duration: 30.0
+imports: from 2013.com.canonical.plainbox import manifest
+requires:
+ device.category == 'AUDIO'
+ package.name == 'alsa-base'
+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
+ package.name == 'pulseaudio-utils'
+ manifest.has_thunderbolt == 'True'
+command:
+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ audio_settings set --verbose --device=hdmi --volume=50
+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
+ EXIT_CODE=$?
+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
+ exit $EXIT_CODE
+_description:
+ PURPOSE:
+ Thunderbolt audio interface verification
+ STEPS:
+ 1. Plug an external Thunderbolt device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
+ 2. Click the Test button
+ VERIFICATION:
+ Did you hear the sound from the Thunderbolt device?
+
+plugin: user-interact-verify
id: audio/playback_headphones
estimated_duration: 20.0
depends: audio/list_devices
diff --git a/jobs/monitor.txt.in b/jobs/monitor.txt.in
index 0317960..c942d4a 100644
--- a/jobs/monitor.txt.in
+++ b/jobs/monitor.txt.in
@@ -57,8 +57,11 @@ _description:
STEPS:
1. Connect a display (if not already connected) to the Thunderbolt port on
your system
+ 2. Switch display modes between in your Display Settings, check if it can be
+ set to mirrored, extended, displayed on external or onboard only
VERIFICATION:
- Was the desktop displayed correctly on the Thunderbolt-connected screen?
+ Was the desktop displayed correctly on the Thunderbolt-connected screen in
+ every mode?
plugin: manual
id: monitor/svideo
diff --git a/jobs/thunderbolt.pxu b/jobs/thunderbolt.pxu
index f802db5..25ff106 100644
--- a/jobs/thunderbolt.pxu
+++ b/jobs/thunderbolt.pxu
@@ -2,3 +2,71 @@ unit: manifest entry
id: has_thunderbolt
_name: Thunderbolt Support
value-type: bool
+
+plugin: user-interact
+id: thunderbolt/insert
+imports: from 2013.com.canonical.plainbox import manifest
+requires: manifest.has_thunderbolt == 'True'
+command: removable_storage_watcher insert --timeout 40 scsi
+_summary: Storage insert detection on Thunderbolt
+_description:
+ PURPOSE:
+ This test will check if the insertion of a Thunderbolt HDD could be detected
+ STEPS:
+ 1. Click 'Test' to begin the test. This test will
+ timeout and fail if the insertion has not been detected within 40 seconds.
+ 2. Plug a Thunderbolt HDD into an available Thunderbolt port, if it's not
+ mounted automatically, please click the HDD icon to mount it.
+ VERIFICATION:
+ The verification of this test is automated. Do not change the automatically
+ selected result
+
+plugin: shell
+id: thunderbolt/storage-test
+imports: from 2013.com.canonical.plainbox import manifest
+requires: manifest.has_thunderbolt == 'True'
+depends: thunderbolt/insert
+command: removable_storage_test -s 268400000 scsi
+_summary: Storage test on Thunderbolt
+_description:
+ This is an automated test which performs read/write operations on an attached
+ Thunderbolt HDD
+
+plugin: user-interact
+id: thunderbolt/remove
+imports: from 2013.com.canonical.plainbox import manifest
+requires: manifest.has_thunderbolt == 'True'
+depends: thuderbolt/storage-test
+command: removable_storage_watcher remove scsi
+_summary: Storage removal detection on Thunderbolt
+_description:
+ PURPOSE:
+ This test will check the system can detect the removal of a Thunderbolt HDD
+ STEPS:
+ 1. Click 'Test' to begin the test. This test will timeout and fail if
+ the removal has not been detected within 20 seconds.
+ 2. Remove the previously attached Thunderbolt HDD from the Thunderbolt port.
+ VERIFICATION:
+ The verification of this test is automated. Do not change the automatically
+ selected result
+
+plugin: user-interact-verify
+id: thunderbolt/daisy-chain
+imports: from 2013.com.canonical.plainbox import manifest
+requires: manifest.has_thunderbolt == 'True'
+command: removable_storage_test -s 268400000 scsi
+_summary: Daisy-chain testing for Thunderbolt storage and display device
+_description:
+ PURPOSE:
+ This test will check if your system can support daisy-chaining of a storage
+ and a monitor over Thunderbolt port
+ STEPS:
+ 1. Connect your Thunderbolt monitor to your systems
+ 2. Connect your Thunderbolt HDD to another Thunderbolt port of the monitor
+ (you can do this with HDD first as well)
+ 3. Click 'Test' to perform the storage test on the Thunderbolt HDD
+ VERIFICATION:
+ 1. The verification for storage is automated, please select the result combine
+ with the result for the display.
+ 2. Was the desktop displayed correctly on the Thunderbolt-connected screen?
+