From c82a04dd185ae3534d3a35b5cfa36b2bb068527b Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 4 Jul 2023 11:27:13 +0000 Subject: [PATCH] Run Perl tests from our regress tree. It needs a Perl obj directory 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. --- regress/gnu/usr.bin/perl/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 regress/gnu/usr.bin/perl/Makefile diff --git a/regress/gnu/usr.bin/perl/Makefile b/regress/gnu/usr.bin/perl/Makefile new file mode 100644 index 00000000000..35e15b06a5d --- /dev/null +++ b/regress/gnu/usr.bin/perl/Makefile @@ -0,0 +1,16 @@ +# $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 -- 2.20.1