Module Name: src
Committed By: christos
Date: Thu May 24 00:25:44 UTC 2018
Modified Files:
src/usr.bin/make/unit-tests: Makefile
Added Files:
src/usr.bin/make/unit-tests: varquote.exp varquote.mk
Log Message:
unit test for $ underquoting in :Q modifier
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/varquote.exp \
src/usr.bin/make/unit-tests/varquote.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.52 src/usr.bin/make/unit-tests/Makefile:1.53
--- src/usr.bin/make/unit-tests/Makefile:1.52 Tue May 5 17:51:09 2015
+++ src/usr.bin/make/unit-tests/Makefile Wed May 23 20:25:44 2018
@@ -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 @@ TESTNAMES= \
unexport-env \
varcmd \
varmisc \
+ varquote \
varshell
# these tests were broken by referting POSIX chanegs
Added files:
Index: src/usr.bin/make/unit-tests/varquote.exp
diff -u /dev/null src/usr.bin/make/unit-tests/varquote.exp:1.1
--- /dev/null Wed May 23 20:25:44 2018
+++ src/usr.bin/make/unit-tests/varquote.exp Wed May 23 20:25:44 2018
@@ -0,0 +1,2 @@
+-fdebug-prefix-map=$NETBSDSRCDIR=/usr/src -fdebug-regex-map=/usr/src/(.*)/obj$=/usr/obj/\1
+exit status 0
Index: src/usr.bin/make/unit-tests/varquote.mk
diff -u /dev/null src/usr.bin/make/unit-tests/varquote.mk:1.1
--- /dev/null Wed May 23 20:25:44 2018
+++ src/usr.bin/make/unit-tests/varquote.mk Wed May 23 20:25:44 2018
@@ -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