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/02e6e33ae249
branches:  trunk
changeset: 957263:02e6e33ae249
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 bf8331f4e747 -r 02e6e33ae249 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