]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: extend 005-externalstep
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Jun 2014 16:22:48 +0000 (18:22 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 2 Jun 2014 16:26:01 +0000 (18:26 +0200)
test/simulation/005-externalstep

index 1e5527d1a270b4e926c7c82115d23ece1a6235eb..cffc795e900ed9794df6f193be0eed5041e2d32d 100755 (executable)
@@ -15,4 +15,29 @@ for step in -1e2 1e2; do
        check_sync || test_fail
 done
 
+min_sync_time=5120
+max_sync_time=6200
+client_conf="makestep 1 -1"
+
+for step in -1e8 -1e5 1e5 1e8; do
+       # Make one step in 5000th second
+       client_step="(* $step (equal 0.1 (sum 1.0) 5000))"
+       run_test || test_fail
+       check_chronyd_exit || test_fail
+       check_sync || test_fail
+done
+
+min_sync_time=$default_min_sync_time
+max_sync_time=$default_max_sync_time
+time_max_limit=2e4
+time_rms_limit=8e3
+
+for step in -1e4 1e4; do
+       # Make a step every 500 seconds
+       client_step="(* $step (equal 0.1 (% (sum 1.0) 500) 0))"
+       run_test || test_fail
+       check_chronyd_exit || test_fail
+       check_sync || test_fail
+done
+
 test_pass