include test suite
This commit is contained in:
parent
6a17fe9730
commit
930708955a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
/linuxptp-1.4.tgz
|
||||
/clknetsim-19a8df.tar.gz
|
||||
/testsuite-a1040d.tar.gz
|
||||
|
@ -12,6 +12,10 @@ URL: http://linuxptp.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
|
||||
Source1: phc2sys.service
|
||||
Source2: ptp4l.service
|
||||
# test suite from https://github.com/mlichvar/linuxptp-testsuite.git
|
||||
Source3: testsuite-a1040d.tar.gz
|
||||
# simulator for test suite from https://github.com/mlichvar/clknetsim.git
|
||||
Source4: clknetsim-19a8df.tar.gz
|
||||
|
||||
BuildRequires: systemd-units
|
||||
|
||||
@ -27,7 +31,8 @@ Application Programming Interfaces (API) offered by the Linux kernel.
|
||||
Supporting legacy APIs and other platforms is not a goal.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -a 3 -a 4
|
||||
mv clknetsim testsuite
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} \
|
||||
@ -47,6 +52,11 @@ echo 'OPTIONS="-w -s eth0"' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/phc2sys
|
||||
|
||||
echo '.so man8/ptp4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/ptp4l.conf.5
|
||||
|
||||
%check
|
||||
cd testsuite
|
||||
make %{?_smp_mflags} -C clknetsim
|
||||
PATH=..:$PATH ./run
|
||||
|
||||
%post
|
||||
%systemd_post ptp4l.service phc2sys.service
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user