From nobody Wed Jul 03 19:26:35 2024 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WDqXN1KYZz5Q4KZ for ; Wed, 03 Jul 2024 19:26:44 +0000 (UTC) (envelope-from SRS0=SVmt=OD=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDqXL5NDxz4YBV for ; Wed, 3 Jul 2024 19:26:42 +0000 (UTC) (envelope-from SRS0=SVmt=OD=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=MYfw0JNh; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=SVmt=OD=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=SVmt=OD=klop.ws=ronald-lists@realworks.nl" Date: Wed, 3 Jul 2024 21:26:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1720034795; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=dwK0ucqH1gdfF9yumSZZKXj/Rh/bnqeEE9zTdawJY7U=; b=MYfw0JNh6uCyk9oNpo3rGWpNkzuFfnPp7r5P6SnjDhvtN4AB2jxtRSxWTDCVagcC/Ybaai 1JknLlQEKa/10ri2F9J2FgRpZCjGO0evIJcpRyoFc9j7Ecn6cJ7X7bsyG7ZgYvHmpVIbYe V0ca5yw2vd81xpV5atKr9FLFeW5NvlKAUrQ/b5wXEh6561r4Mbkn/aqftHmxgaMSDA5TTE 9JCk7pV5ix6U2L2MXNAUgK9sCjczkBNLPT2KOAaaeQ2t4/bR3dLudSyd1QxTyBd1gtM2jK rVLgeOyE2XXET7NNu/nZkvZUMKW3j+sIs8NiHGvz5xLIS4owNcFhx2U8BBIvgg== From: Ronald Klop To: ports@freebsd.org Message-ID: <160984302.11834.1720034795450@localhost> Subject: poudriere and make do-test List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11833_598415200.1720034795397" X-Mailer: Realworks (708.120) Importance: Normal X-Priority: 3 (Normal) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=SVmt=OD=klop.ws=ronald-lists@realworks.nl]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=SVmt=OD=klop.ws=ronald-lists@realworks.nl]; TO_DN_NONE(0.00)[]; HAS_X_PRIO_THREE(0.00)[3]; DKIM_TRACE(0.00)[klop.ws:+] X-Rspamd-Queue-Id: 4WDqXL5NDxz4YBV ------=_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 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 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--