build/pymake/tests/comment-parsing.mk

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 # where do comments take effect?
     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
    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