summaryrefslogtreecommitdiffstats
path: root/test/simulation/124-tai
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-12 05:01:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-12 05:01:24 +0000
commit15d5aecc5b2123bab1a374d36420f5752096d081 (patch)
tree5300829fb1e869c2ace0b1b5b8bfc68faaa98472 /test/simulation/124-tai
parentReleasing progress-linux version 4.5-3~progress7.99u1. (diff)
downloadchrony-15d5aecc5b2123bab1a374d36420f5752096d081.tar.xz
chrony-15d5aecc5b2123bab1a374d36420f5752096d081.zip
Merging upstream version 4.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/simulation/124-tai')
-rwxr-xr-xtest/simulation/124-tai16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/simulation/124-tai b/test/simulation/124-tai
index 97064f7..e8c909d 100755
--- a/test/simulation/124-tai
+++ b/test/simulation/124-tai
@@ -18,9 +18,17 @@ servers=0
refclock_offset="(+ -34 (equal 0.1 (max (sum 1.0) $leap) $leap))"
client_conf="
refclock SHM 0 dpoll 0 poll 0 tai
-leapsectz right/UTC
+leapseclist tmp/leap.list
leapsecmode ignore
-maxchange 1e-3 1 0"
+maxchange 1e-3 10 0"
+
+cat > tmp/leap.list <<-EOF
+ #$ 3676924800
+ #@ 3928521600
+ 3345062400 33 # 1 Jan 2006
+ 3439756800 34 # 1 Jan 2009
+ 3550089600 35 # 1 Jul 2012
+EOF
run_test || test_fail
check_chronyd_exit || test_fail
@@ -33,9 +41,9 @@ time_offset=-1000
refclock_offset="(+ -34)"
client_conf="
refclock SHM 0 dpoll 0 poll 0 tai
-leapsectz right/UTC
+leapseclist tmp/leap.list
makestep 1 1
-maxchange 1e-3 1 0"
+maxchange 1e-3 10 0"
run_test || test_fail
check_chronyd_exit || test_fail