More tests. Boy, continuation lines are *weird*.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Mon, 26 Jan 2009 22:00:36 -0500
changeset 5 47e549d954f8
parent 4 8d28bd53484b
child 6 24730a932f2f
push id4
push userbsmedberg@mozilla.com
push date2009-01-27 03:01 +0000
More tests. Boy, continuation lines are *weird*.
tests/comment-parsing.mk
tests/line-continuations.mk
new file mode 100644
--- /dev/null
+++ b/tests/comment-parsing.mk
@@ -0,0 +1,13 @@
+# where do comments take effect?
+
+VAR = val1 # comment
+VAR2 = literal\#hash
+VAR3 = val3
+# This comment extends to the next line \
+VAR3 = ignored
+
+all:
+	test "$(VAR)" = "val1 "
+	test "$(VAR2)" = "literal#hash"
+	test "$(VAR3)" = "val3"
+	@echo "TEST-PASS"
new file mode 100644
--- /dev/null
+++ b/tests/line-continuations.mk
@@ -0,0 +1,10 @@
+SHELL = /Users/bsmedberg/bin/dump-args.py
+
+VAR = val1 	 \
+  	  val2  
+
+all:
+	test "$(VAR)" = "val1 val2  "
+	test "hello \
+	  world" = "hello   world"
+	@echo TEST-PASS
\ No newline at end of file