From: Miroslav Lichvar Date: Tue, 26 Oct 2021 10:22:55 +0000 (+0200) Subject: test: extend 122-xleave test X-Git-Tag: 4.2-pre1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d92d24ad7fbdb29cc37e5411d4cb568c1b6312cb;p=thirdparty%2Fchrony.git test: extend 122-xleave test --- diff --git a/test/simulation/122-xleave b/test/simulation/122-xleave index 5cb603dd..bc4c3a7b 100755 --- a/test/simulation/122-xleave +++ b/test/simulation/122-xleave @@ -64,4 +64,26 @@ for rpoll in 4 5 6; do rm -f tmp/measurements.log done +if check_config_h 'FEAT_CMDMON 1'; then + # test client timestamp selection and server timestamp correction + base_delay="(+ 1.25e-6 (* -1 (equal 0.1 from 5)))" + jitter=1e-9 + wander=1e-12 + client_lpeer_options="xleave minpoll 5 maxpoll 5 noselect" + client_rpeer_options="xleave minpoll 5 maxpoll 5 noselect" + chronyc_conf="doffset -0.1" + chronyc_start=7200 + + run_test || test_fail + check_chronyd_exit || test_fail + check_source_selection || test_fail + check_sync && test_fail + + check_file_messages "\.2 N 2 111 111 .... 5 5 .\... ..\....e-.. 2\....e-06" \ + 290 310 measurements.log || test_fail + check_file_messages "\.2 N 2 111 111 .... 5 5 .\... ..\....e-.. .\....e-0[0123]" \ + 0 0 measurements.log || test_fail + rm -f tmp/measurements.log +fi + test_pass