Merge ~bettyl/plainbox-provider-checkbox:add-dock-test-plan-case into plainbox-provider-checkbox:master

Proposed by Betty Lin
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 1b482511ffe2039db39a52a3a8ead839cb517e79
Merged at revision: 36da3465c30a13e4273844cfebe7332c4000c152
Proposed branch: ~bettyl/plainbox-provider-checkbox:add-dock-test-plan-case
Merge into: plainbox-provider-checkbox:master
Diff against target: 975 lines (+702/-64)
2 files modified
units/dock/jobs.pxu (+447/-64)
units/dock/test-plan.pxu (+255/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Betty Lin (community) Needs Resubmitting
Review via email: mp+376209@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

See below one suggestion about the use of suspend-undock-resume-test.

review: Needs Fixing
Revision history for this message
Betty Lin (bettyl) wrote :

@Sylvain, I remove "dock/suspend-undock-resume" from test plan "suspend-dock-resume-test".
Now, "dock/suspend-undock-resume" only existed in test plan "suspend-undock-resume-test".

So the test plan "after-suspend-dock-cert-full" should be fine. Thank you!

review: Needs Resubmitting
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/units/dock/jobs.pxu b/units/dock/jobs.pxu
2index c425402..5368718 100644
3--- a/units/dock/jobs.pxu
4+++ b/units/dock/jobs.pxu
5@@ -152,6 +152,23 @@ _verification:
6 Was the desktop displayed correctly on the screen connected
7 using a "USB Type-C to VGA" adapter in every mode?
8
9+id: dock/monitor-thunderbolt3
10+category_id: dock-display
11+depends: dock/cold-plug
12+imports: from com.canonical.plainbox import manifest
13+requires: manifest.has_thunderbolt3 == 'True'
14+estimated_duration: 120.0
15+_summary: Thunderbolt3 port test on the dock
16+plugin: manual
17+_purpose:
18+ This test will check the Thunderbolt3 port(s) on the dock.
19+_steps:
20+ Skip this test if the dock does not have a Thunderbolt3 port.
21+ 1. Connect a display (if not already connected) to the Thunderbolt3 port on the dock
22+ 2. Repeat step 1 for each additional Thunderbolt3 port, if any
23+_verification:
24+ Was the desktop displayed correctly on both screens?
25+
26 id: dock/monitor-dual-head
27 category_id: dock-display
28 depends: dock/cold-plug
29@@ -159,9 +176,9 @@ estimated_duration: 120.0
30 _summary: Dual monitors test while docked
31 plugin: manual
32 _purpose:
33- This test verifies that dual-monitor output works using the dock. You will need two external monitors to perform this test.
34+ This test verifies that dual-monitor output works using the dock. You will need two external monitors to perform this test. Depends on the specification of the device to use 4K monitor or FHD monitor.
35 _steps:
36- Skip this test if your video card or the dock do not support multiple monitors. Use 4K monitors to run this test if the video card and dock both support.
37+ Skip this test if your video card or the dock do not support multiple monitors.
38 1. If your dock provides more than one monitor outputs, connect two monitors
39 2. Open the "Displays" tool (open the dash and search for "Displays")
40 3. Configure your output to provide one desktop across all the monitors
41@@ -169,14 +186,14 @@ _steps:
42 _verification:
43 Was the stretched desktop displayed correctly across all the screens?
44
45-id: dock/monitor-tripple-head
46+id: dock/monitor-triple-head
47 category_id: dock-display
48 depends: dock/cold-plug
49 estimated_duration: 120.0
50 _summary: Tripple monitors test while docked
51 plugin: manual
52 _purpose:
53- This test verifies that tripple-monitor output works using the dock. You will need three external monitors to perform this test.
54+ This test verifies that triple-monitor output works using the dock. You will need three external monitors to perform this test. Depends on the specification of the device to use 4K monitor or FHD monitor.
55 _steps:
56 Skip this test if your video card or the dock do not support multiple monitors.
57 1. If your dock provides more than one monitor outputs, connect three monitors
58@@ -225,6 +242,7 @@ requires:
59 package.name == 'pulseaudio-utils'
60 _summary: HDMI audio test
61 plugin: user-interact-verify
62+flags: also-after-suspend-manual
63 estimated_duration: 30.0
64 command:
65 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
66@@ -252,6 +270,7 @@ requires:
67 package.name == 'pulseaudio-utils'
68 _summary: DisplayPort audio test
69 plugin: user-interact-verify
70+flags: also-after-suspend-manual
71 estimated_duration: 30.0
72 command:
73 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
74@@ -269,9 +288,96 @@ _steps:
75 _verification:
76 Did you hear the sound from the DisplayPort device?
77
78+id: dock/audio-playback-type-c-hdmi
79+category_id: dock-audio
80+depends: dock/cold-plug
81+requires:
82+ device.category == 'AUDIO'
83+ package.name == 'alsa-base'
84+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
85+ package.name == 'pulseaudio-utils'
86+_summary: HDMI audio test
87+plugin: user-interact-verify
88+estimated_duration: 30.0
89+command:
90+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
91+ audio_settings set --verbose --device=hdmi --volume=50
92+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
93+ EXIT_CODE=$?
94+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
95+ exit $EXIT_CODE
96+_purpose:
97+ Dock USB Type-C HDMI audio interface verification
98+_steps:
99+ 1. Plug an external HDMI device with sound on a USB Type-C port using a "USB Typce-C to HDMI" adapter on Dock (use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
100+ 2. Go to the Sound settings and make sure the correct Output is selected
101+ 3. Click the Test button
102+_verification:
103+ Did you hear the sound from the HDMI device?
104+
105+id: dock/audio-playback-type-c-displayport
106+category_id: dock-audio
107+depends: dock/cold-plug
108+requires:
109+ device.category == 'AUDIO'
110+ package.name == 'alsa-base'
111+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
112+ package.name == 'pulseaudio-utils'
113+_summary: HDMI audio test
114+plugin: user-interact-verify
115+flags: also-after-suspend-manual
116+estimated_duration: 30.0
117+command:
118+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
119+ audio_settings set --verbose --device=hdmi --volume=50
120+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
121+ EXIT_CODE=$?
122+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
123+ exit $EXIT_CODE
124+_purpose:
125+ Dock USB Type-C Displayport audio interface verification
126+_steps:
127+ 1. Plug an external Displayport device with sound on a USB Type-C port using a "USB Typce-C to Displayport" adapter on Dock (use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
128+ 2. Go to the Sound settings and make sure the correct Output is selected
129+ 3. Click the Test button
130+_verification:
131+ Did you hear the sound from the Displayport device?
132+
133+id: dock/audio-playback-thunderbolt3
134+category_id: dock-audio
135+depends: dock/cold-plug
136+imports: from com.canonical.plainbox import manifest
137+requires:
138+ device.category == 'AUDIO'
139+ package.name == 'alsa-base'
140+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
141+ package.name == 'pulseaudio-utils'
142+ manifest.has_thunderbolt3 == 'True'
143+_summary: DisplayPort audio test
144+plugin: user-interact-verify
145+flags: also-after-suspend-manual
146+estimated_duration: 30.0
147+command:
148+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
149+ audio_settings set --verbose --device=hdmi --volume=50
150+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
151+ EXIT_CODE=$?
152+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
153+ exit $EXIT_CODE
154+_purpose:
155+ Dock Thunderbolt3 audio interface verification
156+_steps:
157+ 1. Plug an external Thunderbolt3 device with sound to the dock (use only one HDMI/DisplayPort/Thunderbolt3 interface at a time for this test)
158+ 2. Go to the Sound settings and make sure the correct Output is selected
159+ 3. Click the Test button
160+_verification:
161+ Did you hear the sound from the Thunderbolt3 device?
162+
163+
164 id: dock/audio-playback-headphones
165 category_id: dock-audio
166 plugin: user-interact-verify
167+flags: also-after-suspend-manual
168 estimated_duration: 30.0
169 _summary: Headphones output test
170 depends: dock/audio-list-devices
171@@ -300,6 +406,7 @@ plugin: user-interact-verify
172 category_id: dock-audio
173 id: dock/audio-alsa-record-playback-external
174 estimated_duration: 30.0
175+flags: also-after-suspend-manual
176 _summary: External microphone plugged to the dock to record sound test
177 depends: dock/audio-playback-headphones
178 requires:
179@@ -883,6 +990,27 @@ _description:
180 Did a notification show and was the connection correctly established?
181
182 plugin: user-interact
183+id: dock/hotplug-usb-insert
184+category_id: dock-hotplug
185+depends: dock/hot-plug
186+estimated_duration: 10.0
187+_summary: USB drive insertion test
188+command: removable_storage_watcher insert usb
189+_purpose:
190+ This test will check that the system correctly detects the insertion of
191+ a USB storage device plugged on the dock
192+_steps:
193+ 1. Click "Test" and insert a USB storage device, preferably a HDD,
194+ in one of the dock's port.
195+ Although a USB pen drive may be used it might cause performance
196+ related tests to fail. (Note: this test will time-out after 20
197+ seconds.)
198+ 2. Do not unplug the device after the test.
199+_verification:
200+ The verification of this test is automated. Do not change the
201+ automatically selected result.
202+
203+plugin: user-interact
204 id: dock/hotplug-usb3-insert
205 category_id: dock-hotplug
206 depends: dock/hot-plug
207@@ -903,6 +1031,17 @@ _verification:
208 automatically selected result.
209
210 plugin: shell
211+id: dock/hotplug-usb-storage-automated
212+category_id: dock-hotplug
213+depends: dock/hotplug-usb-insert
214+user: root
215+estimated_duration: 45.0
216+_summary: USB drive storage test
217+command: removable_storage_test -s 268400000 usb
218+_description:
219+ This test is automated and executes after the dock/usb_insert test is run.
220+
221+plugin: shell
222 id: dock/hotplug-usb3-storage-automated
223 category_id: dock-hotplug
224 depends: dock/hotplug-usb3-insert
225@@ -914,6 +1053,23 @@ _description:
226 This test is automated and executes after the dock/usb3_insert test is run.
227
228 plugin: user-interact
229+id: dock/hotplug-usb-remove
230+category_id: dock-hotplug
231+depends: dock/hotplug-usb-insert
232+estimated_duration: 10.0
233+_summary: USB drive removal test
234+command: removable_storage_watcher remove usb
235+_purpose:
236+ This test will check that the system correctly detects the removal of
237+ a USB storage device
238+_steps:
239+ 1. Click "Test" and remove the USB device from the dock.
240+ (Note: this test will time-out after 20 seconds.)
241+_verification:
242+ The verification of this test is automated. Do not change the
243+ automatically selected result.
244+
245+plugin: user-interact
246 id: dock/hotplug-usb3-remove
247 category_id: dock-hotplug
248 depends: dock/hotplug-usb3-insert
249@@ -930,35 +1086,117 @@ _verification:
250 The verification of this test is automated. Do not change the
251 automatically selected result.
252
253-id: dock/hotplug-monitor-displayport
254+id: dock/hotplug-playback-type-c-displayport
255 category_id: dock-hotplug
256 depends: dock/hot-plug
257-estimated_duration: 120.0
258-_summary: DisplayPort test on the dock
259-plugin: manual
260+requires:
261+ device.category == 'AUDIO'
262+ package.name == 'alsa-base'
263+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
264+ package.name == 'pulseaudio-utils'
265+_summary: HDMI audio test
266+plugin: user-interact-verify
267+flags: also-after-suspend-manual
268+estimated_duration: 30.0
269+command:
270+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
271+ audio_settings set --verbose --device=hdmi --volume=50
272+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
273+ EXIT_CODE=$?
274+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
275+ exit $EXIT_CODE
276 _purpose:
277- This test will check the DisplayPort(s) on the dock after hot plugged in.
278+ Dock USB Type-C Displayport audio interface verification
279 _steps:
280- Skip this test if the dock does not have a DisplayPort.
281- 1. Connect a display (if not already connected) to the DisplayPort on the dock
282- 2. Repeat step 1 for each additional DisplayPorts, if any
283+ 1. Plug an external Displayport device with sound on a USB Type-C port using a "USB Typce-C to Displayport" adapter on Dock (use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
284+ 2. Go to the Sound settings and make sure the correct Output is selected
285+ 3. Click the Test button
286 _verification:
287- Was the desktop displayed correctly on both screens?
288+ Did you hear the sound from the Displayport device?
289
290-id: dock/hotplug-monitor-hdmi
291+id: dock/hotplug-playback-thumderbolt3
292 category_id: dock-hotplug
293 depends: dock/hot-plug
294-estimated_duration: 120.0
295-_summary: HDMI port test on the dock
296-plugin: manual
297+requires:
298+ device.category == 'AUDIO'
299+ package.name == 'alsa-base'
300+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
301+ package.name == 'pulseaudio-utils'
302+_summary: HDMI audio test
303+plugin: user-interact-verify
304+flags: also-after-suspend-manual
305+estimated_duration: 30.0
306+command:
307+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
308+ audio_settings set --verbose --device=hdmi --volume=50
309+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
310+ EXIT_CODE=$?
311+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
312+ exit $EXIT_CODE
313 _purpose:
314- This test will check the HDMI port(s) on the dock after hot plugged in.
315+ Dock Thunderbolt3 audio interface verification
316 _steps:
317- Skip this test if the dock does not have a HDMI port.
318- 1. Connect a display (if not already connected) to the HDMI port on the dock
319- 2. Repeat step 1 for each additional HDMI port, if any
320+ 1. Plug an external Thunderbolt3 device with sound (Use only one HDMI/DisplayPort/Thunderbolt3 interface at a time for this test)
321+ 2. Go to the Sound settings and make sure the correct Output is selected
322+ 3. Click the Test button
323 _verification:
324- Was the desktop displayed correctly on both screens?
325+ Did you hear the sound from the HDMI device?
326+
327+id: dock/hotplug-playback-displayport
328+category_id: dock-hotplug
329+depends: dock/hot-plug
330+requires:
331+ device.category == 'AUDIO'
332+ package.name == 'alsa-base'
333+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
334+ package.name == 'pulseaudio-utils'
335+_summary: DisplayPort audio test
336+plugin: user-interact-verify
337+flags: also-after-suspend-manual
338+estimated_duration: 30.0
339+command:
340+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
341+ audio_settings set --verbose --device=hdmi --volume=50
342+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
343+ EXIT_CODE=$?
344+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
345+ exit $EXIT_CODE
346+_purpose:
347+ Dock DisplayPort audio interface verification
348+_steps:
349+ 1. Plug an external DisplayPort device with sound to the dock (use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
350+ 2. Go to the Sound settings and make sure the correct Output is selected
351+ 3. Click the Test button
352+_verification:
353+ Did you hear the sound from the DisplayPort device?
354+
355+id: dock/hotplug-playback-hdmi
356+category_id: dock-hotplug
357+depends: dock/hot-plug
358+requires:
359+ device.category == 'AUDIO'
360+ package.name == 'alsa-base'
361+ package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
362+ package.name == 'pulseaudio-utils'
363+_summary: HDMI audio test
364+plugin: user-interact-verify
365+flags: also-after-suspend-manual
366+estimated_duration: 30.0
367+command:
368+ audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
369+ audio_settings set --verbose --device=hdmi --volume=50
370+ gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
371+ EXIT_CODE=$?
372+ audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
373+ exit $EXIT_CODE
374+_purpose:
375+ Dock HDMI audio interface verification
376+_steps:
377+ 1. Plug an external HDMI device with sound to the dock (use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
378+ 2. Go to the Sound settings and make sure the correct Output is selected
379+ 3. Click the Test button
380+_verification:
381+ Did you hear the sound from the HDMI device?
382
383 ### Network ###
384
385@@ -1234,6 +1472,41 @@ _verification:
386 Was the desktop displayed correctly on the screen connected
387 using a "USB Type-C to VGA" adapter in every mode?
388
389+id: dock/monitor-dual-head-after-suspend
390+category_id: dock-display
391+depends: suspend/suspend_advanced
392+estimated_duration: 120.0
393+_summary: Dual monitors test while docked after suspend
394+plugin: manual
395+_purpose:
396+ This test verifies that dual-monitor output works using the dock after suspend. You will need two external monitors to perform this test. Depends on the specification of the device to use 4K monitor or FHD monitor.
397+_steps:
398+ Skip this test if your video card or the dock do not support multiple monitors.
399+ 1. If your dock provides more than one monitor outputs, connect two monitors
400+ 2. Open the "Displays" tool (open the dash and search for "Displays")
401+ 3. Configure your output to provide one desktop across all the monitors
402+ 4. Open any application and drag its window from one monitor to the next.
403+_verification:
404+ Was the stretched desktop displayed correctly across all the screens?
405+
406+id: dock/monitor-triple-head-after-suspend
407+category_id: dock-display
408+depends: suspend/suspend_advanced
409+estimated_duration: 120.0
410+_summary: Tripple monitors test while docked after suspend
411+plugin: manual
412+_purpose:
413+ This test verifies that triple-monitor output works using the dock after suspend. You will need three external monitors to perform this test. Depends on the specification of the device to use 4K monitor or FHD monitor.
414+_steps:
415+ Skip this test if your video card or the dock do not support multiple monitors.
416+ 1. If your dock provides more than one monitor outputs, connect three monitors
417+ 2. Open the "Displays" tool (open the dash and search for "Displays")
418+ 3. Turn off internal monitor
419+ 4. Configure your output to provide one desktop across all the monitors
420+ 5. Open any application and drag its window from one monitor to the next.
421+_verification:
422+ Was the stretched desktop displayed correctly across all the screens?
423+
424 ### Suspend, Undocked, Resume ###
425
426 id: dock/suspend-undock-resume
427@@ -1650,52 +1923,84 @@ _verification:
428 Are all kinds of discs properly written?
429
430 plugin: user-interact
431-id: dock/thunderbolt-insert
432+id: dock/thunderbolt3-insert
433 category_id: dock
434 estimated_duration: 40.0
435 depends: dock/cold-plug
436+imports: from com.canonical.plainbox import manifest
437+requires: manifest.has_thunderbolt3 == 'True'
438+flags: also-after-suspend-manual
439 command: removable_storage_watcher insert --timeout 40 scsi
440-_summary: Thunderbolt storage insertion detection
441+_summary: Thunderbolt3 storage insertion detection
442 _purpose:
443- This test will check if the connection of a Thunderbolt HDD to the dock could be detected
444+ This test will check if the connection of a Thunderbolt3 HDD to the dock could be detected
445 _steps:
446 1. Click 'Test' to begin the test. This test will
447 timeout and fail if the insertion has not been detected within 40 seconds.
448- 2. Plug a Thunderbolt HDD into an available Thunderbolt port on the dock;
449+ 2. Plug a Thunderbolt3 HDD into an available Thunderbolt3 port on the dock;
450 if it's not mounted automatically, please click the HDD icon to mount it.
451 _verification:
452 The verification of this test is automated. Do not change the automatically
453 selected result
454
455 plugin: shell
456-id: dock/thunderbolt-storage-test
457+id: dock/thunderbolt3-storage-test
458 category_id: dock
459 estimated_duration: 45.0
460 user: root
461-depends: dock/thunderbolt-insert
462+depends: dock/thunderbolt3-insert
463+imports: from com.canonical.plainbox import manifest
464+requires: manifest.has_thunderbolt3 == 'True'
465+flags: also-after-suspend-manual
466 command: removable_storage_test -s 268400000 scsi
467-_summary: Thunderbolt storage test
468+_summary: Thunderbolt3 storage test
469 _description:
470 This is an automated test which performs read/write operations on an attached
471 Thunderbolt HDD
472
473 plugin: user-interact
474-id: dock/thunderbolt-remove
475+id: dock/thunderbolt3-remove
476 category_id: dock
477 estimated_duration: 20.0
478-depends: dock/thunderbolt-insert
479+depends: dock/thunderbolt3-insert
480+imports: from com.canonical.plainbox import manifest
481+requires: manifest.has_thunderbolt3 == 'True'
482+flags: also-after-suspend-manual
483 command: removable_storage_watcher remove scsi
484-_summary: Thunderbolt storage removal detection
485+_summary: Thunderbolt3 storage removal detection
486 _purpose:
487- This test will check the system can detect the removal of a Thunderbolt HDD
488+ This test will check the system can detect the removal of a Thunderbolt3 HDD
489 _steps:
490 1. Click 'Test' to begin the test. This test will timeout and fail if
491 the removal has not been detected within 20 seconds.
492- 2. Remove the previously attached Thunderbolt HDD from the Thunderbolt port.
493+ 2. Remove the previously attached Thunderbolt3 HDD from the Thunderbolt3 port.
494 _verification:
495 The verification of this test is automated. Do not change the automatically
496 selected result
497
498+plugin: user-interact-verify
499+category_id: dock
500+id: dock/thunderbolt3-daisy-chain
501+flags: also-after-suspend-manual
502+estimated_duration: 45.0
503+imports: from com.canonical.plainbox import manifest
504+requires: manifest.has_thunderbolt3 == 'True'
505+command: removable_storage_test -s 268400000 scsi
506+_summary: Daisy-chain testing for Thunderbolt 3 storage and display device
507+_description:
508+_purpose:
509+ This test will check if your system can support daisy-chaining of a storage
510+ and a monitor over Thunderbolt 3 port
511+ _steps:
512+ 1. Connect your Thunderbolt monitor to your systems
513+ 2. Connect and mount your Thunderbolt HDD to another Thunderbolt 3 port of the
514+ monitor (you can do this with HDD first as well)
515+ 3. Click 'Test' to perform the storage test on the Thunderbolt HDD
516+ _verification:
517+ 1. The verification for storage is automated, please select the result combine
518+ with the result for the display.
519+ 2. Was the desktop displayed correctly on the Thunderbolt-connected screen?
520+
521 ### Hot Plug after suspend ###
522
523 id: dock/hot-plug-after-suspend
524@@ -1728,6 +2033,27 @@ _description:
525 Did a notification show and was the connection correctly established?
526
527 plugin: user-interact
528+id: dock/hotplug-usb-insert-after-suspend
529+category_id: dock-hotplug
530+depends: dock/hot-plug-after-suspend
531+estimated_duration: 10.0
532+_summary: USB drive insertion after resuming
533+command: removable_storage_watcher insert usb
534+_purpose:
535+ This test will check that the system correctly detects the insertion of
536+ a USB storage device plugged on the dock after suspend
537+_steps:
538+ 1. Click "Test" and insert a USB storage device, preferably a HDD,
539+ in one of the dock's port.
540+ Although a USB pen drive may be used it might cause performance
541+ related tests to fail. (Note: this test will time-out after 20
542+ seconds.)
543+ 2. Do not unplug the device after the test.
544+_verification:
545+ The verification of this test is automated. Do not change the
546+ automatically selected result.
547+
548+plugin: user-interact
549 id: dock/hotplug-usb3-insert-after-suspend
550 category_id: dock-hotplug
551 depends: dock/hot-plug-after-suspend
552@@ -1748,6 +2074,17 @@ _verification:
553 automatically selected result.
554
555 plugin: shell
556+id: dock/hotplug-usb-storage-automated-after-suspend
557+category_id: dock-hotplug
558+depends: dock/hotplug-usb-insert-after-suspend
559+user: root
560+estimated_duration: 45.0
561+_summary: USB drive storage test after resuming
562+command: removable_storage_test -s 268400000 usb
563+_description:
564+ This test is automated and executes after the dock/usb-insert test is run.
565+
566+plugin: shell
567 id: dock/hotplug-usb3-storage-automated-after-suspend
568 category_id: dock-hotplug
569 depends: dock/hotplug-usb3-insert-after-suspend
570@@ -1759,6 +2096,23 @@ _description:
571 This test is automated and executes after the dock/usb3_insert test is run.
572
573 plugin: user-interact
574+id: dock/hotplug-usb-remove-after-suspend
575+category_id: dock-hotplug
576+depends: dock/hotplug-usb-insert-after-suspend
577+estimated_duration: 10.0
578+_summary: USB drive removal after resuming
579+command: removable_storage_watcher remove usb
580+_purpose:
581+ This test will check that the system correctly detects the removal of
582+ a USB storage device after suspend
583+_steps:
584+ 1. Click "Test" and remove the USB device from the dock.
585+ (Note: this test will time-out after 20 seconds.)
586+_verification:
587+ The verification of this test is automated. Do not change the
588+ automatically selected result.
589+
590+plugin: user-interact
591 id: dock/hotplug-usb3-remove-after-suspend
592 category_id: dock-hotplug
593 depends: dock/hotplug-usb3-insert-after-suspend
594@@ -1775,36 +2129,6 @@ _verification:
595 The verification of this test is automated. Do not change the
596 automatically selected result.
597
598-id: dock/hotplug-monitor-displayport-after-suspend
599-category_id: dock-hotplug
600-depends: dock/hot-plug-after-suspend
601-estimated_duration: 120.0
602-_summary: DisplayPort test on the dock
603-plugin: manual
604-_purpose:
605- This test will check the DisplayPort(s) on the dock after hot plugged in.
606-_steps:
607- Skip this test if the dock does not have a DisplayPort.
608- 1. Connect a display (if not already connected) to the DisplayPort on the dock
609- 2. Repeat step 1 for each additional DisplayPorts, if any
610-_verification:
611- Was the desktop displayed correctly on both screens?
612-
613-id: dock/hotplug-monitor-hdmi-after-suspend
614-category_id: dock-hotplug
615-depends: dock/hot-plug-after-suspend
616-estimated_duration: 120.0
617-_summary: HDMI port test on the dock
618-plugin: manual
619-_purpose:
620- This test will check the HDMI port(s) on the dock after hot plugged in.
621-_steps:
622- Skip this test if the dock does not have a HDMI port.
623- 1. Connect a display (if not already connected) to the HDMI port on the dock
624- 2. Repeat step 1 for each additional HDMI port, if any
625-_verification:
626- Was the desktop displayed correctly on both screens?
627-
628 ### Suspend, Undocked, Docked, Resume ###
629
630 id: dock/suspend-dock-resume
631@@ -1838,6 +2162,27 @@ _description:
632 Did a notification show and was the connection correctly established?
633
634 plugin: user-interact
635+id: dock/usb-insert-after-suspend-dock-resume
636+category_id: suspend-dock-resume
637+depends: dock/suspend-dock-resume
638+estimated_duration: 10.0
639+_summary: USB drive insertion after resuming
640+command: removable_storage_watcher insert usb
641+_purpose:
642+ This test will check that the system correctly detects the insertion of
643+ a USB storage device plugged on the dock after suspend
644+_steps:
645+ 1. Click "Test" and insert a USB storage device, preferably a HDD,
646+ in one of the dock's port.
647+ Although a USB pen drive may be used it might cause performance
648+ related tests to fail. (Note: this test will time-out after 20
649+ seconds.)
650+ 2. Do not unplug the device after the test.
651+_verification:
652+ The verification of this test is automated. Do not change the
653+ automatically selected result.
654+
655+plugin: user-interact
656 id: dock/usb3-insert-after-suspend-dock-resume
657 category_id: suspend-dock-resume
658 depends: dock/suspend-dock-resume
659@@ -1858,6 +2203,17 @@ _verification:
660 automatically selected result.
661
662 plugin: shell
663+id: dock/usb-storage-automated-after-suspend-dock-resume
664+category_id: suspend-dock-resume
665+depends: dock/usb-insert-after-suspend-dock-resume
666+user: root
667+estimated_duration: 45.0
668+_summary: USB drive storage test after resuming
669+command: removable_storage_test -s 268400000 usb
670+_description:
671+ This test is automated and executes after the dock/usb-insert test is run.
672+
673+plugin: shell
674 id: dock/usb3-storage-automated-after-suspend-dock-resume
675 category_id: suspend-dock-resume
676 depends: dock/usb3-insert-after-suspend-dock-resume
677@@ -1869,6 +2225,23 @@ _description:
678 This test is automated and executes after the dock/usb3_insert test is run.
679
680 plugin: user-interact
681+id: dock/usb-remove-after-suspend-dock-resume
682+category_id: suspend-dock-resume
683+depends: dock/usb-insert-after-suspend-dock-resume
684+estimated_duration: 10.0
685+_summary: USB drive removal after resuming
686+command: removable_storage_watcher remove usb
687+_purpose:
688+ This test will check that the system correctly detects the removal of
689+ a USB storage device after suspend
690+_steps:
691+ 1. Click "Test" and remove the USB device from the dock.
692+ (Note: this test will time-out after 20 seconds.)
693+_verification:
694+ The verification of this test is automated. Do not change the
695+ automatically selected result.
696+
697+plugin: user-interact
698 id: dock/usb3-remove-after-suspend-dock-resume
699 category_id: suspend-dock-resume
700 depends: dock/usb3-insert-after-suspend-dock-resume
701@@ -1914,3 +2287,13 @@ _steps:
702 2. Repeat step 1 for each additional HDMI port, if any
703 _verification:
704 Was the desktop displayed correctly on both screens?
705+
706+id: dock/mac-address-passthrough
707+category_id: dock
708+plugin: shell
709+user: root
710+command: mac-passthrough.py
711+_description: Check dock MAC address pass-through function, please make sure following items before running this test:
712+ 1. Pass-through mac address is flashed in BIOS
713+ 2. MAC address pass-through is enabled in BIOS settings
714+ 3. Dock is connected
715diff --git a/units/dock/test-plan.pxu b/units/dock/test-plan.pxu
716new file mode 100644
717index 0000000..7d21dfa
718--- /dev/null
719+++ b/units/dock/test-plan.pxu
720@@ -0,0 +1,255 @@
721+id: dock-cert-full
722+unit: test plan
723+_name: Dock Cert tests
724+_description:
725+ Cert tests for dock devices.
726+include:
727+nested_part:
728+ dock-cold-plug-cert
729+ dock-hot-plug
730+
731+id: after-suspend-dock-cert-full
732+unit: test plan
733+_name: Dock Cert tests after suspend
734+_description:
735+ Cert tests for dock devices.
736+include:
737+nested_part:
738+ after-suspend-dock-cert
739+ after-suspend-dock-hot-plug
740+ suspend-dock-resume-test
741+ suspend-undock-resume-test
742+
743+id: dock-cold-plug-cert
744+unit: test plan
745+_name: Dock Cold Plug Cert tests
746+_description:
747+ Cert tests for dock cold plug.
748+include:
749+ dock/cold-plug certification-status=blocker
750+ dock/power-button certification-status=blocker
751+ dock/monitor-displayport certification-status=blocker
752+ dock/audio-playback-displayport certification-status=blocker
753+ dock/monitor-dvi certification-status=blocker
754+ dock/monitor-hdmi certification-status=blocker
755+ dock/audio-playback-hdmi certification-status=blocker
756+ dock/monitor-vga certification-status=blocker
757+ dock/monitor_type-c_displayport certification-status=blocker
758+ dock/audio-playback-type-c-displayport certification-status=blocker
759+ dock/monitor_type-c_hdmi certification-status=blocker
760+ dock/audio-playback-type-c-hdmi certification-status=blocker
761+ dock/monitor_type-c_vga certification-status=blocker
762+ dock/keys-video-out certification-status=blocker
763+ dock/monitor-dual-head certification-status=blocker
764+ dock/monitor-triple-head
765+ dock/audio-alsa-info-collect
766+ dock/audio-alsa-info-attachment
767+ dock/audio-list-devices
768+ dock/audio-speaker-headphone-plug-detection certification-status=blocker
769+ dock/audio-playback-headphones certification-status=blocker
770+ dock/audio-microphone-plug-detection certification-status=blocker
771+ dock/audio-alsa-record-playback-external certification-status=blocker
772+ dock/audio-external-linein
773+ dock/audio-external-lineout
774+ dock/networking-gateway-ping certification-status=blocker
775+ dock/networking-ntp certification-status=blocker
776+ dock/mac-address-passthrough
777+ dock/usb-HID certification-status=blocker
778+ dock/usb-insert certification-status=blocker
779+ dock/usb-storage-automated certification-status=blocker
780+ dock/usb-remove certification-status=blocker
781+ dock/usb3-insert certification-status=blocker
782+ dock/usb3-storage-automated certification-status=blocker
783+ dock/usb3-remove certification-status=blocker
784+ dock/usb-c/c-to-a-adapter/insert
785+ dock/usb-c/c-to-a-adapter/storage-automated
786+ dock/usb-c/c-to-a-adapter/remove
787+ dock/usb-c/insert
788+ dock/usb-c/storage-automated
789+ dock/usb-c/remove
790+ dock/battery-charging certification-status=blocker
791+ dock/monitor-thunderbolt3
792+ dock/audio-playback-thunderbolt3
793+ dock/thunderbolt3-insert
794+ dock/thunderbolt3-storage-test
795+ dock/thunderbolt3-remove
796+ dock/thunderbolt3-daisy-chain
797+ dock/network-before-suspend certification-status=blocker
798+ dock/audio-before-suspend certification-status=blocker
799+
800+id: dock-hot-plug
801+unit: test plan
802+_name: Dock Hot Plug tests
803+_description:
804+ Tests for dock cold plug.
805+include:
806+ dock/hot-plug
807+ dock/hotplug-ethernet
808+ dock/hotplug-usb-insert
809+ dock/hotplug-usb-storage-automated
810+ dock/hotplug-usb-remove
811+ dock/hotplug-usb3-insert
812+ dock/hotplug-usb3-storage-automated
813+ dock/hotplug-usb3-remove
814+ dock/hotplug-playback-displayport
815+ dock/hotplug-playback-hdmi
816+ dock/hotplug-playback-type-c-displayport
817+ dock/hotplug-playback-thumderbolt3
818+
819+id: after-suspend-dock-cert
820+unit: test plan
821+_name: After suspend Dock Cert tests
822+_description:
823+ Cert tests for the dock after suspend.
824+include:
825+ # Do power on/off to clean up the test environment
826+ power-management/poweroff certification-status=blocker
827+ power-management/poweroff-log-attach
828+ suspend/suspend_advanced certification-status=blocker
829+ dock/power-button-after-suspend certification-status=blocker
830+ dock/networking-gateway-ping-after-suspend certification-status=blocker
831+ dock/usb-HID-after-suspend certification-status=blocker
832+ dock/usb-insert-after-suspend certification-status=blocker
833+ dock/usb-storage-automated-after-suspend certification-status=blocker
834+ dock/usb-remove-after-suspend certification-status=blocker
835+ dock/usb3-insert-after-suspend certification-status=blocker
836+ dock/usb3-storage-automated-after-suspend certification-status=blocker
837+ dock/usb3-remove-after-suspend certification-status=blocker
838+ dock/usb-c/c-to-a-adapter/insert-after-suspend
839+ dock/usb-c/c-to-a-adapter/storage-automated-after-suspend
840+ dock/usb-c/c-to-a-adapter/remove-after-suspend
841+ dock/usb-c/insert-after-suspend
842+ dock/usb-c/storage-automated-after-suspend
843+ dock/usb-c/remove-after-suspend
844+ after-suspend-manual-dock/audio-playback-headphones certification-status=blocker
845+ after-suspend-manual-dock/audio-alsa-record-playback-external certification-status=blocker
846+ dock/monitor-displayport-after-suspend certification-status=blocker
847+ after-suspend-manual-dock/audio-playback-displayport certification-status=blocker
848+ dock/monitor-dvi-after-suspend certification-status=blocker
849+ dock/monitor-hdmi-after-suspend certification-status=blocker
850+ after-suspend-manual-dock/audio-playback-hdmi certification-status=blocker
851+ dock/monitor-vga-after-suspend certification-status=blocker
852+ dock/monitor_type-c_displayport-after-suspend
853+ after-suspend-manual-dock/audio-playback-type-c-displayport
854+ dock/monitor_type-c_hdmi-after-suspend
855+ dock/monitor_type-c_vga-after-suspend
856+ after-suspend-manual-dock/thunderbolt3-insert
857+ after-suspend-manual-dock/thunderbolt3-storage-test
858+ after-suspend-manual-dock/thunderbolt3-remove
859+ after-suspend-manual-dock/thunderbolt3-daisy-chain
860+ after-suspend-manual-dock/audio-playback-thunderbolt3
861+ dock/monitor-dual-head-after-suspend certification-status=blocker
862+ dock/monitor-triple-head-after-suspend
863+
864+id: after-suspend-dock-hot-plug
865+unit: test plan
866+_name: After suspend Dock Hot-plug tests
867+_description:
868+ Tests for after suspend dock hot-plug.
869+include:
870+ dock/hot-plug-after-suspend
871+ dock/hotplug-ethernet-after-suspend
872+ dock/hotplug-usb-insert-after-suspend
873+ dock/hotplug-usb-storage-automated-after-suspend
874+ dock/hotplug-usb-remove-after-suspend
875+ dock/hotplug-usb3-insert-after-suspend
876+ dock/hotplug-usb3-storage-automated-after-suspend
877+ dock/hotplug-usb3-remove-after-suspend
878+ dock/hotplug-monitor-displayport-after-suspend
879+ dock/hotplug-monitor-hdmi-after-suspend
880+ after-suspend-manual-dock/hotplug-playback-displayport
881+ after-suspend-manual-dock/hotplug-playback-hdmi
882+ after-suspend-manual-dock/hotplug-playback-type-c-displayport
883+ after-suspend-manual-dock/hotplug-playback-thumderbolt3
884+
885+id: suspend-dock-resume-test
886+unit: test plan
887+_name: Suspend dock resume tests
888+_description:
889+ Tests for suspend dock then resume it.
890+include:
891+ dock/suspend-dock-resume
892+ dock/ethernet-after-suspend-dock-resume
893+ dock/usb-insert-after-suspend-dock-resume
894+ dock/usb-storage-automated-after-suspend-dock-resume
895+ dock/usb-remove-after-suspend-dock-resume
896+ dock/usb3-insert-after-suspend-dock-resume
897+ dock/usb3-storage-automated-after-suspend-dock-resume
898+ dock/usb3-remove-after-suspend-dock-resume
899+ dock/monitor-displayport-after-suspend-dock-resume
900+ dock/monitor-hdmi-after-suspend-dock-resume
901+
902+id: suspend-undock-resume-test
903+unit: test plan
904+_name: After suspend Dock Hot-plug Cert tests
905+_description:
906+ Test for after susepnd then undock then resume the system.
907+include:
908+ dock/suspend-undock-resume
909+
910+id: dock-cold-plug-cert-blockers
911+unit: test plan
912+_name: Dock Cold Plug Cert blocker tests
913+_description:
914+ Cert blocker tests for dock cold plug.
915+include:
916+ dock/cold-plug certification-status=blocker
917+ dock/power-button certification-status=blocker
918+ dock/monitor-displayport certification-status=blocker
919+ dock/audio-playback-displayport certification-status=blocker
920+ dock/monitor-dvi certification-status=blocker
921+ dock/monitor-hdmi certification-status=blocker
922+ dock/audio-playback-hdmi certification-status=blocker
923+ dock/monitor-vga certification-status=blocker
924+ dock/monitor_type-c_displayport certification-status=blocker
925+ dock/dock_playback_type-c_displayport certification-status=blocker
926+ dock/monitor_type-c_hdmi certification-status=blocker
927+ dock/dock_playback_type-c_hdmi certification-status=blocker
928+ dock/monitor_type-c_vga certification-status=blocker
929+ dock/keys-video-out certification-status=blocker
930+ dock/monitor-dual-head certification-status=blocker
931+ dock/audio-speaker-headphone-plug-detection certification-status=blocker
932+ dock/audio-playback-headphones certification-status=blocker
933+ dock/audio-microphone-plug-detection certification-status=blocker
934+ dock/audio-alsa-record-playback-external certification-status=blocker
935+ dock/networking-gateway-ping certification-status=blocker
936+ dock/networking-ntp certification-status=blocker
937+ dock/usb-HID certification-status=blocker
938+ dock/usb-insert certification-status=blocker
939+ dock/usb-storage-automated certification-status=blocker
940+ dock/usb-remove certification-status=blocker
941+ dock/usb3-insert certification-status=blocker
942+ dock/usb3-storage-automated certification-status=blocker
943+ dock/usb3-remove certification-status=blocker
944+ dock/battery-charging certification-status=blocker
945+ dock/network-before-suspend certification-status=blocker
946+ dock/audio-before-suspend certification-status=blocker
947+
948+id: after-suspend-dock-cert-blockers
949+unit: test plan
950+_name: After suspend Dock Cert blocker tests
951+_description:
952+ Cert blocker tests for the dock after suspend.
953+include:
954+ # Do power on/off to clean up the test environment
955+ power-management/poweroff certification-status=blocker
956+ power-management/poweroff-log-attach
957+ suspend/suspend_advanced certification-status=blocker
958+ dock/power-button-after-suspend certification-status=blocker
959+ dock/networking-gateway-ping-after-suspend certification-status=blocker
960+ after-suspend-manual-dock/audio-playback-headphones certification-status=blocker
961+ after-suspend-manual-dock/audio-alsa-record-playback-external certification-status=blocker
962+ dock/usb-HID-after-suspend certification-status=blocker
963+ dock/usb-insert-after-suspend certification-status=blocker
964+ dock/usb-storage-automated-after-suspend certification-status=blocker
965+ dock/usb-remove-after-suspend certification-status=blocker
966+ dock/usb3-insert-after-suspend certification-status=blocker
967+ dock/usb3-storage-automated-after-suspend certification-status=blocker
968+ dock/usb3-remove-after-suspend certification-status=blocker
969+ dock/monitor-displayport-after-suspend certification-status=blocker
970+ after-suspend-manual-dock/audio-playback-displayport certification-status=blocker
971+ dock/monitor-dvi-after-suspend certification-status=blocker
972+ dock/monitor-hdmi-after-suspend certification-status=blocker
973+ after-suspend-manual-dock/audio-playback-hdmi certification-status=blocker
974+ dock/monitor-vga-after-suspend certification-status=blocker
975+ dock/monitor-dual-head-after-suspend certification-status=blocker

Subscribers

People subscribed via source and target branches