Module Name:    src
Committed By:   apb
Date:           Thu Aug 21 15:37:13 UTC 2014

Modified Files:
        src/usr.bin/make/unit-tests: Makefile
Added Files:
        src/usr.bin/make/unit-tests: varmisc.exp varmisc.mk

Log Message:
Add varmisc.mk, for miscellaneous variable tests.

For now, the only test is copied from
src/tests/usr.bin/make/d_unmatchedvarparen.mk.  This was
the only test in src/tests/usr.bin/make that was not also in
src/usr.bin/make/unit-tests.

XXX: src/tests/usr.bin/mk should be changed to reach over to
src/usr.bin/make/unit-tests, instead of keeping out of date copies
of the tests.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/varmisc.exp \
    src/usr.bin/make/unit-tests/varmisc.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.42 src/usr.bin/make/unit-tests/Makefile:1.43
--- src/usr.bin/make/unit-tests/Makefile:1.42	Thu Aug 21 13:44:51 2014
+++ src/usr.bin/make/unit-tests/Makefile	Thu Aug 21 15:37:13 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2014/08/21 13:44:51 apb Exp $
+# $NetBSD: Makefile,v 1.43 2014/08/21 15:37:13 apb Exp $
 #
 # Unit tests for make(1)
 # The main targets are:
@@ -48,6 +48,7 @@ TESTNAMES= \
 	unexport \
 	unexport-env \
 	varcmd \
+	varmisc \
 	varshell
 
 # Override make flags for certain tests

Added files:

Index: src/usr.bin/make/unit-tests/varmisc.exp
diff -u /dev/null src/usr.bin/make/unit-tests/varmisc.exp:1.1
--- /dev/null	Thu Aug 21 15:37:13 2014
+++ src/usr.bin/make/unit-tests/varmisc.exp	Thu Aug 21 15:37:13 2014
@@ -0,0 +1,2 @@
+
+exit status 0
Index: src/usr.bin/make/unit-tests/varmisc.mk
diff -u /dev/null src/usr.bin/make/unit-tests/varmisc.mk:1.1
--- /dev/null	Thu Aug 21 15:37:13 2014
+++ src/usr.bin/make/unit-tests/varmisc.mk	Thu Aug 21 15:37:13 2014
@@ -0,0 +1,8 @@
+# $Id: varmisc.mk,v 1.1 2014/08/21 15:37:13 apb Exp $
+#
+# Miscellaneous variable tests.
+
+all: unmatched_var_paren
+
+unmatched_var_paren:
+	@echo $(foo::=foo-text)

Reply via email to