Date: Wed, 3 Jul 2024 21:26:35 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: ports@freebsd.org Subject: poudriere and make do-test Message-ID: <160984302.11834.1720034795450@localhost>
next in thread | raw e-mail | index | archive | help
------=_Part_11833_598415200.1720034795397 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, I am trying to give my ports some basic test to verify if it generates working executables. I implemented it by adding a do-test target in the Makefile. diff --git a/databases/mongodb60/Makefile b/databases/mongodb60/Makefile index 654d6a78fb94..355df66fd053 100644 --- a/databases/mongodb60/Makefile +++ b/databases/mongodb60/Makefile @@ -145,4 +145,8 @@ do-install: .endfor ${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py +do-test: + ${STAGEDIR}${PREFIX}/bin/mongod -version \ + && ${STAGEDIR}${PREFIX}/bin/mongos -version + .include <bsd.port.post.mk> How do I get poudriere to execute this 'make do-test'? poudriere bulk -t as well as poudriere testport do not seem to execute do-test. I'm searching for documentation about this but the info I find is quite sparse. Regards, Ronald. ------=_Part_11833_598415200.1720034795397 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html><head></head><body>Hi,<br> <br> I am trying to give my ports some basic test to verify if it generates working executables.<br> <br> I implemented it by adding a do-test target in the Makefile.<br> <br> diff --git a/databases/mongodb60/Makefile b/databases/mongodb60/Makefile<br> index 654d6a78fb94..355df66fd053 100644<br> --- a/databases/mongodb60/Makefile<br> +++ b/databases/mongodb60/Makefile<br> @@ -145,4 +145,8 @@ do-install:<br> .endfor<br> ${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py<br> <br> +do-test:<br> + ${STAGEDIR}${PREFIX}/bin/mongod -version \<br> + && ${STAGEDIR}${PREFIX}/bin/mongos -version<br> +<br> .include <bsd.port.post.mk><br> <br> <br> <br> How do I get poudriere to execute this 'make do-test'? poudriere bulk -t as well as poudriere testport do not seem to execute do-test.<br> <br> I'm searching for documentation about this but the info I find is quite sparse.<br> <br> Regards,<br> Ronald.<br> </body></html> ------=_Part_11833_598415200.1720034795397--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?160984302.11834.1720034795450>