~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to providers/plainbox-provider-checkbox/jobs/audio.txt.in

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-29 07:50:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2153.
  • Revision ID: zygmunt.krynicki@canonical.com-20130529075030-ngwz245hs2u3y6us
checkbox: move current checkbox code into checkbox-old

This patch cleans up the top-level directory of the project into dedicated
sub-project directories. One for checkbox-old (the current checkbox and all the
associated stuff), one for plainbox and another for checkbox-ng.

There are some associated changes, such as updating the 'source' mode of
checkbox provider in plainbox, and fixing paths in various test scripts that we
have.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
plugin: shell
2
 
category_id: 2013.com.canonical.plainbox::audio
3
 
id: audio/list_devices
4
 
estimated_duration: 1.0
5
 
requires:
6
 
 device.category == 'AUDIO'
7
 
 package.name == 'alsa-base'
8
 
command: cat /proc/asound/cards
9
 
_description: Test to detect audio devices
10
 
 
11
 
plugin: user-interact-verify
12
 
category_id: 2013.com.canonical.plainbox::audio
13
 
id: audio/playback_auto
14
 
estimated_duration: 5.0
15
 
depends: audio/list_devices
16
 
requires:
17
 
 device.category == 'AUDIO'
18
 
 package.name == 'alsa-base'
19
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
20
 
 package.name == 'pulseaudio-utils'
21
 
command:
22
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
23
 
  audio_settings set --device=pci --volume=50
24
 
  gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
25
 
  EXIT_CODE=$?
26
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
27
 
  exit $EXIT_CODE
28
 
_description:
29
 
 PURPOSE:
30
 
     This test will check that internal speakers work correctly
31
 
 STEPS:
32
 
     1. Make sure that no external speakers or headphones are connected
33
 
        When testing a desktop, you can skip this test if there is no
34
 
        internal speaker, we will test the external output later
35
 
     2. Commence the test to play a brief tone on your audio device
36
 
 VERIFICATION:
37
 
     Did you hear a tone?
38
 
 
39
 
unit: template
40
 
template-resource: graphics_card
41
 
plugin: user-interact-verify
42
 
category_id: 2013.com.canonical.plainbox::audio
43
 
id: audio/{index}_playback_hdmi_{product_slug}
44
 
estimated_duration: 30.0
45
 
requires:
46
 
 display.hdmi == 'supported'
47
 
 device.category == 'AUDIO'
48
 
 package.name == 'alsa-base'
49
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
50
 
 package.name == 'pulseaudio-utils'
51
 
command:
52
 
 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
53
 
 audio_settings set --verbose --device=hdmi --volume=50
54
 
 gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
55
 
 EXIT_CODE=$?
56
 
 audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
57
 
 exit $EXIT_CODE
58
 
_purpose:
59
 
    HDMI audio interface verification
60
 
_steps:
61
 
    1. Plug an external HDMI device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
62
 
    2. Commence the test
63
 
_verification:
64
 
    Did you hear the sound from the HDMI device?
65
 
 
66
 
unit: template
67
 
template-resource: graphics_card
68
 
plugin: user-interact-verify
69
 
category_id: 2013.com.canonical.plainbox::audio
70
 
id: audio/{index}_playback_displayport_{product_slug}
71
 
estimated_duration: 30.0
72
 
requires:
73
 
 display.dp == 'supported'
74
 
 device.category == 'AUDIO'
75
 
 package.name == 'alsa-base'
76
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
77
 
 package.name == 'pulseaudio-utils'
78
 
command:
79
 
 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
80
 
 audio_settings set --verbose --device=hdmi --volume=50
81
 
 gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
82
 
 EXIT_CODE=$?
83
 
 audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
84
 
 exit $EXIT_CODE
85
 
_purpose:
86
 
    DisplayPort audio interface verification
87
 
_steps:
88
 
    1. Plug an external DisplayPort device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
89
 
    2. Commence the test
90
 
_verification:
91
 
    Did you hear the sound from the DisplayPort device?
92
 
 
93
 
unit: template
94
 
template-resource: graphics_card
95
 
plugin: user-interact-verify
96
 
category_id: 2013.com.canonical.plainbox::audio
97
 
id: audio/{index}_playback_thunderbolt_{product_slug}
98
 
