add test and gating.yaml

This commit is contained in:
Miroslav Lichvar 2024-03-20 13:26:58 +01:00
parent dc65349e54
commit 2ef0d93005
3 changed files with 40 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

27
tests/smoke/runtest.sh Executable file
View File

@ -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

7
tests/tests.yml Normal file
View File

@ -0,0 +1,7 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- smoke