Merge ~kzapalowicz/snappy-hwe-snaps/+git/engineering-tests:feature/plainbox-pulseaudio-2 into ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master

Proposed by Konrad Zapałowicz
Status: Merged
Approved by: Simon Fels
Approved revision: 1b39de880550a138e18c64f8a0e278b3adc0f160
Merged at revision: 9032c2ac1f762696e87594b4c190841bd4d4a812
Proposed branch: ~kzapalowicz/snappy-hwe-snaps/+git/engineering-tests:feature/plainbox-pulseaudio-2
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/engineering-tests:master
Diff against target: 66 lines (+58/-0)
1 file modified
tests/units/pulseaudio.pxu (+58/-0)
Reviewer Review Type Date Requested Status
Simon Fels Approve
System Enablement Bot continuous-integration Needs Fixing
Review via email: mp+311744@code.launchpad.net

Commit message

Add tests for paplay and parecord

Description of the change

Add tests for paplay and parecord

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Simon Fels (morphis) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tests/units/pulseaudio.pxu b/tests/units/pulseaudio.pxu
2index 28d5deb..aeb81ab 100644
3--- a/tests/units/pulseaudio.pxu
4+++ b/tests/units/pulseaudio.pxu
5@@ -20,3 +20,61 @@ _steps:
6 _verification:
7 Verify that you see the following:
8 pulseaudio:service pulseaudio:client
9+
10+id: pulseaudio/pactl/ensure-modules-are-listed
11+category_id: pulseaudio
12+_description: Ensure that the correct modules are loaded
13+plugin: manual
14+depends: pulseaudio/setup/ensure_interface_connection_setup
15+_steps:
16+ 1. List the loaded modules
17+ .
18+ $ pactl list short
19+ .
20+_verification:
21+ Verify that you see output similar to following:
22+ 0 module-device-restore
23+ 1 module-stream-restore
24+ 2 module-card-restore
25+ 3 module-augment-properties
26+ 4 module-switch-on-port-available
27+ 5 module-udev-detect
28+ ...
29+ 80 protocol-native.c pactl
30+ 0 alsa_card.pci-0000_00_1b.0 module-alsa-card.c
31+
32+ Verify that amongs the other the following modules are listed:
33+ module-device-restore
34+ module-stream-restore
35+ module-card-restore
36+ module-switch-on-port-available
37+ module-rescue-streams
38+ module-always-sink
39+
40+id: pulseaudio/parecord/ensure-audio-can-be-recorded
41+category_id: pulseaudio
42+_description: Ensure that it is possible to record audio
43+plugin: manual
44+depends: pulseaudio/setup/ensure_interface_connection_setup
45+_steps:
46+ 1. Record an audio .wav file
47+ .
48+ $ parecord ~/record.wav
49+ .
50+_verification:
51+ Verify that the record.wav file has been created and it's size is
52+ greater than zero. Verify that the recorded file can be played and
53+ it is possible to hear the audio.
54+
55+id: pulseaudio/paplay/ensure-audio-can-be-played
56+category_id: pulseaudio
57+_description: Ensure that it is possible to play auio files
58+plugin: manual
59+depends: pulseaudio/setup/ensure_interface_connection_setup
60+_steps:
61+ 1. Play an audio .wav file
62+ .
63+ $ paplay ~/file.wav
64+ .
65+_verification:
66+ Verify that the audio is hearable through the speakers.

Subscribers

People subscribed via source and target branches