add simple tests

This commit is contained in:
Jaroslav Kysela 2020-03-03 10:19:28 +01:00
parent b31e35e333
commit 688a0502e4
2 changed files with 23 additions and 0 deletions

12
tests/run_tests.sh Executable file
View File

@ -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"

11
tests/tests.yml Normal file
View File

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