From ba9d7c1b4b04042ce987b8a0cab67aa807e87c4a Mon Sep 17 00:00:00 2001 From: Red Tail Date: Tue, 8 Jun 2021 11:01:37 -0400 Subject: [PATCH] Initial commit of new RHEL-9 gating for stress-ng Resolves: rhbz#1966704 Signed-off-by: Mark Simmons msimmons@redhat.com --- gating.yaml | 6 ++++++ tests/scripts/run_tests.sh | 17 +++++++++++++++++ tests/tests.yml | 12 ++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 gating.yaml create mode 100644 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 100644 index 0000000..78042b6 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,17 @@ +#!/usr/bin/bash +# make sure we have stress-ng installed +if rpm -q --quiet stress-ng; then + : +else + sudo dnf install -y stress-ng + if [[ $? != 0 ]]; then + echo "install of stress-ng failed!" + exit 1 + fi +fi + +# See if stress-ng is installed and executable +stress-ng --help 2>> /dev/null +if [[ $? != 0 ]]; then + exit 2 +fi diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..e01734e --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: scripts + run: ./run_tests.sh + required_packages: + - make + - stress-ng