stalld/tests/scripts/run_tests.sh
Red Tail 3f62a7a594 Initial commit to enable RHEL-9 gating for stalld
Resolves: rhbz#1966701
Signed-off-by: Mark Simmons msimmons@redhat.com
2021-06-02 13:38:44 -04:00

22 lines
406 B
Bash

#!/usr/bin/bash
# This will get uncommented once we have the rpm
# make sure we have stalld installed
if rpm -q --quiet stalld; then
:
else
sudo dnf install -y stalld
if [[ $? != 0 ]]; then
echo "install of stalld failed!"
exit 1
fi
fi
STALLD="/usr/bin/stalld"
# See if stalld is installed and executable
$STALLD --help 2>> /dev/null
if [[ $? != 0 ]]; then
exit 2
fi