From d21111484b38bc25a5e4067b0e8f213095163eef Mon Sep 17 00:00:00 2001 From: Vladis Dronov Date: Wed, 30 Oct 2024 18:01:35 +0100 Subject: [PATCH] Enable OSCI Gating [skip changelog] Resolves: RHEL-46071 Signed-off-by: Vladis Dronov --- gating.yaml | 6 ++++++ tests/README | 7 +++++++ tests/nulltest.sh | 5 +++++ tests/tests.yml | 10 ++++++++++ 4 files changed, 28 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/README create mode 100755 tests/nulltest.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /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/README b/tests/README new file mode 100644 index 0000000..c828519 --- /dev/null +++ b/tests/README @@ -0,0 +1,7 @@ +A test should be configured as BaseOS CI test (not an OSCI one), as it require +an x86_64 machine with QAT_4XXX (or later) hardware, so it should be run in Beaker. + +see: https://one.redhat.com/rhel-development-guide/#proc_enable-gating_assembly_enabling-gating +and: https://docs.engineering.redhat.com/display/RTT/Onboarding+gating+tests +and: https://docs.engineering.redhat.com/pages/viewpage.action?pageId=53110084 +and: https://docs.engineering.redhat.com/display/RTT/Creating+and+Updating+beaker+test diff --git a/tests/nulltest.sh b/tests/nulltest.sh new file mode 100755 index 0000000..55d2351 --- /dev/null +++ b/tests/nulltest.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# There is a test binary and %check rpm target for testing +echo QAT-ZSTD-Plugin nulltest is PASS +exit 0 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..0e807fa --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,10 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - nulltest: + dir: . + run: nulltest.sh