Add mising tests directory for gating
Resolves: RHEL-48237 Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
f405717327
commit
953862ead5
@ -1,6 +1,6 @@
|
|||||||
Name: stress-ng
|
Name: stress-ng
|
||||||
Version: 0.17.08
|
Version: 0.17.08
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Stress test a computer system in various ways
|
Summary: Stress test a computer system in various ways
|
||||||
|
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
@ -53,6 +53,10 @@ install -pm 644 bash-completion/%{name} \
|
|||||||
%{_datadir}/bash-completion/completions/%{name}
|
%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.17.08-5
|
||||||
- Bump release for June 2024 mass rebuild
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
17
tests/scripts/run_tests.sh
Normal file
17
tests/scripts/run_tests.sh
Normal 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
12
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user