]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: update 106-refclock
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 27 Nov 2024 15:08:33 +0000 (16:08 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 28 Nov 2024 09:02:58 +0000 (10:02 +0100)
With the latest clknetsim all PHC readings should be valid (no
timestamps from future).

Also don't forget to remove refclock.log between tests.

test/simulation/106-refclock

index 46baee021824ca228abace87719cef156268f4ff..822fdc972e1fff0230f8daefd67e05d06b4b7015 100755 (executable)
@@ -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