]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: add 121-orphan
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 31 Mar 2016 13:57:56 +0000 (15:57 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 31 Mar 2016 14:12:14 +0000 (16:12 +0200)
test/simulation/121-orphan [new file with mode: 0755]

diff --git a/test/simulation/121-orphan b/test/simulation/121-orphan
new file mode 100755 (executable)
index 0000000..ed92153
--- /dev/null
@@ -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