summaryrefslogtreecommitdiff
path: root/test/simulation/test.common
diff options
context:
space:
mode:
Diffstat (limited to 'test/simulation/test.common')
-rw-r--r--test/simulation/test.common8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/simulation/test.common b/test/simulation/test.common
index 18dd9e1..951a794 100644
--- a/test/simulation/test.common
+++ b/test/simulation/test.common
@@ -84,6 +84,8 @@ done
test_start() {
rm -f tmp/*
echo "Testing $@:"
+
+ check_config_h 'FEAT_NTP 1' || test_skip
}
test_pass() {
@@ -211,6 +213,12 @@ get_chronyd_conf() {
fi
}
+# Check if chrony was built with specified option in config.h
+check_config_h() {
+ local pattern=$1
+ grep -q "^#define $pattern" ../../config.h
+}
+
# Check if the clock was well synchronized
check_sync() {
local i sync_time max_time_error max_freq_error ret=0