execute test suite
This commit is contained in:
parent
73d97b1e27
commit
1540bac3e4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/chrony-1.30-pre1.tar.gz
|
||||
/clknetsim-d5a9a5.tar.gz
|
||||
|
10
chrony.spec
10
chrony.spec
@ -19,6 +19,8 @@ Source5: chrony.logrotate
|
||||
Source7: chrony.nm-dispatcher
|
||||
Source8: chrony.dhclient
|
||||
Source9: chrony-wait.service
|
||||
# simulator for test suite from https://github.com/mlichvar/clknetsim.git
|
||||
Source10: clknetsim-d5a9a5.tar.gz
|
||||
%{?gitpatch:Patch0: chrony-%{version}%{?prerelease}-%{gitpatch}.patch.gz}
|
||||
|
||||
BuildRequires: libcap-devel libedit-devel nss-devel pps-tools-devel
|
||||
@ -42,7 +44,7 @@ clocks, system real-time clock or manual input as time references.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{?prerelease}
|
||||
%setup -q -n %{name}-%{version}%{?prerelease} -a 10
|
||||
%{?gitpatch:%patch0 -p1}
|
||||
|
||||
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
||||
@ -50,6 +52,8 @@ clocks, system real-time clock or manual input as time references.
|
||||
sed -e 's|VENDORZONE\.|%{vendorzone}|' < %{SOURCE1} > chrony.conf
|
||||
touch -r %{SOURCE1} chrony.conf
|
||||
|
||||
mv clknetsim test/simulation
|
||||
|
||||
%build
|
||||
%configure \
|
||||
%{?with_debug: --enable-debug} \
|
||||
@ -86,6 +90,10 @@ touch $RPM_BUILD_ROOT%{_localstatedir}/lib/chrony/{drift,rtc}
|
||||
echo 'chronyd.service' > \
|
||||
$RPM_BUILD_ROOT%{_prefix}/lib/systemd/ntp-units.d/50-chronyd.list
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} -C test/simulation/clknetsim
|
||||
make check
|
||||
|
||||
%pre
|
||||
getent group chrony > /dev/null || /usr/sbin/groupadd -r chrony
|
||||
getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
|
||||
|
Loading…
Reference in New Issue
Block a user