summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-07 22:21:35 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-31 12:06:13 +0000
commitd4089f4b072c06610c3301516de86e1ee401e125 (patch)
tree57aaef56566c02865c406a8c1fe74a620867f66a
parentd78c973cd89fc7c119573357cfbebb891dbc697a (diff)
jenkins: also test build in separate dir
To make sure that new patches don't break a build done in another dir than srcdir, make jenkins verify that it still works. Even though 'make distcheck' also tests a build from a separate dir, this does not verify that BUILT_SOURCES are generated properly. If these already exist in the source tree from a previous 'make' issued in the source tree, the BUILT_SOURCES are not regenerated during 'make distcheck'. Hence a separate test run is necessary to ensure stability of new patches. Change-Id: I4b31538c155941fd241bcd33b0d39f2f8491ac1e
-rwxr-xr-xcontrib/jenkins.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 656f02f7..0c116824 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -10,3 +10,15 @@ $MAKE $PARALLEL_MAKE check \
|| cat-testlogs.sh
$MAKE distcheck \
|| cat-testlogs.sh
+
+# verify build in dir other than source tree
+rm -rf *
+git checkout .
+autoreconf --install --force
+mkdir builddir
+cd builddir
+../configure --enable-static
+$MAKE $PARALLEL_MAKE check \
+ || cat-testlogs.sh
+$MAKE distcheck \
+ || cat-testlogs.sh