xref: /freebsd/contrib/bmake/unit-tests/cond-token-plain.exp (revision 759b177aecbfc49ebc900739954ac56b1aa5fc53)
1956e45f6SSimon J. GerratyCondParser_Eval: ${:Uvalue} != value
21d3f2ddcSSimon J. GerratyComparing "value" != "value"
3956e45f6SSimon J. GerratyCondParser_Eval: ${:U} != "
41d3f2ddcSSimon J. GerratyComparing "" != ""
5956e45f6SSimon J. GerratyCondParser_Eval: ${:U#hash} != "#hash"
61d3f2ddcSSimon J. GerratyComparing "#hash" != "#hash"
7956e45f6SSimon J. GerratyCondParser_Eval: ${:U\\} != "\\
81d3f2ddcSSimon J. GerratyComparing "\" != "\"
9956e45f6SSimon J. GerratyCondParser_Eval: ${:U#hash} != #hash
101d3f2ddcSSimon J. GerratyComparing "#hash" != "#hash"
11956e45f6SSimon J. GerratyCondParser_Eval: 0 # This is treated as a comment, but why?
12956e45f6SSimon J. GerratyCondParser_Eval: ${0 # comment:?yes:no} != no
13956e45f6SSimon J. GerratyCondParser_Eval: 0 # comment
141d3f2ddcSSimon J. GerratyComparing "no" != "no"
15956e45f6SSimon J. GerratyCondParser_Eval: ${1 # comment:?yes:no} != yes
16956e45f6SSimon J. GerratyCondParser_Eval: 1 # comment
171d3f2ddcSSimon J. GerratyComparing "yes" != "yes"
18956e45f6SSimon J. GerratyCondParser_Eval: ${UNDEF:Uundefined}!=undefined
191d3f2ddcSSimon J. GerratyComparing "undefined" != "undefined"
20956e45f6SSimon J. GerratyCondParser_Eval: ${UNDEF:U12345}>12345
211d3f2ddcSSimon J. GerratyComparing 12345.000000 > 12345.000000
22956e45f6SSimon J. GerratyCondParser_Eval: ${UNDEF:U12345}<12345
231d3f2ddcSSimon J. GerratyComparing 12345.000000 < 12345.000000
24956e45f6SSimon J. GerratyCondParser_Eval: (${UNDEF:U0})||0
25956e45f6SSimon J. GerratyCondParser_Eval: ${:Uvar}&&name != "var&&name"
261d3f2ddcSSimon J. GerratyComparing "var&&name" != "var&&name"
27956e45f6SSimon J. GerratyCondParser_Eval: ${:Uvar}||name != "var||name"
281d3f2ddcSSimon J. GerratyComparing "var||name" != "var||name"
29dba7b0efSSimon J. GerratyCondParser_Eval: bare
30*759b177aSSimon J. Gerratymake: cond-token-plain.mk:106: A bare word is treated like defined(...), and the variable 'bare' is not defined.
31dba7b0efSSimon J. GerratyCondParser_Eval: VAR
32*759b177aSSimon J. Gerratymake: cond-token-plain.mk:113: A bare word is treated like defined(...).
33dba7b0efSSimon J. GerratyCondParser_Eval: V${:UA}R
34*759b177aSSimon J. Gerratymake: cond-token-plain.mk:121: ok
35dba7b0efSSimon J. GerratyCondParser_Eval: V${UNDEF}AR
36*759b177aSSimon J. Gerratymake: cond-token-plain.mk:130: Undefined variables in bare words expand to an empty string.
37dba7b0efSSimon J. GerratyCondParser_Eval: 0${:Ux00}
38*759b177aSSimon J. Gerratymake: cond-token-plain.mk:139: Numbers can be composed from literals and expressions.
3912904384SSimon J. GerratyCondParser_Eval: 0${:Ux01}
40*759b177aSSimon J. Gerratymake: cond-token-plain.mk:144: Numbers can be composed from literals and expressions.
41dba7b0efSSimon J. GerratyCondParser_Eval: "" ==
42*759b177aSSimon J. Gerratymake: cond-token-plain.mk:151: Missing right-hand side of operator '=='
43dba7b0efSSimon J. GerratyCondParser_Eval: == ""
44*759b177aSSimon J. Gerratymake: cond-token-plain.mk:160: Malformed conditional '== ""'
45dba7b0efSSimon J. GerratyCondParser_Eval: \\
46*759b177aSSimon J. Gerratymake: cond-token-plain.mk:176: The variable '\\' is not defined.
47dba7b0efSSimon J. GerratyCondParser_Eval: \\
48*759b177aSSimon J. Gerratymake: cond-token-plain.mk:182: Now the variable '\\' is defined.
49dba7b0efSSimon J. GerratyCondParser_Eval: "unquoted\"quoted" != unquoted"quoted
501d3f2ddcSSimon J. GerratyComparing "unquoted"quoted" != "unquoted"quoted"
51dba7b0efSSimon J. GerratyCondParser_Eval: $$$$$$$$ != ""
52*759b177aSSimon J. Gerratymake: cond-token-plain.mk:197: Malformed conditional '$$$$$$$$ != ""'
5312904384SSimon J. GerratyCondParser_Eval: left == right
54*759b177aSSimon J. Gerratymake: cond-token-plain.mk:206: Malformed conditional 'left == right'
5512904384SSimon J. GerratyCondParser_Eval: ${0:?:} || left == right
5612904384SSimon J. GerratyCondParser_Eval: 0
57*759b177aSSimon J. Gerratymake: cond-token-plain.mk:212: Malformed conditional '${0:?:} || left == right'
5812904384SSimon J. GerratyCondParser_Eval: left == right || ${0:?:}
59*759b177aSSimon J. Gerratymake: cond-token-plain.mk:217: Malformed conditional 'left == right || ${0:?:}'
60*759b177aSSimon J. Gerratymake: cond-token-plain.mk:236: Malformed conditional 'VAR.${IF_COUNT::+=1} != ""'
61dba7b0efSSimon J. Gerratymake: Fatal errors encountered -- cannot continue
62dba7b0efSSimon J. Gerratymake: stopped in unit-tests
63dba7b0efSSimon J. Gerratyexit status 1
64