rt-tests/tests/scripts/run_tests.sh
2023-07-10 13:13:41 +02:00

37 lines
818 B
Bash
Executable File

#!/usr/bin/bash
# make sure we have rt-tests installed
if rpm -q rt-tests; then
:
else
cat <<EOF > /etc/yum.repos.d/rhel8-rt.repo
[rhel8-rt]
name=RHEL8 latest devel Realtime compose
baseurl=http://download.devel.redhat.com/nightly/latest-RHEL-8/compose/RT/\$basearch/os/
enabled=1
gpgcheck=0
metadata_expire=6h
skip_if_unavailable=False
EOF
sudo dnf install -y rt-tests
if [[ $? != 0 ]]; then
echo "install of rt-tests failed!"
exit 1
fi
fi
progs="cyclicdeadline cyclictest deadline_test hackbench pip_stress pi_stress pmqtest ptsematest queuelat rt-migrate-test signaltest sigwaittest svsematest"
for p in ${progs}; do
t=/usr/bin/${p}
if [[ ! -f ${t} ]]; then
echo "${t}: not found"
exit 2
fi
if [[ ! -e ${t} ]]; then
echo "${t}: not executable"
exit 3
fi
done
exit 0