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 $?