mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 03:05:06 -05:00
test: add 121-orphan
This commit is contained in:
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
|
||||||
Reference in New Issue
Block a user