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 Add varmisc.mk, for miscellaneous va...



details:   https://anonhg.NetBSD.org/src/rev/5b8b5b4d549b
branches:  trunk
changeset: 801866:5b8b5b4d549b
user:      apb <apb%NetBSD.org@localhost>
date:      Thu Aug 21 15:37:13 2014 +0000

description:
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.

diffstat:

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

diffs (35 lines):

diff -r 1a4255213c71 -r 5b8b5b4d549b usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Thu Aug 21 15:27:37 2014 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Thu Aug 21 15:37:13 2014 +0000
@@ -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 @@
        unexport \
        unexport-env \
        varcmd \
+       varmisc \
        varshell
 
 # Override make flags for certain tests
diff -r 1a4255213c71 -r 5b8b5b4d549b usr.bin/make/unit-tests/varmisc.exp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/varmisc.exp       Thu Aug 21 15:37:13 2014 +0000
@@ -0,0 +1,2 @@
+
+exit status 0
diff -r 1a4255213c71 -r 5b8b5b4d549b usr.bin/make/unit-tests/varmisc.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/varmisc.mk        Thu Aug 21 15:37:13 2014 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index