build/pymake/tests/comment-parsing.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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