]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: extend 113-leapsecond
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 24 Aug 2016 08:40:21 +0000 (10:40 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 6 Sep 2016 13:48:59 +0000 (15:48 +0200)
test/simulation/113-leapsecond

index dcf1439e9d449a6b13f9df93f93b4f5cf4fc293f..5b9758fd65de343a1f68676757df6a17fa26aede 100755 (executable)
@@ -7,6 +7,7 @@ export CLKNETSIM_START_DATE=$(TZ=UTC date -d 'Dec 30 2008 0:00:00' +'%s')
 
 leap=$[2 * 24 * 3600]
 limit=$[4 * 24 * 3600]
+client_start=$[2 * 3600]
 server_conf="refclock SHM 0 dpoll 10 poll 10
 leapsectz right/UTC"
 refclock_jitter=1e-9
@@ -27,14 +28,25 @@ for leapmode in system step slew; do
        check_sync || test_fail
 done
 
+client_server_options="trust"
+client_conf="refclock SHM 0 dpoll 10 poll 10 delay 1e-3"
+
+run_test || test_fail
+check_chronyd_exit || test_fail
+check_source_selection || test_fail
+check_packet_interval || test_fail
+check_sync || test_fail
+
+client_server_options=""
+client_conf="leapsecmode system"
+min_sync_time=230000
+max_sync_time=240000
+
 for smoothmode in "" "leaponly"; do
        server_conf="refclock SHM 0 dpoll 10 poll 10
        leapsectz right/UTC
        leapsecmode slew
        smoothtime 400 0.001 $smoothmode"
-       client_conf="leapsecmode system"
-       min_sync_time=230000
-       max_sync_time=240000
 
        run_test || test_fail
        check_chronyd_exit || test_fail