test: add 121-orphan

This commit is contained in:
Miroslav Lichvar 2016-03-31 15:57:56 +02:00
parent 5a92dbe784
commit da96d334ab

23
test/simulation/121-orphan Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
. ./test.common
test_start "orphan option"
server_strata=3
server_conf="local stratum 5 orphan
server 192.168.123.1
server 192.168.123.2
server 192.168.123.3"
max_sync_time=500
chronyc_start=300
chronyc_conf="tracking"
time_rms_limit=5e-4
run_test || test_fail
check_chronyd_exit || test_fail
check_source_selection || test_fail
check_sync || test_fail
check_chronyc_output "^.*Stratum *: 7.*$" || test_fail
test_pass