From f0fe39b7ad5f6efef9ea3ea48528eb3b323e60c3 Mon Sep 17 00:00:00 2001 From: Mike Stowell Date: Tue, 1 Jun 2021 11:01:32 -0400 Subject: [PATCH] initial gating.yaml for c9s OSCI gating - Resolves: rhbz#1966707 Resolves: rhbz#1966707 Signed-off-by: Mike Stowell --- gating.yaml | 6 +++++ tests/scripts/run_tests.sh | 45 ++++++++++++++++++++++++++++++++++++++ tests/tests.yml | 11 ++++++++++ 3 files changed, 62 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/scripts/run_tests.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100755 index 0000000..6aa833b --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..cf6a85c --- /dev/null +++ b/tests/tests.yml @@ -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