Re: poudriere and make do-test
- In reply to: Ronald Klop : "poudriere and make do-test"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Jul 2024 18:35:05 UTC
On Wed, Jul 03, 2024 at 09:26:35PM +0200, Ronald Klop wrote: > 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 created a small script: -- begin script -- #!/bin/sh if [ $# -eq 0 ]; then port=$(make -VPKGORIGIN) else port=$1 fi portsdir=$(poudriere ports -lq | awk '{print $5}') testDependsRaw=$(make -C "${portsdir}/${port}" -VTEST_DEPENDS) testDepends=$(echo ${testDependsRaw} | sed 's,[^ ]*:,,g') firstJail=$(poudriere jails -lqn | head -n 1) poudriere bulk -i -j "${firstJail}" ${port} ${testDepends} -- end script -- If you don't add any option the script assume the port is the current directory (make -VPKGORIGIN). After enter the jail (poudriere bulk -i): su cd /usr/ports/... make test I didn't find better solution. Cheers Zsolt