From 688a0502e4f5b5b6a752fe74274a29ae0237a863 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 3 Mar 2020 10:19:28 +0100 Subject: [PATCH] add simple tests --- tests/run_tests.sh | 12 ++++++++++++ tests/tests.yml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100755 tests/run_tests.sh create mode 100644 tests/tests.yml 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