re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-10 13:13:41 +02:00
parent 963a55e70f
commit 2eeca02e39
3 changed files with 62 additions and 1 deletions

18
.gitignore vendored
View File

@ -1,2 +1,18 @@
SOURCES/rt-tests-2.5.tar.xz
*.swp
/rt-tests-0.83.tar.gz
/rt-tests-0.87.tar.gz
/rt-tests-0.92.tar.gz
/rt-tests-0.93.tar.gz
/rt-tests-0.97.tar.gz
/rt-tests-1.0.tar.gz
/rt-tests-1.1.tar.gz
/rt-tests-1.2.tar.gz
/rt-tests-1.3.tar.gz
/rt-tests-1.5.tar.xz
/rt-tests-1.8.tar.xz
/rt-tests-1.9.tar.xz
/rt-tests-1.10.tar.xz
/rt-tests-2.1.tar.xz
/rt-tests-2.3.tar.xz
/rt-tests-2.4.tar.xz
/rt-tests-2.5.tar.xz

36
tests/scripts/run_tests.sh Executable file
View File

@ -0,0 +1,36 @@
#!/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

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: scripts
run: ./run_tests.sh