summaryrefslogtreecommitdiff
path: root/unit-tests
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2018-12-06 00:13:35 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2018-12-06 00:13:35 +0000
commit14ed4acf373acf4a08f80acf1689d5f967460af0 (patch)
treebeec9a380ea6fe2383a4876e5a908622d6e16edf /unit-tests
parenta5422567f996e7316e1e9471b8b993f146212fcd (diff)
Import bmake-20180919vendor/NetBSD/bmake/20180919
Diffstat (limited to 'unit-tests')
-rw-r--r--unit-tests/Makefile.in5
-rw-r--r--unit-tests/varquote.exp3
-rw-r--r--unit-tests/varquote.mk14
3 files changed, 20 insertions, 2 deletions
diff --git a/unit-tests/Makefile.in b/unit-tests/Makefile.in
index 4ee94bd87f68..e51d25455a50 100644
--- a/unit-tests/Makefile.in
+++ b/unit-tests/Makefile.in
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.48 2015/12/07 04:06:29 sjg Exp $
+# $Id: Makefile.in,v 1.49 2018/09/21 21:39:05 sjg Exp $
#
-# $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:
@@ -54,6 +54,7 @@ TESTNAMES= \
unexport-env \
varcmd \
varmisc \
+ varquote \
varshell
# these tests were broken by referting POSIX chanegs
diff --git a/unit-tests/varquote.exp b/unit-tests/varquote.exp
new file mode 100644
index 000000000000..63107bfd34f5
--- /dev/null
+++ b/unit-tests/varquote.exp
@@ -0,0 +1,3 @@
+-fdebug-prefix-map=$NETBSDSRCDIR=/usr/src -fdebug-regex-map=/usr/src/(.*)/obj$=/usr/obj/\1
+-fdebug-prefix-map=$NETBSDSRCDIR=/usr/src -fdebug-regex-map=/usr/src/(.*)/obj$=/usr/obj/\1
+exit status 0
diff --git a/unit-tests/varquote.mk b/unit-tests/varquote.mk
new file mode 100644
index 000000000000..571f262fd91e
--- /dev/null
+++ b/unit-tests/varquote.mk
@@ -0,0 +1,14 @@
+# $NetBSD: varquote.mk,v 1.2 2018/05/27 01:14:51 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:S/\$/&&/g:Q}
+ @${MAKE} -f ${MAKEFILE} REPROFLAGS=${REPROFLAGS:q}
+.else
+all:
+ @echo ${REPROFLAGS}
+.endif