diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..cdc133e --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh new file mode 100755 index 0000000..facfead --- /dev/null +++ b/tests/smoke/runtest.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +r=0 + +executables=$(rpm -ql gpsd gpsd-clients | grep -E '/s?bin/') +for b in $executables; do + case "$(basename "$b")" in + gpsdebuginfo) + continue;; + zerk) + h="-h";; + *) + h="--help";; + esac + + if "$b" "$h" |& grep -qi '^usage *:'; then + echo "$b OK" + else + echo "$b FAILED" + "$b" "$h" || : + r=1 + fi +done + +exit $r diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..1725279 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,7 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - smoke