From: Miroslav Lichvar Date: Mon, 11 Jan 2016 15:40:29 +0000 (+0100) Subject: test: extend 105-ntpauth to test symmetric mode X-Git-Tag: 2.2.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86c21a3a857655167f57fc597fd51968824aa4ad;p=thirdparty%2Fchrony.git test: extend 105-ntpauth to test symmetric mode --- diff --git a/test/simulation/105-ntpauth b/test/simulation/105-ntpauth index 66ea2a51..6968e084 100755 --- a/test/simulation/105-ntpauth +++ b/test/simulation/105-ntpauth @@ -39,4 +39,24 @@ check_chronyd_exit || test_fail # This check must fail as the client doesn't know the key check_sync && test_fail check_packet_interval || test_fail + +client_conf="keyfile tmp/keys" +clients=2 +peers=2 +max_sync_time=300 +base_delay="$default_base_delay (* -1 (equal 0.1 from 3) (equal 0.1 to 1))" +client_lpeer_options="key 1" +client_rpeer_options="key 1" + +run_test || test_fail +check_chronyd_exit || test_fail +check_sync || test_fail + +client_rpeer_options="key 2" + +run_test || test_fail +check_chronyd_exit || test_fail +# This check must fail as the peers are using different keys" +check_sync && test_fail + test_pass