build/pymake/tests/comment-parsing.mk

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:a2f3fb084f72
1 # where do comments take effect?
2
3 VAR = val1 # comment
4 VAR2 = lit2\#hash
5 VAR2_1 = lit2.1\\\#hash
6 VAR3 = val3
7 VAR4 = lit4\\#backslash
8 VAR4_1 = lit4\\\\#backslash
9 VAR5 = lit5\char
10 VAR6 = lit6\\char
11 VAR7 = lit7\\
12 VAR8 = lit8\\\\
13 VAR9 = lit9\\\\extra
14 # This comment extends to the next line \
15 VAR3 = ignored
16
17 all:
18 test "$(VAR)" = "val1 "
19 test "$(VAR2)" = "lit2#hash"
20 test '$(VAR2_1)' = 'lit2.1\#hash'
21 test "$(VAR3)" = "val3"
22 test '$(VAR4)' = 'lit4\'
23 test '$(VAR4_1)' = 'lit4\\'
24 test '$(VAR5)' = 'lit5\char'
25 test '$(VAR6)' = 'lit6\\char'
26 test '$(VAR7)' = 'lit7\\'
27 test '$(VAR8)' = 'lit8\\\\'
28 test '$(VAR9)' = 'lit9\\\\extra'
29 @echo "TEST-PASS"

mercurial