summaryrefslogtreecommitdiff
path: root/test/simulation/133-hwtimestamp
diff options
context:
space:
mode:
Diffstat (limited to 'test/simulation/133-hwtimestamp')
-rwxr-xr-xtest/simulation/133-hwtimestamp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/simulation/133-hwtimestamp b/test/simulation/133-hwtimestamp
index 1448c21..113ea69 100755
--- a/test/simulation/133-hwtimestamp
+++ b/test/simulation/133-hwtimestamp
@@ -4,6 +4,8 @@
test_start "hwtimestamp directive"
+check_config_h 'HAVE_LINUX_TIMESTAMPING 1' || test_skip
+
export CLKNETSIM_TIMESTAMPING=2
refclock_jitter=1e-8
@@ -20,7 +22,7 @@ check_chronyd_exit || test_fail
check_source_selection || test_fail
check_sync || test_fail
-if grep -q 'FEAT_DEBUG 1' ../../config.h; then
+if check_config_h 'FEAT_DEBUG 1'; then
check_log_messages "HW clock samples" 190 200 || test_fail
check_log_messages "HW clock reset" 0 0 || test_fail
check_log_messages "Received.*tss=1" 1 1 || test_fail