From 7a2fee6bcbfe3e8e54b45735d7286a6326b2e0a8 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Thu, 29 Jun 2023 14:47:17 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 4 ++-- tests/.gitignore | 3 +++ tests/run_tests.sh | 9 +++++++++ tests/tests.yml | 9 +++++++++ tests/version.sh | 7 +++++++ 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 tests/.gitignore create mode 100755 tests/run_tests.sh create mode 100644 tests/tests.yml create mode 100755 tests/version.sh diff --git a/.gitignore b/.gitignore index da21dcf..2ea8b25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/pigz-2.4.tar.gz -/pigz-2.4.tar.gz +/*.tar.* +*.rpm diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..2d14f87 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,3 @@ +artifacts/ +*.patch +*.diff diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 0000000..5c08ae1 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# when running this in 1minutetip the PATH must be specified to execute +# in the local directory. +echo "Setting path to local directory" +PATH=$PATH:$(pwd) + +# simple version test +version.sh diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..b83c0a1 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder + run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test diff --git a/tests/version.sh b/tests/version.sh new file mode 100755 index 0000000..390792c --- /dev/null +++ b/tests/version.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# +# This is a simple version test to satisfy the RHEL8.1 onboard gating +# requirement. + +pigz --version +exit $?