From: Miroslav Lichvar Date: Mon, 26 Jan 2015 11:10:31 +0000 (+0100) Subject: test: add compilation test X-Git-Tag: 2.0-pre1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8fe0fe992e054d68bad91e4fbba5ee7248180a3;p=thirdparty%2Fchrony.git 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. --- diff --git a/test/compilation/001-features b/test/compilation/001-features new file mode 100755 index 00000000..b1f1fb65 --- /dev/null +++ b/test/compilation/001-features @@ -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