]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: add compilation test
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 Jan 2015 11:10:31 +0000 (12:10 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 26 Jan 2015 11:16:17 +0000 (12:16 +0100)
Check if chrony can be compiled in various combination of disabled
features. This should fail if there are missing functions in stubs.c.

test/compilation/001-features [new file with mode: 0755]

diff --git a/test/compilation/001-features b/test/compilation/001-features
new file mode 100755 (executable)
index 0000000..b1f1fb6
--- /dev/null
@@ -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