add test and gating.yaml
This commit is contained in:
parent
dc65349e54
commit
2ef0d93005
6
gating.yaml
Normal file
6
gating.yaml
Normal 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
27
tests/smoke/runtest.sh
Executable 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
7
tests/tests.yml
Normal file
@ -0,0 +1,7 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- smoke
|
Loading…
Reference in New Issue
Block a user