add basic tests

This commit is contained in:
Jaroslav Kysela 2020-03-03 09:33:07 +01:00
parent 7c33e3c1a6
commit efbf088724
2 changed files with 21 additions and 0 deletions

10
tests/run_tests.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -ex
# a quick PCM API test
str=$(aplay -L | grep -E "^null$")
if [ "$str" != "null" ]; then
echo "The 'null' pcm plugin was not found!"
exit 99
fi

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- alsa-utils
tests:
- simple:
dir: .
run: ./run_tests.sh