Merge pull request #57 from aspiers/strict-tests

Allow make to fail if missing modules for test dependencies
This commit is contained in:
Adam Spiers 2019-06-28 20:33:30 +01:00 committed by GitHub
commit 8acb10e26c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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])