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 Limit output of export tests to POSI...



details:   https://anonhg.NetBSD.org/src/rev/9239b16d2d5e
branches:  trunk
changeset: 944773:9239b16d2d5e
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sat Oct 10 19:25:19 2020 +0000

description:
Limit output of export tests to POSIX compatible env vars

diffstat:

 usr.bin/make/unit-tests/Makefile   |  8 +++++++-
 usr.bin/make/unit-tests/export.exp |  1 -
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 849735eba910 -r 9239b16d2d5e usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Sat Oct 10 19:17:39 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Sat Oct 10 19:25:19 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.164 2020/10/08 19:11:35 rillig Exp $
+# $NetBSD: Makefile,v 1.165 2020/10/10 19:25:19 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -393,6 +393,12 @@
 FLAGS.varname-empty=   -dv '$${:U}=cmdline-u' '=cmline-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.job-output-long-lines= \
        ${:D Job separators on their own line are ok. } \
        -e '/^--- job-[ab] ---$$/d' \
diff -r 849735eba910 -r 9239b16d2d5e usr.bin/make/unit-tests/export.exp
--- a/usr.bin/make/unit-tests/export.exp        Sat Oct 10 19:17:39 2020 +0000
+++ b/usr.bin/make/unit-tests/export.exp        Sat Oct 10 19:25:19 2020 +0000
@@ -1,4 +1,3 @@
-&=ampersand
 MAKELEVEL=1
 UT_DOLLAR=This is $UT_FU
 UT_FOO=foobar is fubar



Home | Main Index | Thread Index | Old Index