diff --git a/.gitignore b/.gitignore index 9f632f8..e6ffcbe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,13 @@ +*.swp +*.rpm +clog +/tuna-0.11.tar.bz2 +/tuna-0.11.1.tar.bz2 +/tuna-0.12.tar.xz +/tuna-0.13.1.tar.xz +/tuna-0.13.3.tar.xz +/tuna-0.14.tar.xz +/tuna-0.15.tar.xz +/tuna-0.16.tar.xz /tuna-0.17.tar.xz /tuna-0.18.tar.xz diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..66b391b --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,21 @@ +#!/usr/bin/bash + +# make sure we have tuna installed +if rpm -q --quiet tuna; then + : +else + sudo dnf install -y tuna + if [[ $? != 0 ]]; then + echo "install of tuna failed!" + exit 1 + fi +fi + +# run a simple command to show help +tuna --help + +if [[ $? != 0 ]]; then + exit 2 +fi + +exit 0 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..a6331a2 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: scripts + run: ./run_tests.sh + required_packages: + - tuna