test: add function for checking config.h in tests

This commit is contained in:
Miroslav Lichvar
2018-09-26 17:29:23 +02:00
parent 31b1f2e8a1
commit 3e876d4218
5 changed files with 10 additions and 4 deletions

View File

@@ -211,6 +211,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