]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: extend 110-chronyc test
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 3 Sep 2019 10:41:05 +0000 (12:41 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 3 Sep 2019 11:17:44 +0000 (13:17 +0200)
test/simulation/110-chronyc

index 5736ae4d7867d3d5df812f5772d21951d8bd8700..724a1551d13776fba0b685d8001bac2f76435cc1 100755 (executable)
@@ -66,6 +66,15 @@ try: 1, refid: C0A87B01, correction: 0\.000......, skew: .\....
 513 RTC driver not running$" \
 || test_fail
 
+chronyc_conf="tracking"
+dns=1
+
+run_test || test_fail
+check_chronyd_exit || test_fail
+
+check_chronyc_output "^Reference ID    : C0A87B01 \(node1\.net1\.clk\)" \
+|| test_fail
+
 server_strata=0
 chronyc_start=0
 client_conf=""
@@ -75,6 +84,7 @@ for chronyc_conf in \
        "accheck 1.2.3.4" \
        "add peer 10.0.0.0 minpoll 2 maxpoll 6" \
        "add server 10.0.0.0 minpoll 6 maxpoll 10 iburst burst key 1 maxdelay 1e-3 maxdelayratio 10.0 maxdelaydevratio 10.0 mindelay 1e-4 asymmetry 0.5 offset 1e-5 minsamples 6 maxsamples 6 filter 3 offline auto_offline prefer noselect trust require xleave polltarget 20 port 123 presend 7 minstratum 3 version 4" \
+       "add server node1.net1.clk" \
        "allow 1.2.3.4" \
        "allow 1.2" \
        "allow 3.4.5" \