From: Miroslav Lichvar Date: Wed, 27 Nov 2024 15:08:33 +0000 (+0100) Subject: test: update 106-refclock X-Git-Tag: 4.7-pre1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=014a67b29ee53ccba4d21c0e7c529f9acc408a1f;p=thirdparty%2Fchrony.git test: update 106-refclock With the latest clknetsim all PHC readings should be valid (no timestamps from future). Also don't forget to remove refclock.log between tests. --- diff --git a/test/simulation/106-refclock b/test/simulation/106-refclock index 46baee02..822fdc97 100755 --- a/test/simulation/106-refclock +++ b/test/simulation/106-refclock @@ -35,11 +35,7 @@ Root delay : 0.001000000 seconds Update interval : 16\.. seconds .*$" || test_fail - if echo "$refclock" | grep -q 'PHC.*nocrossts'; then - check_file_messages "20.* GPS.*[0-9] N " 620 750 refclocks.log || test_fail - else - check_file_messages "20.* GPS.*[0-9] N " 997 1001 refclocks.log || test_fail - fi + check_file_messages "20.* GPS.*[0-9] N " 997 1001 refclocks.log || test_fail check_file_messages "20.* GPS.*- N " 61 63 refclocks.log || test_fail rm -f tmp/refclocks.log done @@ -136,6 +132,7 @@ Root delay : 0\.000000001 seconds check_file_messages "20.* PPS0.*[0-9] N " 800 960 refclocks.log || test_fail check_file_messages "20.* PPS0.*- N " 50 63 refclocks.log || test_fail + rm -f tmp/refclocks.log fi export CLKNETSIM_PHC_JITTER_OFF=$[2 * 25 * 492] @@ -160,6 +157,7 @@ check_sync || test_fail check_chronyc_output "^MS.* =* #\* PHC0 0 0 377 8 .*$" || test_fail +rm -f tmp/refclocks.log unset CLKNETSIM_PHC_JITTER_OFF unset CLKNETSIM_PHC_JITTER_ON