with Makefile. To create the test environment, use the
Makefile.bsd-wrapper in /usr/src/gnu/usr.bin/perl and build Perl
there if it does not exist. This allows to test Perl easily and
in a consistent manner. Do not link tests to regress tree due to
this reach around and the combination of build and test.
--- /dev/null
+# $OpenBSD: Makefile,v 1.1.1.1 2023/07/04 11:27:13 bluhm Exp $
+
+.if ! (make(clean) || make(cleandir) || make(obj))
+NCPU != /sbin/sysctl -n hw.ncpu
+.endif
+
+REGRESS_TARGETS += build
+build:
+ ${MAKE} -C ${BSDSRCDIR}/gnu/usr.bin/perl -f Makefile.bsd-wrapper obj
+ ${MAKE} -C ${BSDSRCDIR}/gnu/usr.bin/perl -f Makefile.bsd-wrapper -j ${NCPU} all
+
+REGRESS_TARGETS += test
+test:
+ ${MAKE} -C ${BSDSRCDIR}/gnu/usr.bin/perl -f Makefile.bsd-wrapper test
+
+.include <bsd.regress.mk>