From 1673d2b8e390cdebb3c29cd9189feb35d848a285 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Wed, 12 Mar 2014 18:49:03 +0000 Subject: - Add regression-test: for all USES=perl5 ports Approved by: mat (portmgr) Tested by: sunpoet (myself, almost 2 years) --- Mk/Uses/perl5.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Mk') diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk index 2814a8703fba..3f624f7d21f0 100644 --- a/Mk/Uses/perl5.mk +++ b/Mk/Uses/perl5.mk @@ -259,4 +259,17 @@ do-install: post-stage:: -@[ -d ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto ] && ${FIND} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto -name .packlist -exec ${SED} -i '' 's|^${STAGEDIR}||' '{}' \; .endif + +.if !target(regression-test) +TEST_ARGS+= ${MAKE_ARGS} +TEST_ENV+= ${MAKE_ENV} +TEST_TARGET?= test +TEST_WRKSRC?= ${BUILD_WRKSRC} +regression-test test: build +.if ${USE_PERL5:Mmodbuild*} + -cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${PERL5} ${PL_BUILD} ${TEST_TARGET} ${TEST_ARGS} +.elif ${USE_PERL5:Mconfigure} + -cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${TEST_ARGS} ${TEST_TARGET} +.endif # USE_PERL5:Mmodbuild* +.endif # regression-test .endif # defined(_POSTMKINCLUDED) -- cgit