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 a unit-test for comments.



details:   https://anonhg.NetBSD.org/src/rev/1c1de4a222c4
branches:  trunk
changeset: 582082:1c1de4a222c4
user:      rpaulo <rpaulo%NetBSD.org@localhost>
date:      Wed Jun 15 22:32:22 2005 +0000

description:
Add a unit-test for comments.
Addition to PR bin/17732.
Approved by sjg and christos.

diffstat:

 usr.bin/make/unit-tests/Makefile |   3 ++-
 usr.bin/make/unit-tests/comment  |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r 2c89c78d4295 -r 1c1de4a222c4 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Wed Jun 15 22:26:54 2005 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Wed Jun 15 22:32:22 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2005/06/01 17:17:34 sjg Exp $
+# $NetBSD: Makefile,v 1.16 2005/06/15 22:32:22 rpaulo Exp $
 #
 # Unit tests for make(1)
 # The main targets are:
@@ -19,6 +19,7 @@
 # Simple sub-makefiles - we run them as a black box
 # keep the list sorted.
 SUBFILES= \
+       comment \
        cond1 \
        modmatch \
        modorder \
diff -r 2c89c78d4295 -r 1c1de4a222c4 usr.bin/make/unit-tests/comment
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/make/unit-tests/comment   Wed Jun 15 22:32:22 2005 +0000
@@ -0,0 +1,23 @@
+# This is a comment
+.if ${MACHINE_ARCH} == something
+FOO=bar
+.endif
+
+#\
+       Multiline comment
+
+# This is an escaped comment \
+that keeps going until the end of this line
+
+# Another escaped comment \
+that \
+goes \
+on
+
+# This is NOT an escaped comment due to the double backslashes \\
+all: foo
+       @echo comment testing done
+
+foo:
+       @echo this is $@
+



Home | Main Index | Thread Index | Old Index