diff --git a/.gitignore b/.gitignore index f959461..07d5874 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -/stress-ng-0.13.10.tar.xz -/stress-ng-0.14.00.tar.xz -/stress-ng-0.15.00.tar.xz +*.swp +/stress-ng-*.tar.xz diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..78042b6 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,17 @@ +#!/usr/bin/bash +# make sure we have stress-ng installed +if rpm -q --quiet stress-ng; then + : +else + sudo dnf install -y stress-ng + if [[ $? != 0 ]]; then + echo "install of stress-ng failed!" + exit 1 + fi +fi + +# See if stress-ng is installed and executable +stress-ng --help 2>> /dev/null +if [[ $? != 0 ]]; then + exit 2 +fi diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..e01734e --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: scripts + run: ./run_tests.sh + required_packages: + - make + - stress-ng