imports: from 2013.com.canonical.plainbox import manifest
99
 
estimated_duration: 30.0
100
 
requires:
101
 
 manifest.has_thunderbolt == 'True'
102
 
 device.category == 'AUDIO'
103
 
 package.name == 'alsa-base'
104
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
105
 
 package.name == 'pulseaudio-utils'
106
 
command:
107
 
 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
108
 
 audio_settings set --verbose --device=hdmi --volume=50
109
 
 gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
110
 
 EXIT_CODE=$?
111
 
 audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
112
 
 exit $EXIT_CODE
113
 
_purpose:
114
 
    Thunderbolt audio interface verification
115
 
_steps:
116
 
    1. Plug an external Thunderbolt device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
117
 
    2. Commence the test
118
 
_verification:
119
 
    Did you hear the sound from the Thunderbolt device?
120
 
 
121
 
unit: template
122
 
template-resource: graphics_card
123
 
plugin: user-interact-verify
124
 
category_id: 2013.com.canonical.plainbox::audio
125
 
id: audio/{index}_playback_thunderbolt3_{product_slug}
126
 
imports: from 2013.com.canonical.plainbox import manifest
127
 
estimated_duration: 30.0
128
 
requires:
129
 
 manifest.has_thunderbolt3 == 'True'
130
 
 device.category == 'AUDIO'
131
 
 package.name == 'alsa-base'
132
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
133
 
 package.name == 'pulseaudio-utils'
134
 
command:
135
 
 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
136
 
 audio_settings set --verbose --device=hdmi --volume=50
137
 
 gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
138
 
 EXIT_CODE=$?
139
 
 audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
140
 
 exit $EXIT_CODE
141
 
_purpose:
142
 
    Thunderbolt audio interface verification
143
 
