rt-tests/rt-tests.spec

69 lines
2.5 KiB
RPMSpec

#
# spec file for package rt-tests
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: rt-tests
Version: 1.0
Release: 0
Summary: Realtime Kernel Testsuite
License: GPL-2.0-only
Group: System/Benchmark
URL: http://www.kernel.org/pub/linux/kernel/people/tglx/rt-tests/
Source0: %{name}-%{version}.tar.xz
BuildRequires: libnuma-devel
# rt-tests doesn't build on s390, s390x, ia64, ppc, ppc64, %ix86
ExclusiveArch: x86_64
%description
Realtime Kernel Testsuite which measures Realtime attributes of the Kernel:
Timer and signal latency and the functionality of Priority Inheritance
Mutexes.
%prep
%setup -q -n rt-tests
%build
CFLAGS="%{optflags}" make NUMA=1 %{?_smp_mflags}
%install
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_mandir}/man8/
install -m 755 cyclictest %{buildroot}/%{_bindir}
install -m 755 pi_stress %{buildroot}/%{_bindir}
install -m 755 pip_stress %{buildroot}/%{_bindir}
install -m 755 pmqtest %{buildroot}/%{_bindir}
install -m 755 rt-migrate-test %{buildroot}/%{_bindir}
install -m 755 signaltest %{buildroot}/%{_bindir}
install -m 755 ptsematest %{buildroot}/%{_bindir}
install -m 755 sigwaittest %{buildroot}/%{_bindir}
install -m 755 svsematest %{buildroot}/%{_bindir}
install -m 755 hackbench %{buildroot}/%{_bindir}
install -m 644 src/cyclictest/cyclictest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/pi_tests/pi_stress.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/pmqtest/pmqtest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/ptsematest/ptsematest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/sigwaittest/sigwaittest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/svsematest/svsematest.8 %{buildroot}/%{_mandir}/man8/
install -m 644 src/hackbench/hackbench.8 %{buildroot}/%{_mandir}/man8/
%files
%doc ChangeLog
%license COPYING
%{_bindir}/*
%{_mandir}/man8/*
%changelog