Allow make to fail if missing modules for test dependencies

e.g. make STRICT_TESTS=1

However we don't need this in .travis.yml as explained in the
comments.
This commit is contained in:
Adam Spiers 2019-06-28 20:21:41 +01:00
parent 651f1e6503
commit ba243c0a61
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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])