fix testing with new glibc (#1792854)
This commit is contained in:
parent
718aa8464c
commit
1e0baf8ccb
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
/chrony-3.5.tar.gz
|
/chrony-3.5.tar.gz
|
||||||
/chrony-3.5-tar-gz-asc.txt
|
/chrony-3.5-tar-gz-asc.txt
|
||||||
/clknetsim-3f5ef9.tar.gz
|
/clknetsim-79ffe4.tar.gz
|
||||||
|
25
chrony-packettest.patch
Normal file
25
chrony-packettest.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
commit 62d6aed6a64b887c9e3b7f03d9e0db1deaa2696a
|
||||||
|
Author: Miroslav Lichvar <mlichvar@redhat.com>
|
||||||
|
Date: Tue Jun 18 15:41:50 2019 +0200
|
||||||
|
|
||||||
|
test: update processing of packet log
|
||||||
|
|
||||||
|
Two new fields have been added to the packet log, which broke some
|
||||||
|
of the simulation tests.
|
||||||
|
|
||||||
|
diff --git a/test/simulation/test.common b/test/simulation/test.common
|
||||||
|
index 951a794b..8ed6ad9e 100644
|
||||||
|
--- a/test/simulation/test.common
|
||||||
|
+++ b/test/simulation/test.common
|
||||||
|
@@ -391,9 +391,9 @@ check_packet_port() {
|
||||||
|
for i in $(seq 1 $(get_chronyd_nodes)); do
|
||||||
|
test_message 3 0 "node $i:"
|
||||||
|
|
||||||
|
- grep -E -q " $port [0-9]+\$" tmp/log.packets && \
|
||||||
|
+ grep -E -q "^([0-9e.+-]+ ){5}$port " tmp/log.packets && \
|
||||||
|
! grep -E "^[0-9e.+-]+ $i " tmp/log.packets | \
|
||||||
|
- grep -E -q -v " $port [0-9]+\$" && \
|
||||||
|
+ grep -E -q -v "^([0-9e.+-]+ ){5}$port " && \
|
||||||
|
test_ok || test_bad
|
||||||
|
[ $? -eq 0 ] || ret=1
|
||||||
|
done
|
@ -1,5 +1,5 @@
|
|||||||
%global _hardened_build 1
|
%global _hardened_build 1
|
||||||
%global clknetsim_ver 3f5ef9
|
%global clknetsim_ver 79ffe4
|
||||||
%bcond_without debug
|
%bcond_without debug
|
||||||
|
|
||||||
Name: chrony
|
Name: chrony
|
||||||
@ -22,6 +22,8 @@ Source10: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/c
|
|||||||
|
|
||||||
# add NTP servers from DHCP when starting service
|
# add NTP servers from DHCP when starting service
|
||||||
Patch2: chrony-service-helper.patch
|
Patch2: chrony-service-helper.patch
|
||||||
|
# fix test suite to work with newer clknetsim
|
||||||
|
Patch3: chrony-packettest.patch
|
||||||
|
|
||||||
BuildRequires: libcap-devel libedit-devel nettle-devel pps-tools-devel
|
BuildRequires: libcap-devel libedit-devel nettle-devel pps-tools-devel
|
||||||
%ifarch %{ix86} x86_64 %{arm} aarch64 mipsel mips64el ppc64 ppc64le s390 s390x
|
%ifarch %{ix86} x86_64 %{arm} aarch64 mipsel mips64el ppc64 ppc64le s390 s390x
|
||||||
@ -54,6 +56,7 @@ service to other computers in the network.
|
|||||||
%setup -q -n %{name}-%{version}%{?prerelease} -a 10
|
%setup -q -n %{name}-%{version}%{?prerelease} -a 10
|
||||||
%{?gitpatch:%patch0 -p1}
|
%{?gitpatch:%patch0 -p1}
|
||||||
%patch2 -p1 -b .service-helper
|
%patch2 -p1 -b .service-helper
|
||||||
|
%patch3 -p1 -b .packettest
|
||||||
|
|
||||||
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
%{?gitpatch: echo %{version}-%{gitpatch} > version.txt}
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1,3 +1,3 @@
|
|||||||
SHA512 (chrony-3.5.tar.gz) = c4f6376a44d71b6ac2b6d86e3d6fb4348642faeef7f3f3a4d6431627b5645efcc868b005cc398c8292bc3b63a1161fbd1a042c6ac2a0595843f908fe32eed90c
|
SHA512 (chrony-3.5.tar.gz) = c4f6376a44d71b6ac2b6d86e3d6fb4348642faeef7f3f3a4d6431627b5645efcc868b005cc398c8292bc3b63a1161fbd1a042c6ac2a0595843f908fe32eed90c
|
||||||
SHA512 (chrony-3.5-tar-gz-asc.txt) = b66ccc22fb7ae2f0597b5e20705a71f0d7fabad396d6efc427f49247361a09e3b13e2af31460123451268268d663a181361769795758c4ee96ade2b24e31ba48
|
SHA512 (chrony-3.5-tar-gz-asc.txt) = b66ccc22fb7ae2f0597b5e20705a71f0d7fabad396d6efc427f49247361a09e3b13e2af31460123451268268d663a181361769795758c4ee96ade2b24e31ba48
|
||||||
SHA512 (clknetsim-3f5ef9.tar.gz) = 01eea027ec8289d1053236fcc9ee09a8411e5f68cb3279077e50d330169a1ba1284798a50786dbd94382444aeaa652e276b94668c7adf5be66e910f937a9e55d
|
SHA512 (clknetsim-79ffe4.tar.gz) = ae118c0e5fbb26d57489eba941b57593454bd41b714e305ed76f78b2eb469b59b6c14cd1781e8eda42895199294bb577ca3b6895a7d120d6b8dd6db4e08c1396
|
||||||
|
Loading…
Reference in New Issue
Block a user