diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-03-13 02:49:03 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-03-13 02:49:03 +0800 |
commit | 1673d2b8e390cdebb3c29cd9189feb35d848a285 (patch) | |
tree | db9a322676847a7a572ee1b695e0f4e98bd3014a /Mk | |
parent | 7b338717bf92cdf652927d2b67a552f0e0162bb8 (diff) | |
download | freebsd-ports-gnome-1673d2b8e390cdebb3c29cd9189feb35d848a285.tar.gz freebsd-ports-gnome-1673d2b8e390cdebb3c29cd9189feb35d848a285.tar.zst freebsd-ports-gnome-1673d2b8e390cdebb3c29cd9189feb35d848a285.zip |
- Add regression-test: for all USES=perl5 ports
Approved by: mat (portmgr)
Tested by: sunpoet (myself, almost 2 years)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/perl5.mk | 13 |
1 files changed, 13 insertions, 0 deletions
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) |