initial gating.yaml for c9s OSCI gating - Resolves: rhbz#1966707

Resolves: rhbz#1966707
Signed-off-by: Mike Stowell <mstowell@redhat.com>
This commit is contained in:
Mike Stowell 2021-06-01 11:01:32 -04:00
parent 03510e58b6
commit f0fe39b7ad
3 changed files with 62 additions and 0 deletions

6
gating.yaml Normal file
View File

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

45
tests/scripts/run_tests.sh Executable file
View File

@ -0,0 +1,45 @@
#!/usr/bin/bash
# make sure we have rt-tests installed
if rpm -q --quiet realtime-tests; then
:
else
sudo dnf install -y realtime-tests
if [[ $? != 0 ]]; then
echo "install of realtime-tests failed!"
exit 1
fi
fi
progs="/usr/bin/cyclicdeadline
/usr/bin/cyclictest
/usr/bin/deadline_test
/usr/bin/determine_maximum_mpps.sh
/usr/bin/get_cyclictest_snapshot
/usr/bin/hackbench
/usr/bin/hwlatdetect
/usr/bin/oslat
/usr/bin/pi_stress
/usr/bin/pip_stress
/usr/bin/pmqtest
/usr/bin/ptsematest
/usr/bin/queuelat
/usr/bin/rt-migrate-test
/usr/bin/signaltest
/usr/bin/sigwaittest
/usr/bin/ssdd
/usr/bin/svsematest"
# check bins
for prog in ${progs}; do
if [[ ! -f $prog ]]; then
echo "$prog: not found"
exit 2
fi
if [[ ! -e $prog ]]; then
echo "$prog: not executable"
exit 3
fi
done
exit 0

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: scripts
run: ./run_tests.sh
required_packages:
- realtime-tests