diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 0000000..ff02118 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -ex + +# create patest user +adduser patest + +# run pulseaudio daemon +su - patest -c "pulseaudio --start --log-target=stderr" + +# run pulseaudio test (null sink) +su - patest -c "speaker-test -D pulse -l 1" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..d18fdf5 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - pulseaudio + tests: + - simple: + dir: . + run: ./run_tests.sh