From 46e1551f79a5c5360e1a2c8214f687b9db4a3255 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 13:13:36 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 5 ++--- tests/scripts/run_tests.sh | 17 +++++++++++++++++ tests/tests.yml | 12 ++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml 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