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