blob: 22b9a502c975fa8bf8a1ccce52a8bfd223cf954e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/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="maxpoll 6 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 "maxpoll 6 maxdelay 2e-5"; do
run_test || test_fail
check_chronyd_exit || test_fail
check_packet_interval || test_fail
check_sync && test_fail
done
test_pass
|