]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix tests for disabled cmdmon
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 3 Jun 2025 13:40:35 +0000 (15:40 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 3 Jun 2025 13:42:05 +0000 (15:42 +0200)
test/simulation/103-initstepslew
test/simulation/136-broadcast
test/simulation/147-refresh

index fe47b68c652867edf98ab2ecda9582038675f19a..366e9b8f6fd01290b29b523a2e0a47378bcc6e79 100755 (executable)
@@ -52,7 +52,7 @@ client_conf="initstepslew 5 192.168.123.1 192.168.123.2"
 
 min_sync_time=1
 max_sync_time=500
-server_conf="deny all"
+server_conf="deny 192.168.0.0/16"
 
 run_test || test_fail
 check_chronyd_exit || test_fail
index 1488c53df1c6b5d59ff9941c7688acec87e13611..36f1a489444ed782963133c57ce154dc58c7f97f 100755 (executable)
@@ -8,7 +8,9 @@ server_conf="broadcast 64 192.168.123.255"
 client_server_options="offline"
 
 run_test || test_fail
-check_chronyd_exit || test_fail
+if check_config_h 'FEAT_CMDMON 1'; then
+       check_chronyd_exit || test_fail
+fi
 check_packet_interval && test_fail
 
 check_file_messages "  1       2       " 150 160 log.packets || test_fail
index ea091e6d8370f8679b2af7cfbd1f194a4e52ee64..48f15fb2302b46910eacf2647c9fd3b57ad94a8a 100755 (executable)
@@ -4,6 +4,8 @@
 
 test_start "address refreshment"
 
+check_config_h 'FEAT_CMDMON 1' || test_skip
+
 limit=1000
 servers=5
 client_conf="logdir tmp