Compare commits
No commits in common. "c9-beta" and "c9s" have entirely different histories.
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
SOURCES/realtime-setup-2.2.tar.bz2
|
/realtime-setup-2.1.tar.bz2
|
||||||
|
/realtime-setup-2.2.tar.bz2
|
||||||
|
/realtime-setup-2.5.tar.bz2
|
||||||
|
@ -1 +0,0 @@
|
|||||||
9d09c9489468a250c6e7bae3ea840a0a12d54f79 SOURCES/realtime-setup-2.2.tar.bz2
|
|
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.2
|
Version: 2.5
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Summary: Setup RT/low-latency environment details
|
Summary: Setup RT/low-latency environment details
|
||||||
Source0: https://jcwillia.fedorapeople.org/realtime-setup-%{version}.tar.bz2
|
Source0: https://jcwillia.fedorapeople.org/realtime-setup-%{version}.tar.bz2
|
||||||
@ -18,10 +18,6 @@ Requires: tuned
|
|||||||
Requires: tuned-profiles-realtime
|
Requires: tuned-profiles-realtime
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
|
|
||||||
# Patches
|
|
||||||
Patch1: remove-strip-of-realtime-entsk-and-generate-debuginf.patch
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Configure details useful for low-latency environments.
|
Configure details useful for low-latency environments.
|
||||||
|
|
||||||
@ -46,8 +42,6 @@ Neither the slub script or realtime-entsk are active by default.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build CFLAGS="%{build_cflags} -D_GNU_SOURCE" all
|
%make_build CFLAGS="%{build_cflags} -D_GNU_SOURCE" all
|
||||||
@ -74,6 +68,16 @@ Neither the slub script or realtime-entsk are active by default.
|
|||||||
%license gpl-2.0.txt
|
%license gpl-2.0.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 13 2024 Clark Williams <williams@redhat.com> - 2.5-1
|
||||||
|
- remove strip of realtime-entsk and generate debuginfo
|
||||||
|
- ensure all files have valid SPDX license identifiers
|
||||||
|
- remove Red Hat Makefile targets and specfile
|
||||||
|
- Makefile cleanups and added .gitignore
|
||||||
|
- drop the 'v' in the version string for the tarball
|
||||||
|
- Makefile: add options for passing annocheck
|
||||||
|
- Bump version to 2.5
|
||||||
|
Resolves: RHEL-30179
|
||||||
|
|
||||||
* Thu May 19 2022 John Kacur <jkacur@redhat.com> - 2.2-6
|
* Thu May 19 2022 John Kacur <jkacur@redhat.com> - 2.2-6
|
||||||
- Remove '-s' argument to install to prevent stripping of realtime-entsk
|
- Remove '-s' argument to install to prevent stripping of realtime-entsk
|
||||||
Resolves: rhbz#2068534
|
Resolves: rhbz#2068534
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (realtime-setup-2.5.tar.bz2) = 6b912644f3c99868d31bb099aea922e78d7c289cf685e6a8b87bf7bcac027eb7617e68d932ba1f7219c358d4ddb1b9e3d11db334dd7b45282873c0da357b17e1
|
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