test: add 121-orphan
This commit is contained in:
parent
5a92dbe784
commit
da96d334ab
1 changed files with 23 additions and 0 deletions
23
test/simulation/121-orphan
Executable file
23
test/simulation/121-orphan
Executable 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
|
Loading…
Reference in a new issue