From c8fe0fe992e054d68bad91e4fbba5ee7248180a3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 26 Jan 2015 12:10:31 +0100 Subject: [PATCH] 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. --- test/compilation/001-features | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 test/compilation/001-features diff --git a/test/compilation/001-features b/test/compilation/001-features new file mode 100755 index 0000000..b1f1fb6 --- /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