File rt-tests.spec of Package rt-tests
#
# spec file for package rt-tests
#
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: rt-tests
BuildRequires: libnuma-devel
Url: http://www.kernel.org/pub/linux/kernel/people/tglx/rt-tests/
License: GPL-2.0
Group: System/Benchmark
AutoReqProv: on
Summary: Realtime Kernel Testsuite
Version: 0.83
Release: 0.<RELEASE5>
Requires: libnuma1
Patch1: drop_hwlatdetect.patch
Patch2: signaltest_trace_and_display_matches_cyclictest.diff
Source0: %{name}-%{version}.tar.bz2
Source1: cyclictest_plot.sh
Source2: cyclictest_run.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# rt-tests doesn't build on s390, s390x, ia64, %ix86, ppc, ppc64
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.
Authors:
--------
Thomas Gleixner <tglx@linutronix.de>
Clark Williams <williams@redhat.com>
%prep
%setup -n rt-tests
%patch1 -p1
%patch2 -p1
%build
CFLAGS=$RPM_OPT_FLAGS make %{?jobs:-j%jobs}
%install
mkdir -p ${RPM_BUILD_ROOT}/%{_bindir} ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 755 cyclictest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 pi_stress ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 ptsematest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 rt-migrate-test ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 sendme ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 signaltest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 sigwaittest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 svsematest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 hackbench ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 pip_stress ${RPM_BUILD_ROOT}/%{_bindir}
install -m 755 pmqtest ${RPM_BUILD_ROOT}/%{_bindir}
install -m 644 src/backfire/backfire.4 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/cyclictest/cyclictest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/signaltest/signaltest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/pi_tests/pi_stress.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/ptsematest/ptsematest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/sigwaittest/sigwaittest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/svsematest/svsematest.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/hackbench/hackbench.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
install -m 644 src/backfire/sendme.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8/
# cyclictests histogram and plot scripts
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/%{_bindir}
%files
%defattr(-, root, root)
%doc ChangeLog
%{_bindir}/*
%{_mandir}/man8/*
%clean
rm -rf $RPM_BUILD_ROOT
%changelog