/usr/share/2013.com.canonical.certification:checkbox/jobs/audio.txt.in is in plainbox-provider-checkbox 0.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | plugin: shell
id: audio/list_devices
estimated_duration: 1.0
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
command: cat /proc/asound/cards
_description: Test to detect audio devices
plugin: user-interact-verify
id: audio/playback_auto
estimated_duration: 5.0
depends: audio/list_devices
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'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
This test will check that internal speakers work correctly
STEPS:
1. Make sure that no external speakers or headphones are connected
If testing a desktop, external speakers are allowed
2. Click the Test button to play a brief tone on your audio device
VERIFICATION:
Did you hear a tone?
plugin: user-interact-verify
id: audio/playback_hdmi
estimated_duration: 30.0
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'
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:
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)
2. Click the Test button
VERIFICATION:
Did you hear the sound from the HDMI device?
plugin: user-interact-verify
id: audio/playback_displayport
estimated_duration: 30.0
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'
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:
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)
2. Click the Test button
VERIFICATION:
Did you hear the sound from the DisplayPort device?
plugin: user-interact-verify
id: audio/playback_headphones
estimated_duration: 20.0
depends: audio/list_devices
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'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
This test will check that headphones connector works correctly
STEPS:
1. Connect a pair of headphones to your audio device
2. Click the Test button to play a sound to your audio device
VERIFICATION:
Did you hear a sound through the headphones and did the sound play without any distortion, clicks or other strange noises from your headphones?
plugin: user-interact-verify
id: audio/alsa_record_playback_internal
estimated_duration: 20.0
depends: audio/playback_auto
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; alsa_record_playback; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
This test will check that recording sound using the onboard microphone works correctly
STEPS:
1. Disconnect any external microphones that you have plugged in
2. Click "Test", then speak into your internal microphone
3. After a few seconds, your speech will be played back to you.
VERIFICATION:
Did you hear your speech played back?
plugin: user-interact-verify
id: audio/alsa_record_playback_external
estimated_duration: 20.0
depends: audio/playback_headphones
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; alsa_record_playback; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
This test will check that recording sound using an external microphone works correctly
STEPS:
1. Connect a microphone to your microphone port
2. Click "Test", then speak into the external microphone
3. After a few seconds, your speech will be played back to you
VERIFICATION:
Did you hear your speech played back?
plugin: user-interact-verify
id: audio/alsa_record_playback_usb
estimated_duration: 120.0
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=usb --volume=50; alsa_record_playback; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
This test will check that a USB audio device works correctly
STEPS:
1. Connect a USB audio device to your system
2. Click "Test", then speak into the microphone
3. After a few seconds, your speech will be played back to you
VERIFICATION:
Did you hear your speech played back through the USB headphones?
plugin: shell
id: audio/alsa_record_playback_automated
estimated_duration: 10.0
requires:
package.name == 'python3-gi'
package.name == 'gir1.2-gstreamer-1.0'
package.name == 'libgstreamer1.0-0'
package.name == 'gstreamer1.0-plugins-good'
package.name == 'gstreamer1.0-pulseaudio'
package.name == 'alsa-base'
device.category == 'AUDIO'
command: audio_test
_description:
Play back a sound on the default output and listen for it on the
default input.
plugin: shell
id: audio/alsa_info_collect
estimated_duration: 2.0
command: alsa_info --no-dialog --no-upload --output ${PLAINBOX_SESSION_SHARE}/alsa_info.log
_description:
Collect audio-related system information. This data can be used to
simulate this computer's audio subsystem and perform more detailed tests
under a controlled environment.
plugin: attachment
id: audio/alsa_info_attachment
depends: audio/alsa_info_collect
estimated_duration: 1.0
command: [ -e ${PLAINBOX_SESSION_SHARE}/alsa_info.log ] && cat ${PLAINBOX_SESSION_SHARE}/alsa_info.log
_description:
Attaches the audio hardware data collection log to the results.
plugin: user-interact-verify
id: audio/channels
estimated_duration: 20.0
command: speaker-test -c 2 -l 1 -t wav
_description:
PURPOSE:
Check that the various audio channels are working properly
STEPS:
1. Click the Test button
VERIFICATION:
You should clearly hear a voice from the different audio channels
plugin: shell
id: audio/check_volume
estimated_duration: 1.0
requires:
package.name == 'pulseaudio-utils'
device.category == 'AUDIO'
command: volume_test --minvol 1 --maxvol 100
_description:
This test will verify that the volume levels are at an acceptable level on
your local system. The test will validate that the volume is greater than
or equal to minvol and less than or equal to maxvol for all sources (inputs)
and sinks (outputs) recognized by PulseAudio. It will also validate that the
active source and sink are not muted. You should not manually adjust the
volume or mute before running this test.
plugin: manual
id: audio/external-lineout
estimated_duration: 30.0
_description:
PURPOSE:
Check that external line out connection works correctly
STEPS:
1. Insert cable to speakers (with built-in amplifiers) on the line out port
2. Open system sound preferences, 'Output' tab, select 'Line-out' on the connector list. Click the Test button
3. On the system sound preferences, select 'Internal Audio' on the device list and click 'Test Speakers' to check left and right channel
VERIFICATION:
1. Do you hear a sound in the speakers? The internal speakers should *not* be muted automatically
2. Do you hear the sound coming out on the corresponding channel?
plugin: user-interact-verify
id: audio/external-linein
estimated_duration: 120.0
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
package.name == 'pulseaudio-utils'
package.name == 'gstreamer1.0-plugins-good' or package.name == 'gstreamer0.10-plugins-good'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; alsa_record_playback; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
Check that external line in connection works correctly
STEPS:
1. Use a cable to connect the line in port to an external line out source.
2. Open system sound preferences, 'Input' tab, select 'Line-in' on the connector list. Click the Test button
3. After a few seconds, your recording will be played back to you.
VERIFICATION:
Did you hear your recording?
plugin: user-interact
id: audio/speaker-headphone-plug-detection
estimated_duration: 60.0
requires:
device.category == 'AUDIO'
package.name == 'pulseaudio-utils'
command: pulse-active-port-change sinks
_description:
PURPOSE:
Check that system detects speakers or headphones being plugged in
STEPS:
1. Prepare a pair of headphones or speakers with a standard 3.5mm jack
2. Locate the speaker / headphone jack on the device under test
3. Run the test (you have 30 seconds from now on)
4. Plug headphones or speakers into the appropriate jack
5. Unplug the device for subsequent tests.
VERIFICATION:
Verification is automatic, no action is required.
The test times out after 30 seconds (and fails in that case).
plugin: user-interact
id: audio/microphone-plug-detection
estimated_duration: 60.0
requires:
device.category == 'AUDIO'
package.name == 'pulseaudio-utils'
command: pulse-active-port-change sources
_description:
PURPOSE:
Check that system detects a microphone being plugged in
STEPS:
1. Prepare a microphone with a standard 3.5mm jack
2. Locate the microphone jack on the device under test.
Keep in mind that it may be shared with the headphone jack.
3. Run the test (you have 30 seconds from now on)
4. Plug the microphone into the appropriate jack
5. Unplug the device for subsequent tests.
VERIFICATION:
Verification is automatic, no action is required.
The test times out after 30 seconds (and fails in that case).
plugin: user-interact-verify
id: audio/balance_internal_speaker
estimated_duration: 20.0
depends: audio/playback_auto
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'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 10 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
Check that balance control works correctly on internal speakers
STEPS:
1. Check that moving the balance slider from left to right works smoothly
2. Click the Test button to play an audio tone for 10 seconds.
3. Move the balance slider from left to right and back.
4. Check that actual speaker audio balance follows your setting.
VERIFICATION:
Does the slider move smoothly, as well as being followed by the setting by the actual audio output?
plugin: user-interact-verify
id: audio/balance_headphones
depends: audio/playback_headphones
estimated_duration: 30.0
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'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 10 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
Check that balance control works correctly on external headphone
STEPS:
1. Check that moving the balance slider from left to right works smoothly
2. Click the Test button to play an audio tone for 10 seconds.
3. Move the balance slider from left to right and back.
4. Check that actual headphone audio balance follows your setting.
VERIFICATION:
Does the slider move smoothly, as well as being followed by the setting by the actual audio output?
plugin: shell
id: audio/list_devices_after_suspend_30_cycles
estimated_duration: 1.0
depends: power-management/suspend_30_cycles
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
command: cat /proc/asound/cards
_description: Test to detect audio devices after suspending 30 times.
plugin: user-interact-verify
id: audio/playback_auto_after_suspend_30_cycles
estimated_duration: 5.0
depends: audio/list_devices power-management/suspend_30_cycles
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'
command: audio_settings store --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; EXIT_CODE=$?; audio_settings restore --file=$PLAINBOX_SESSION_SHARE/pulseaudio_settings; exit $EXIT_CODE
_description:
PURPOSE:
This test will check that internal speakers work correctly after suspending 30 times.
STEPS:
1. Make sure that no external speakers or headphones are connected
If testing a desktop, external speakers are allowed
2. Click the Test button to play a brief tone on your audio device
VERIFICATION:
Did you hear a tone?
plugin: shell
id: audio/alsa_record_playback_automated_after_suspend_30_cycles
estimated_duration: 10.0
depends: power-management/suspend_30_cycles
requires:
package.name == 'python3-gi'
package.name == 'gir1.2-gstreamer-1.0'
package.name == 'libgstreamer1.0-0'
package.name == 'gstreamer1.0-plugins-good'
package.name == 'gstreamer1.0-pulseaudio'
package.name == 'alsa-base'
device.category == 'AUDIO'
command: audio_test
_description:
Play back a sound on the default output and listen for it on the
default input, after suspending 30 times.
plugin: shell
id: audio/check_volume_after_suspend_30_cycles
estimated_duration: 1.0
depends: power-management/suspend_30_cycles
requires:
package.name == 'pulseaudio-utils'
device.category == 'AUDIO'
command: volume_test --minvol 1 --maxvol 100
_description:
This test will verify that the volume levels are at an acceptable level on
your local system. The test will validate that the volume is greater than
or equal to minvol and less than or equal to maxvol for all sources (inputs)
and sinks (outputs) recognized by PulseAudio. It will also validate that the
active source and sink are not muted. You should not manually adjust the
volume or mute before running this test.
plugin: shell
id: audio/audio_after_suspend_30_cycles
estimated_duration: 1.0
depends: power-management/suspend_30_cycles
requires:
device.category == 'AUDIO'
package.name == 'alsa-base'
_description: Record mixer settings after suspending 30 times.
command:
audio_settings store --file=$PLAINBOX_SESSION_SHARE/audio_settings_after_suspend_30_cycles; diff $PLAINBOX_SESSION_SHARE/audio_settings_before_suspend $PLAINBOX_SESSION_SHARE/audio_settings_after_suspend_30_cycles
|