Skip to content
Snippets Groups Projects
Commit bbf0b9f6 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Add initial test-case-4

parent 1d74a106
No related branches found
No related tags found
No related merge requests found
......@@ -125,28 +125,33 @@ careful when using a headset because the volume can be quite loud).
# Test case 1: Switching audio streams onto running devices
![Test case 1](audio-test-1.png){width=50% }
![Test case 1](audio-test-1.png){width=50%}
FIXME
# Test case 2: Audio input reconfiguration
![Test case 2](audio-test-2.png){width=50% }
![Test case 2](audio-test-2.png){width=50%}
FIXME
# Test case 3: Capturing multiple inputs to multiple outputs
![Test case 3](audio-test-3.png){width=50% }
![Test case 3](audio-test-3.png){width=50%}
FIXME
# Test case 4: Benchmarking load caused by a bigger number of clients
![Test case 4](audio-test-4.png){width=50% }
![Test case 4](audio-test-4.png){width=50%}
FIXME
```
$ apt install sndfile-tools
$ scripts/run-test-case-4.sh
```
# Test case 5: xrun behaviour under load
FIXME
......
#!/bin/bash
MY_WAV=/usr/share/sounds/alsa/Front_Center.wav
pw-jack sndfile-jackplay ${MY_WAV} > /dev/null 2>&1
#!/bin/bash
N=$1
MY_WAV=/usr/share/sounds/alsa/Front_Center.wav
for i in $( seq 1 $N )
do
#echo " running $i sndfile-jackplay"
pw-jack sndfile-jackplay ${MY_WAV} -l 0 > /dev/null 2>&1 &
done
# Wait before checking if all sndfile-jackplay are running
sleep 4
N_running=$(pidof sndfile-jackplay | wc -w)
if [ $N -ne $N_running ]
then
echo "Some sndfile-jackplay are missing"
killall sndfile-jackplay
exit 1
fi
/usr/bin/time -f "%e" ./pw-jack-sndfile-jackplay.sh
/usr/bin/time -f "%e" ./pw-jack-sndfile-jackplay.sh
# TODO wait end of previous call to sndfile-jackplay before killing all of them
killall sndfile-jackplay
#!/bin/bash
for i in $(seq 1 10 100)
do
echo "Run with $i sndfile-jackplay"
./run-test-case-4-base.sh $i
sleep 2
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment