summaryrefslogtreecommitdiff
path: root/regress/gnu
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-07-04 11:27:14 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-07-04 11:27:14 +0000
commitcbeef76b0eae0df3bb4b773fd149788bc62b3488 (patch)
tree45f4f87714df57ad0460e25085a1a94a80c2e29d /regress/gnu
parent19508273c8461dfa64a17a72582e419da33bcd89 (diff)
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.
Diffstat (limited to 'regress/gnu')
-rw-r--r--regress/gnu/usr.bin/perl/Makefile16
1 files changed, 16 insertions, 0 deletions
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 <bsd.regress.mk>