summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spiers <stow@adamspiers.org>2019-06-28 20:33:30 +0100
committerGitHub <noreply@github.com>2019-06-28 20:33:30 +0100
commit8acb10e26cabac844846985e81dc3feefed10785 (patch)
treebea0c18dfd0dac4e8464b432961e532849a0bb9c
parent651f1e650300ef96bb84e5417287adda9773550a (diff)
parentba243c0a610b5060ea5b20826cc643e1c5c97e0a (diff)
downloadstow-8acb10e26cabac844846985e81dc3feefed10785.tar.gz
Merge pull request #57 from aspiers/strict-tests
Allow make to fail if missing modules for test dependencies
-rw-r--r--.travis.yml2
-rw-r--r--configure.ac5
2 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index f41c75f..cbd4ef6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,7 +15,9 @@ before_install:
install:
- autoreconf --install
- eval `perl -V:siteprefix`
+ # Note: this will complain Test::Output isn't yet installed:
- ./configure --prefix=$siteprefix && make
+ # but that's OK because we install it here:
- make cpanm
script:
- make distcheck
diff --git a/configure.ac b/configure.ac
index d22b1d4..699a88b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,9 +99,12 @@ EOF
!
! Please (re-)read INSTALL, then install the missing modules
! and try again.
-!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
EOF
+ if test -n "$STRICT_TESTS"; then
+ exit 1
+ fi
fi
]])
AC_SUBST([PMDIR])