Initial commit of new RHEL-9 gating for stress-ng

Resolves: rhbz#1966704
Signed-off-by: Mark Simmons msimmons@redhat.com
This commit is contained in:
Red Tail 2021-06-08 11:01:37 -04:00
parent b6a4fa9e4c
commit ba9d7c1b4b
3 changed files with 35 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}

View File

@ -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

12
tests/tests.yml Normal file
View File

@ -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