add simple tests
This commit is contained in:
parent
fcba1a6023
commit
362038f2d6
28
tests/run_tests.sh
Executable file
28
tests/run_tests.sh
Executable file
@ -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
|
9
tests/tests.yml
Normal file
9
tests/tests.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- simple:
|
||||
dir: .
|
||||
run: ./run_tests.sh
|
Loading…
Reference in New Issue
Block a user