test: add compilation test
Check if chrony can be compiled in various combination of disabled features. This should fail if there are missing functions in stubs.c.
This commit is contained in:
parent
be5c3b0b90
commit
c8fe0fe992
1 changed files with 19 additions and 0 deletions
19
test/compilation/001-features
Executable file
19
test/compilation/001-features
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Try to compile chrony in various combinations of disabled features
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
|
||||||
|
for opts in \
|
||||||
|
"--disable-asyncdns" \
|
||||||
|
"--disable-rtc" \
|
||||||
|
"--disable-cmdmon" \
|
||||||
|
"--disable-ntp" \
|
||||||
|
"--disable-refclock" \
|
||||||
|
"--disable-cmdmon --disable-ntp" \
|
||||||
|
"--disable-cmdmon --disable-refclock" \
|
||||||
|
"--disable-cmdmon --disable-ntp --disable-refclock"
|
||||||
|
do
|
||||||
|
./configure $opts
|
||||||
|
make || exit 1
|
||||||
|
done
|
Loading…
Reference in a new issue