stress-ng/tests/scripts/run_tests.sh
Red Tail ba9d7c1b4b Initial commit of new RHEL-9 gating for stress-ng
Resolves: rhbz#1966704
Signed-off-by: Mark Simmons msimmons@redhat.com
2021-06-08 11:01:37 -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