From 73e62cbc36b1aaf5676d5ce98314d021311fece6 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mar 03 2020 09:54:49 +0000 Subject: add simple tests --- diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 0000000..eb91753 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -ex + +# is alsactl present and working? +alsactl --version + +# is amixer present and working? +amixer --help + +# is alsamixer present and working? +alsamixer --version + +# is amidi present and working? +amidi --version + +# is speaker-test preset and working? +speaker-test -h + +# aplay test (like for alsa-lib) +str=$(aplay -L | grep -E "^null$") +if [ "$str" != "null" ]; then + echo "The 'null' pcm plugin was not found!" + exit 99 +fi + +# alsa-info.sh present and working? +alsa-info.sh --help diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..e56da89 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: . + run: ./run_tests.sh