stress-ng/tests/scripts/run_tests.sh
John Kacur 953862ead5 Add mising tests directory for gating
Resolves: RHEL-48237
Signed-off-by: John Kacur <jkacur@redhat.com>
2024-07-16 12:58:27 -04:00

18 lines
348 B
Bash

#!/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