This test means that everything I've been doing to parse variables is wrong (don't even try to parse recursively-expanded variables until they are used). Refactoring needed.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Sun, 08 Feb 2009 00:54:50 -0500
changeset 64 348f682e3943
parent 63 e3b7241989d1
child 65 5f3bbfab4910
push id37
push userbsmedberg@mozilla.com
push date2009-02-08 05:54 +0000
This test means that everything I've been doing to parse variables is wrong (don't even try to parse recursively-expanded variables until they are used). Refactoring needed.
tests/var-set.mk
new file mode 100644
--- /dev/null
+++ b/tests/var-set.mk
@@ -0,0 +1,14 @@
+TEST = $(TEST)
+
+TEST2 = $(TES
+TEST2 += T)
+
+TES T = val
+
+SETVAR = foo
+SETVAR += var baz 
+
+all:
+	test "$(TEST2)" = "val"
+	test "$(SETVAR)" = "foo var baz "
+	@echo TEST-PASS