Sync realtime-setup in rhel-10 with rhel-9.5
Add gating.yaml Add tests dir Resolves: RHEL-30448 Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
ec7ae6ee00
commit
515a2b7ca4
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -1,6 +1,6 @@
|
|||||||
Name: realtime-setup
|
Name: realtime-setup
|
||||||
Version: 2.4
|
Version: 2.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
Summary: Setup RT/low-latency environment details
|
Summary: Setup RT/low-latency environment details
|
||||||
Source0: https://gitlab.com/rt-linux-tools/%{name}/-/archive/v%{version}/%{name}-%{version}.tar.bz2
|
Source0: https://gitlab.com/rt-linux-tools/%{name}/-/archive/v%{version}/%{name}-%{version}.tar.bz2
|
||||||
@ -73,6 +73,11 @@ Neither the slub script or realtime-entsk are active by default.
|
|||||||
%{_unitdir}/realtime-entsk.service
|
%{_unitdir}/realtime-entsk.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 26 2024 John Kacur <jkacur@redhat.com> - 2.4-4
|
||||||
|
- Add gating.yaml
|
||||||
|
- Add tests dir
|
||||||
|
Resolves: RHEL-30448
|
||||||
|
|
||||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-3
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
72
tests/scripts/run_tests.sh
Normal file
72
tests/scripts/run_tests.sh
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# make sure we have rt-setup installed
|
||||||
|
if rpm -q --quiet realtime-setup; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
cat <<EOF > /etc/yum.repos.d/centos-stream-rt.repo
|
||||||
|
[centos-stream-rt]
|
||||||
|
name=CentOS Stream latest Realtime compose
|
||||||
|
baseurl=http://composes.stream.centos.org/test/latest-CentOS-Stream/compose/RT/\$basearch/os/
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=0
|
||||||
|
metadata_expire=6h
|
||||||
|
skip_if_unavailable=False
|
||||||
|
EOF
|
||||||
|
sudo dnf install -y realtime-setup
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
echo "install of realtime-setup failed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check bins
|
||||||
|
for p in realtime-setup slub_cpu_partial_off; do
|
||||||
|
prog=/usr/bin/$p
|
||||||
|
if [[ ! -e $prog ]]; then
|
||||||
|
echo "$prog not found"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if [[ ! -x $prog ]]; then
|
||||||
|
echo "$prog not executable!"
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# check system bins
|
||||||
|
for p in kernel-is-rt realtime-entsk; do
|
||||||
|
prog=/usr/sbin/$p
|
||||||
|
if [[ ! -e $prog ]]; then
|
||||||
|
echo "$prog not found"
|
||||||
|
exit 4
|
||||||
|
fi
|
||||||
|
if [[ ! -x $prog ]]; then
|
||||||
|
echo "$prog not executable!"
|
||||||
|
exit 5
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# check /etc files
|
||||||
|
if [[ ! -e /etc/security/limits.d/realtime.conf ]]; then
|
||||||
|
echo "/etc/security/limits.d/realtime.conf: not found"
|
||||||
|
exit 6
|
||||||
|
fi
|
||||||
|
if [[ ! -e /etc/sysconfig/realtime-setup ]]; then
|
||||||
|
echo "/etc/sysconfig/realtime-setup: not found"
|
||||||
|
exit 7
|
||||||
|
fi
|
||||||
|
if [[ ! -e /etc/udev/rules.d/99-rhel-rt.rules ]]; then
|
||||||
|
echo "/etc/udev/rules.d/99-rhel-rt.rules: not found"
|
||||||
|
exit 8
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check systemd service files
|
||||||
|
for i in realtime-entsk realtime-setup; do
|
||||||
|
serv="/usr/lib/systemd/system/$i.service"
|
||||||
|
if [[ ! -e $serv ]]; then
|
||||||
|
echo "$serv: not found"
|
||||||
|
exit 9
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
11
tests/tests.yml
Normal file
11
tests/tests.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- simple:
|
||||||
|
dir: scripts
|
||||||
|
run: ./run_tests.sh
|
||||||
|
required_packages:
|
||||||
|
- realtime-setup
|
Loading…
Reference in New Issue
Block a user