_steps:
144
 
    1. Plug an external Thunderbolt device with sound (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
145
 
    2. Commence the test
146
 
_verification:
147
 
    Did you hear the sound from the Thunderbolt device?
148
 
 
149
 
unit: template
150
 
template-resource: graphics_card
151
 
plugin: user-interact-verify
152
 
category_id: 2013.com.canonical.plainbox::audio
153
 
id: audio/{index}_playback_type-c_displayport_{product_slug}
154
 
imports: from 2013.com.canonical.plainbox import manifest
155
 
estimated_duration: 30.0
156
 
requires:
157
 
 manifest.has_usb_type_c
158
 
 display.dp == 'supported'
159
 
 device.category == 'AUDIO'
160
 
 package.name == 'alsa-base'
161
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
162
 
 package.name == 'pulseaudio-utils'
163
 
command:
164
 
 audio_settings store --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
165
 
 audio_settings set --verbose --device=hdmi --volume=50
166
 
 gst_pipeline_test -t 2 --device hdmi 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
167
 
 EXIT_CODE=$?
168
 
 audio_settings restore --verbose --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
169
 
 exit $EXIT_CODE
170
 
_purpose:
171
 
    DisplayPort audio via USB Type-C port interface verification
172
 
_steps:
173
 
    1. Plug an external DisplayPort device with sound on a USB Type-C port using a "USB Typce-C to DisplayPort" adapter (Use only one HDMI/DisplayPort/Thunderbolt interface at a time for this test)
174
 
    2. Commence the test
175
 
_verification:
176
 
    Did you hear the sound from the DisplayPort device?
177
 
 
178
 
plugin: user-interact-verify
179
 
category_id: 2013.com.canonical.plainbox::audio
180
 
id: audio/playback_headphones
181
 
estimated_duration: 20.0
182
 
depends: audio/list_devices
183
 
requires:
184
 
 device.category == 'AUDIO'
185
 
 package.name == 'alsa-base'
186
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
187
 
 package.name == 'pulseaudio-utils'
188
 
command:
189
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
190
 
  audio_settings set --device=pci --volume=50
191
 
  gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
192
 
  EXIT_CODE=$?
193
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
194
 
  exit $EXIT_CODE
195
 
_description:
196
 
 PURPOSE:
197
 
     This test will check that headphones connector works correctly
198
 
 STEPS:
199
 
     1. Connect a pair of headphones to your audio device
200
 
     2. Commence the test to play a sound to your audio device
201
 
 VERIFICATION:
202
 
     Did you hear a sound through the headphones and did the sound play without any distortion, clicks or other strange noises from your headphones?
203
 
 
204
 
plugin: user-interact-verify
205
 
category_id: 2013.com.canonical.plainbox::audio
206
 
id: audio/alsa_record_playback_internal
207
 
estimated_duration: 20.0
208
 
depends: audio/playback_auto
209
 
requires:
210
 
 device.category == 'AUDIO'
211
 
 package.name == 'alsa-base'
212
 
 package.name == 'pulseaudio-utils'
213
 
 package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
214
 
command:
215
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
216
 
  audio_settings set --device=pci --volume=50
217
 
  alsa_record_playback
218
 
  EXIT_CODE=$?
219
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
220
 
  exit $EXIT_CODE
221
 
_description:
222
 
 PURPOSE:
223
 
     This test will check that recording sound using the onboard microphone works correctly
224
 
 STEPS:
225
 
     1. Disconnect any external microphones that you have plugged in
226
 
     2. Click "Test", then speak into your internal microphone
227
 
     3. After a few seconds, your speech will be played back to you.
228
 
 VERIFICATION:
229
 
     Did you hear your speech played back?
230
 
 
231
 
plugin: user-interact-verify
232
 
category_id: 2013.com.canonical.plainbox::audio
233
 
id: audio/alsa_record_playback_external
234
 
estimated_duration: 20.0
235
 
depends: audio/playback_headphones
236
 
requires:
237
 
 device.category == 'AUDIO'
238
 
 package.name == 'alsa-base'
239
 
 package.name == 'pulseaudio-utils'
240
 
 package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
241
 
command:
242
 
 audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
243
 
 audio_settings set --device=pci --volume=50
244
 
 alsa_record_playback
245
 
 EXIT_CODE=$?
246
 
 audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
247
 
 exit $EXIT_CODE
248
 
_description:
249
 
 PURPOSE:
250
 
     This test will check that recording sound using an external microphone works correctly
251
 
 STEPS:
252
 
     1. Connect a microphone to your microphone port
253
 
     2. Click "Test", then speak into the external microphone
254
 
     3. After a few seconds, your speech will be played back to you
255
 
 VERIFICATION:
256
 
     Did you hear your speech played back?
257
 
 
258
 
plugin: user-interact-verify
259
 
category_id: 2013.com.canonical.plainbox::audio
260
 
id: audio/alsa_record_playback_usb
261
 
estimated_duration: 120.0
262
 
requires:
263
 
 device.category == 'AUDIO'
264
 
 package.name == 'alsa-base'
265
 
 package.name == 'pulseaudio-utils'
266
 
 package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
267
 
command:
268
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
269
 
  audio_settings set --device=usb --volume=50
270
 
  alsa_record_playback
271
 
  EXIT_CODE=$?
272
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
273
 
  exit $EXIT_CODE
274
 
_description:
275
 
 PURPOSE:
276
 
     This test will check that a USB audio device works correctly
277
 
 STEPS:
278
 
     1. Connect a USB audio device to your system
279
 
     2. Click "Test", then speak into the microphone
280
 
     3. After a few seconds, your speech will be played back to you
281
 
 VERIFICATION:
282
 
     Did you hear your speech played back through the USB headphones?
283
 
 
284
 
plugin: shell
285
 
category_id: 2013.com.canonical.plainbox::audio
286
 
id: audio/alsa_record_playback_automated
287
 
estimated_duration: 10.0
288
 
requires:
289
 
 package.name == 'python3-gi'
290
 
 package.name == 'gir1.2-gstreamer-1.0'
291
 
 package.name == 'libgstreamer1.0-0'
292
 
 package.name == 'gstreamer1.0-plugins-good'
293
 
 package.name == 'gstreamer1.0-pulseaudio'
294
 
 package.name == 'alsa-base'
295
 
 device.category == 'AUDIO'
296
 
command: audio_test
297
 
_description:
298
 
 Play back a sound on the default output and listen for it on the
299
 
 default input.
300
 
 
301
 
plugin: shell
302
 
category_id: 2013.com.canonical.plainbox::audio
303
 
id: audio/alsa_info_collect
304
 
estimated_duration: 2.0
305
 
command: alsa_info --no-dialog --no-upload --output ${PLAINBOX_SESSION_SHARE}/alsa_info.log
306
 
_description:
307
 
 Collect audio-related system information. This data can be used to
308
 
 simulate this computer's audio subsystem and perform more detailed tests
309
 
 under a controlled environment.
310
 
 
311
 
plugin: attachment
312
 
category_id: 2013.com.canonical.plainbox::audio
313
 
id: audio/alsa_info_attachment
314
 
depends: audio/alsa_info_collect
315
 
estimated_duration: 1.0
316
 
command: [ -e ${PLAINBOX_SESSION_SHARE}/alsa_info.log ] && cat ${PLAINBOX_SESSION_SHARE}/alsa_info.log
317
 
_description:
318
 
 Attaches the audio hardware data collection log to the results.
319
 
 
320
 
plugin: user-interact-verify
321
 
category_id: 2013.com.canonical.plainbox::audio
322
 
id: audio/channels
323
 
estimated_duration:  20.0
324
 
command: speaker-test -c 2 -l 1 -t wav
325
 
_description:
326
 
 PURPOSE:
327
 
     Check that the various audio channels are working properly
328
 
 STEPS:
329
 
     1. Commence the test
330
 
 VERIFICATION:
331
 
     You should clearly hear a voice from the different audio channels
332
 
 
333
 
plugin: shell
334
 
category_id: 2013.com.canonical.plainbox::audio
335
 
id: audio/check_volume
336
 
estimated_duration: 1.0
337
 
requires:
338
 
 package.name == 'pulseaudio-utils'
339
 
 device.category == 'AUDIO'
340
 
command: volume_test --minvol 1 --maxvol 100
341
 
_description:
342
 
 This test will verify that the volume levels are at an acceptable level on
343
 
 your local system.  The test will validate that the volume is greater than
344
 
 or equal to minvol and less than or equal to maxvol for all sources (inputs)
345
 
 and sinks (outputs) recognized by PulseAudio.  It will also validate that the
346
 
 active source and sink are not muted.  You should not manually adjust the
347
 
 volume or mute before running this test.
348
 
 
349
 
plugin: manual
350
 
category_id: 2013.com.canonical.plainbox::audio
351
 
id: audio/external-lineout
352
 
estimated_duration: 30.0
353
 
_description:
354
 
 PURPOSE:
355
 
      Check that external line out connection works correctly
356
 
 STEPS:
357
 
      1. Insert cable to speakers (with built-in amplifiers) on the line out port
358
 
      2. Open system sound preferences, 'Output' tab, select 'Line-out' on the connector list. Commence the test
359
 
      3. On the system sound preferences, select 'Internal Audio' on the device list and click 'Test Speakers' to check left and right channel
360
 
 VERIFICATION:
361
 
      1. Do you hear a sound in the speakers? The internal speakers should *not* be muted automatically
362
 
      2. Do you hear the sound coming out on the corresponding channel?
363
 
 
364
 
plugin: user-interact-verify
365
 
category_id: 2013.com.canonical.plainbox::audio
366
 
id: audio/external-linein
367
 
estimated_duration: 120.0
368
 
requires:
369
 
 device.category == 'AUDIO'
370
 
 package.name == 'alsa-base'
371
 
 package.name == 'pulseaudio-utils'
372
 
 package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
373
 
command:
374
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
375
 
  audio_settings set --device=pci --volume=50
376
 
  alsa_record_playback
377
 
  EXIT_CODE=$?
378
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
379
 
  exit $EXIT_CODE
380
 
_description:
381
 
 PURPOSE:
382
 
     Check that external line in connection works correctly
383
 
 STEPS:
384
 
     1. Use a cable to connect the line in port to an external line out source.
385
 
     2. Open system sound preferences, 'Input' tab, select 'Line-in' on the connector list. Commence the test
386
 
     3. After a few seconds, your recording will be played back to you.
387
 
 VERIFICATION:
388
 
     Did you hear your recording?
389
 
 
390
 
plugin: user-interact
391
 
category_id: 2013.com.canonical.plainbox::audio
392
 
id: audio/speaker-headphone-plug-detection
393
 
estimated_duration: 60.0
394
 
requires:
395
 
 device.category == 'AUDIO'
396
 
 package.name == 'pulseaudio-utils'
397
 
command: pulse-active-port-change sinks
398
 
_description:
399
 
 PURPOSE:
400
 
     Check that system detects speakers or headphones being plugged in
401
 
 STEPS:
402
 
     1. Prepare a pair of headphones or speakers with a standard 3.5mm jack
403
 
     2. Locate the speaker / headphone jack on the device under test
404
 
     3. Run the test (you have 30 seconds from now on)
405
 
     4. Plug headphones or speakers into the appropriate jack
406
 
     5. Unplug the device for subsequent tests.
407
 
 VERIFICATION:
408
 
     Verification is automatic, no action is required.
409
 
     The test times out after 30 seconds (and fails in that case).
410
 
 
411
 
plugin: user-interact
412
 
category_id: 2013.com.canonical.plainbox::audio
413
 
id: audio/microphone-plug-detection
414
 
estimated_duration: 60.0
415
 
requires:
416
 
 device.category == 'AUDIO'
417
 
 package.name == 'pulseaudio-utils'
418
 
command: pulse-active-port-change sources
419
 
_description:
420
 
 PURPOSE:
421
 
     Check that system detects a microphone being plugged in
422
 
 STEPS:
423
 
     1. Prepare a microphone with a standard 3.5mm jack
424
 
     2. Locate the microphone jack on the device under test.
425
 
        Keep in mind that it may be shared with the headphone jack.
426
 
     3. Run the test (you have 30 seconds from now on)
427
 
     4. Plug the microphone into the appropriate jack
428
 
     5. Unplug the device for subsequent tests.
429
 
 VERIFICATION:
430
 
     Verification is automatic, no action is required.
431
 
     The test times out after 30 seconds (and fails in that case).
432
 
 
433
 
plugin: user-interact-verify
434
 
category_id: 2013.com.canonical.plainbox::audio
435
 
id: audio/balance_internal_speaker
436
 
estimated_duration: 20.0
437
 
depends: audio/playback_auto
438
 
requires:
439
 
 device.category == 'AUDIO'
440
 
 package.name == 'alsa-base'
441
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
442
 
 package.name == 'pulseaudio-utils'
443
 
command:
444
 
    audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
445
 
    audio_settings set --device=pci --volume=50
446
 
    gst_pipeline_test -t 10 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
447
 
    EXIT_CODE=$?
448
 
    audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
449
 
    exit $EXIT_CODE
450
 
_description:
451
 
 PURPOSE:
452
 
     Check that balance control works correctly on internal speakers
453
 
 STEPS:
454
 
     1. Check that moving the balance slider from left to right works smoothly
455
 
     2. Commence the test to play an audio tone for 10 seconds.
456
 
     3. Move the balance slider from left to right and back.
457
 
     4. Check that actual speaker audio balance follows your setting.
458
 
 VERIFICATION:
459
 
     Does the slider move smoothly, as well as being followed by the setting by the actual audio output?
460
 
 
461
 
plugin: user-interact-verify
462
 
category_id: 2013.com.canonical.plainbox::audio
463
 
id: audio/balance_headphones
464
 
depends: audio/playback_headphones
465
 
estimated_duration: 30.0
466
 
requires:
467
 
 device.category == 'AUDIO'
468
 
 package.name == 'alsa-base'
469
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
470
 
 package.name == 'pulseaudio-utils'
471
 
command:
472
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
473
 
  audio_settings set --device=pci --volume=50
474
 
  gst_pipeline_test -t 10 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
475
 
  EXIT_CODE=$?
476
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
477
 
  exit $EXIT_CODE
478
 
_description:
479
 
 PURPOSE:
480
 
     Check that balance control works correctly on external headphone
481
 
 STEPS:
482
 
     1. Check that moving the balance slider from left to right works smoothly
483
 
     2. Commence the test to play an audio tone for 10 seconds.
484
 
     3. Move the balance slider from left to right and back.
485
 
     4. Check that actual headphone audio balance follows your setting.
486
 
 VERIFICATION:
487
 
     Does the slider move smoothly, as well as being followed by the setting by the actual audio output?
488
 
 
489
 
plugin: shell
490
 
category_id: 2013.com.canonical.plainbox::audio
491
 
id: audio/list_devices_after_suspend_30_cycles
492
 
estimated_duration: 1.0
493
 
depends: power-management/suspend_30_cycles
494
 
requires:
495
 
 device.category == 'AUDIO'
496
 
 package.name == 'alsa-base'
497
 
command: cat /proc/asound/cards
498
 
_description: Test to detect audio devices after suspending 30 times.
499
 
 
500
 
plugin: user-interact-verify
501
 
category_id: 2013.com.canonical.plainbox::audio
502
 
id: audio/playback_auto_after_suspend_30_cycles
503
 
estimated_duration: 5.0
504
 
depends: audio/list_devices power-management/suspend_30_cycles
505
 
requires:
506
 
 device.category == 'AUDIO'
507
 
 package.name == 'alsa-base'
508
 
 package.name == 'gir1.2-gst-plugins-base-0.10' or package.name == 'gir1.2-gst-plugins-base-1.0'
509
 
 package.name == 'pulseaudio-utils'
510
 
command:
511
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
512
 
  audio_settings set --device=pci --volume=50
513
 
  gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'
514
 
  EXIT_CODE=$?
515
 
  audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings
516
 
  exit $EXIT_CODE
517
 
_description:
518
 
 PURPOSE:
519
 
     This test will check that internal speakers work correctly after suspending 30 times.
520
 
 STEPS:
521
 
     1. Make sure that no external speakers or headphones are connected
522
 
        When testing a desktop, you can skip this test if there is no
523
 
        internal speaker, we will test the external output later
524
 
     2. Commence the test to play a brief tone on your audio device
525
 
 VERIFICATION:
526
 
     Did you hear a tone?
527
 
 
528
 
plugin: shell
529
 
category_id: 2013.com.canonical.plainbox::audio
530
 
id: audio/alsa_record_playback_automated_after_suspend_30_cycles
531
 
estimated_duration: 10.0
532
 
depends: power-management/suspend_30_cycles
533
 
requires:
534
 
 package.name == 'python3-gi'
535
 
 package.name == 'gir1.2-gstreamer-1.0'
536
 
 package.name == 'libgstreamer1.0-0'
537
 
 package.name == 'gstreamer1.0-plugins-good'
538
 
 package.name == 'gstreamer1.0-pulseaudio'
539
 
 package.name == 'alsa-base'
540
 
 device.category == 'AUDIO'
541
 
command: audio_test
542
 
_description:
543
 
 Play back a sound on the default output and listen for it on the
544
 
 default input, after suspending 30 times.
545
 
 
546
 
plugin: shell
547
 
category_id: 2013.com.canonical.plainbox::audio
548
 
id: audio/check_volume_after_suspend_30_cycles
549
 
estimated_duration: 1.0
550
 
depends: power-management/suspend_30_cycles
551
 
requires:
552
 
 package.name == 'pulseaudio-utils'
553
 
 device.category == 'AUDIO'
554
 
command: volume_test --minvol 1 --maxvol 100
555
 
_description:
556
 
 This test will verify that the volume levels are at an acceptable level on
557
 
 your local system.  The test will validate that the volume is greater than
558
 
 or equal to minvol and less than or equal to maxvol for all sources (inputs)
559
 
 and sinks (outputs) recognized by PulseAudio.  It will also validate that the
560
 
 active source and sink are not muted.  You should not manually adjust the
561
 
 volume or mute before running this test.
562
 
 
563
 
plugin: shell
564
 
category_id: 2013.com.canonical.plainbox::audio
565
 
id: audio/audio_after_suspend_30_cycles
566
 
estimated_duration: 1.0
567
 
depends: power-management/suspend_30_cycles
568
 
requires:
569
 
 device.category == 'AUDIO'
570
 
 package.name == 'alsa-base'
571
 
_description: Record mixer settings after suspending 30 times.
572
 
command:
573
 
  audio_settings store --file=$PLAINBOX_SESSION_SHARE/audio_settings_after_suspend_30_cycles
574
 
  diff $PLAINBOX_SESSION_SHARE/audio_settings_before_suspend $PLAINBOX_SESSION_SHARE/audio_settings_after_suspend_30_cycles
575