Date: Wed, 12 Mar 2014 18:49:03 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347996 - head/Mk/Uses Message-ID: <201403121849.s2CIn32B044248@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Wed Mar 12 18:49:03 2014 New Revision: 347996 URL: http://svnweb.freebsd.org/changeset/ports/347996 QAT: https://qat.redports.org/buildarchive/r347996/ Log: - Add regression-test: for all USES=perl5 ports Approved by: mat (portmgr) Tested by: sunpoet (myself, almost 2 years) Modified: head/Mk/Uses/perl5.mk Modified: head/Mk/Uses/perl5.mk ============================================================================== --- head/Mk/Uses/perl5.mk Wed Mar 12 18:47:43 2014 (r347995) +++ head/Mk/Uses/perl5.mk Wed Mar 12 18:49:03 2014 (r347996) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403121849.s2CIn32B044248>