]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: extend 133-hwtimestamp test
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 May 2019 16:44:03 +0000 (18:44 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 10 May 2019 09:01:27 +0000 (11:01 +0200)
test/simulation/133-hwtimestamp

index 113ea69014a297c5029e84cd76c97e6c2e939e32..229d4ee5f85a50962dc87ee8b600be50538a1df1 100755 (executable)
@@ -13,22 +13,25 @@ refclock_offset=10.0
 min_sync_time=4
 max_sync_time=20
 limit=200
-client_conf="hwtimestamp eth0"
-client_server_options="minpoll 0 maxpoll 0 minsamples 32"
+server_conf="hwtimestamp eth0"
+client_server_options="minpoll 0 maxpoll 0 minsamples 32 xleave"
 client_chronyd_options="-d"
 
-run_test || test_fail
-check_chronyd_exit || test_fail
-check_source_selection || test_fail
-check_sync || test_fail
-
-if check_config_h 'FEAT_DEBUG 1'; then
-       check_log_messages "HW clock samples" 190 200 || test_fail
-       check_log_messages "HW clock reset" 0 0 || test_fail
-       check_log_messages "Received.*tss=1" 1 1 || test_fail
-       check_log_messages "Received.*tss=2" 390 400 || test_fail
-       check_log_messages "update_tx_timestamp.*Updated" 50 140 || test_fail
-       check_log_messages "update_tx_timestamp.*Unacceptable" 50 140 || test_fail
-fi
+for client_conf in "hwtimestamp eth0" "hwtimestamp eth0
+acquisitionport 123"; do
+       run_test || test_fail
+       check_chronyd_exit || test_fail
+       check_source_selection || test_fail
+       check_sync || test_fail
+
+       if check_config_h 'FEAT_DEBUG 1'; then
+               check_log_messages "HW clock samples" 190 200 || test_fail
+               check_log_messages "HW clock reset" 0 0 || test_fail
+               check_log_messages "Received.*tss=1" 1 1 || test_fail
+               check_log_messages "Received.*tss=2" 390 400 || test_fail
+               check_log_messages "update_tx_timestamp.*Updated" 50 140 || test_fail
+               check_log_messages "update_tx_timestamp.*Unacceptable" 50 140 || test_fail
+       fi
+done
 
 test_pass