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 unit test for $ underquoting in :Q m...



details:   https://anonhg.NetBSD.org/src/rev/8a05dcec7fac
branches:  trunk
changeset: 322929:8a05dcec7fac
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 24 00:25:44 2018 +0000

description:
unit test for $ underquoting in :Q modifier

diffstat:

 usr.bin/make/unit-tests/Makefile     |   3 ++-
 usr.bin/make/unit-tests/varquote.exp |   2 ++
 usr.bin/make/unit-tests/varquote.mk  |  13 +++++++++++++
 3 files changed, 17 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r bb35aaa57c3b -r 8a05dcec7fac usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Wed May 23 23:56:07 2018 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Thu May 24 00:25:44 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2015/05/05 21:51:09 sjg Exp $
+# $NetBSD: Makefile,v 1.53 2018/05/24 00:25:44 christos Exp $
 #
 # Unit tests for make(1)
 # The main targets are:
@@ -50,6 +50,7 @@
        unexport-env \
        varcmd \
        varmisc \
+       varquote \
        varshell
 
 # these tests were broken by referting POSIX chanegs
diff -r bb35aaa57c3b -r 8a05dcec7fac usr.bin/make/unit-tests/varquote.exp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/varquote.exp      Thu May 24 00:25:44 2018 +0000
@@ -0,0 +1,2 @@
+-fdebug-prefix-map=$NETBSDSRCDIR=/usr/src -fdebug-regex-map=/usr/src/(.*)/obj$=/usr/obj/\1
+exit status 0
diff -r bb35aaa57c3b -r 8a05dcec7fac usr.bin/make/unit-tests/varquote.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/varquote.mk       Thu May 24 00:25:44 2018 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: varquote.mk,v 1.1 2018/05/24 00:25:44 christos Exp $
+#
+# Test VAR:Q modifier
+
+.if !defined(REPROFLAGS)
+REPROFLAGS+=    -fdebug-prefix-map=\$$NETBSDSRCDIR=/usr/src
+REPROFLAGS+=    -fdebug-regex-map='/usr/src/(.*)/obj$$=/usr/obj/\1'
+all:
+       @${MAKE} -f ${MAKEFILE} REPROFLAGS=${REPROFLAGS:Q}
+.else
+all:
+       @echo ${REPROFLAGS}
+.endif



Home | Main Index | Thread Index | Old Index