]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: add 136-broadcast test
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Sep 2018 16:36:04 +0000 (18:36 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 17 Sep 2018 16:36:22 +0000 (18:36 +0200)
test/simulation/136-broadcast [new file with mode: 0755]

diff --git a/test/simulation/136-broadcast b/test/simulation/136-broadcast
new file mode 100755 (executable)
index 0000000..d60d678
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+. ./test.common
+
+test_start "broadcast directive"
+
+server_conf="broadcast 64 192.168.123.255"
+client_server_options="offline"
+
+run_test || test_fail
+check_chronyd_exit || test_fail
+check_packet_interval && test_fail
+
+check_file_messages "  1       2       " 150 160 log.packets || test_fail
+
+test_pass