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): add test for :Q and .newline



details:   https://anonhg.NetBSD.org/src/rev/6ca584207e20
branches:  trunk
changeset: 936224:6ca584207e20
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jul 21 21:34:41 2020 +0000

description:
make(1): add test for :Q and .newline

diffstat:

 usr.bin/make/unit-tests/modmisc.exp |  3 +++
 usr.bin/make/unit-tests/modmisc.mk  |  6 +++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 498a61d51112 -r 6ca584207e20 usr.bin/make/unit-tests/modmisc.exp
--- a/usr.bin/make/unit-tests/modmisc.exp       Tue Jul 21 21:32:55 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.exp       Tue Jul 21 21:34:41 2020 +0000
@@ -83,4 +83,7 @@
 mod-assign-nested: then3t3
 mod-assign-nested: else4e4
 mod-tu-space: A   B
+mod-Q: new
+
+line
 exit status 0
diff -r 498a61d51112 -r 6ca584207e20 usr.bin/make/unit-tests/modmisc.mk
--- a/usr.bin/make/unit-tests/modmisc.mk        Tue Jul 21 21:32:55 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.mk        Tue Jul 21 21:34:41 2020 +0000
@@ -1,4 +1,4 @@
-# $Id: modmisc.mk,v 1.18 2020/07/20 19:03:25 rillig Exp $
+# $Id: modmisc.mk,v 1.19 2020/07/21 21:34:41 rillig Exp $
 #
 # miscellaneous modifier tests
 
@@ -22,6 +22,7 @@
 all:   mod-assign
 all:   mod-assign-nested
 all:   mod-tu-space
+all:   mod-Q
 
 modsysv:
        @echo "The answer is ${libfoo.a:L:libfoo.a=42}"
@@ -172,3 +173,6 @@
        # as a single string, not as a list of words. Therefore,
        # the adjacent spaces are preserved.
        @echo $@: ${a   b:L:tu:Q}
+
+mod-Q:
+       @echo $@: new${.newline:Q}${.newline:Q}line



Home | Main Index | Thread Index | Old Index