chrony/test/simulation/118-maxdelay
Miroslav Lichvar a63e18edb8 test: specify files with path in source commands
This should prevent sourcing of an unrelated file found in $PATH.
2016-02-05 15:20:40 +01:00

28 lines
599 B
Bash
Executable file

#!/bin/bash
. ./test.common
test_start "maxdelay options"
max_sync_time=2000
base_delay=1e-5
jitter=1e-5
wander=0.0
freq_offset="(sum 1e-10)"
time_rms_limit=2e-4
client_server_options="maxdelay 3e-5 maxdelayratio 2.0 maxdelaydevratio 2.0"
run_test || test_fail
check_chronyd_exit || test_fail
check_source_selection || test_fail
check_packet_interval || test_fail
check_sync || test_fail
for client_server_options in "maxdelay 2e-5" \ "maxdelayratio 1.001"; do
run_test || test_fail
check_chronyd_exit || test_fail
check_packet_interval || test_fail
check_sync && test_fail
done
test_pass