From 10657ef0fc34bc1ed9157b8f3b8a9f59971cecb3 Mon Sep 17 00:00:00 2001 From: bluhm Date: Wed, 5 Jul 2023 21:38:22 +0000 Subject: [PATCH] Perl tests expect executable permission on source files to match the Perl distribution. Fix them in obj directory during test run. This seems easier than to fiddle with permissions in CVS. --- regress/gnu/usr.bin/perl/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/regress/gnu/usr.bin/perl/Makefile b/regress/gnu/usr.bin/perl/Makefile index 018637f845c..9ca83dee61a 100644 --- a/regress/gnu/usr.bin/perl/Makefile +++ b/regress/gnu/usr.bin/perl/Makefile @@ -1,14 +1,25 @@ -# $OpenBSD: Makefile,v 1.2 2023/07/04 19:01:46 anton Exp $ +# $OpenBSD: Makefile,v 1.3 2023/07/05 21:38:22 bluhm Exp $ .if ! (make(clean) || make(cleandir) || make(obj)) NCPU != /sbin/sysctl -n hw.ncpuonline .endif -REGRESS_TARGETS += build +REGRESS_SETUP_ONCE += build build: + # Makefile and Perl tree must exist in obj directory for testing. ${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_SETUP += permissions +permissions: + # The permissions in CVS tree are not as in the Perl distribution. + # Match expectations of t/porting/exec-bit.t and + # cpan/Test-Harness/t/source_tests/source.sh + awk '{print $$1}' ${BSDSRCDIR}/gnu/usr.bin/perl/MANIFEST |\ + ( cd ${BSDOBJDIR}/gnu/usr.bin/perl/ && xargs chmod -x ) + grep -v '^#' ${BSDSRCDIR}/gnu/usr.bin/perl/Porting/exec-bit.txt |\ + ( cd ${BSDOBJDIR}/gnu/usr.bin/perl/ && xargs chmod +x ) + REGRESS_TARGETS += test test: ${MAKE} -C ${BSDSRCDIR}/gnu/usr.bin/perl -f Makefile.bsd-wrapper test -- 2.20.1