Add mising tests directory for gating

Resolves: RHEL-48237
Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
John Kacur 2024-07-16 12:58:27 -04:00
parent f405717327
commit 953862ead5
3 changed files with 34 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: stress-ng
Version: 0.17.08
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Stress test a computer system in various ways
License: GPL-2.0-or-later
@ -53,6 +53,10 @@ install -pm 644 bash-completion/%{name} \
%{_datadir}/bash-completion/completions/%{name}
%changelog
* Tue Jul 16 2024 John Kacur <jkacur@redhat.com> - 0.17.08-6
- Add mising tests directory for gating
Resolves: RHEL-48237
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.17.08-5
- Bump release for June 2024 mass rebuild

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