Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): make configuration of expor...
details: https://anonhg.NetBSD.org/src/rev/30f8695bfdeb
branches: trunk
changeset: 978487:30f8695bfdeb
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Nov 22 18:44:10 2020 +0000
description:
make(1): make configuration of export tests simpler
The configuration section of unit-tests/Makefile is already complicated
enough to read, due to the excessive use of regular expressions.
Therefore, to keep the structuring elements at a minimum, inline the
.for loop.
diffstat:
usr.bin/make/unit-tests/Makefile | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diffs (25 lines):
diff -r f4b7586f714f -r 30f8695bfdeb usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Sun Nov 22 18:25:43 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile Sun Nov 22 18:44:10 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.215 2020/11/22 18:25:43 rillig Exp $
+# $NetBSD: Makefile,v 1.216 2020/11/22 18:44:10 rillig Exp $
#
# Unit tests for make(1)
#
@@ -428,12 +428,9 @@
FLAGS.varname-empty= -dv '$${:U}=cmdline-u' '=cmdline-plain'
# Some tests need extra postprocessing.
-SED_CMDS.export= \
- -e '/^[^=_A-Za-z0-9]*=/d'
-# these all share the same requirement
-.for t in export-all export-env
-SED_CMDS.$t= ${SED_CMDS.export}
-.endfor
+SED_CMDS.export= -e '/^[^=_A-Za-z0-9]*=/d'
+SED_CMDS.export-all= ${SED_CMDS.export}
+SED_CMDS.export-env= ${SED_CMDS.export}
SED_CMDS.job-output-long-lines= \
${:D Job separators on their own line are ok. } \
-e '/^--- job-[ab] ---$$/d' \
Home |
Main Index |
Thread Index |
Old Index