xref: /freebsd/contrib/bmake/unit-tests/cond-token-plain.exp (revision a8c56be47166295d37600ff81fc1857db87b3a9b)
1CondParser_Eval: ${:Uvalue} != value
2Comparing "value" != "value"
3CondParser_Eval: ${:U} != "
4make: cond-token-plain.mk:19: Unfinished string literal """
5Comparing "" != ""
6CondParser_Eval: ${:U#hash} != "#hash"
7Comparing "#hash" != "#hash"
8CondParser_Eval: ${:U\\} != "\\
9make: cond-token-plain.mk:43: Unfinished string literal ""\\"
10Comparing "\" != "\"
11CondParser_Eval: ${:U#hash} != #hash
12Comparing "#hash" != "#hash"
13CondParser_Eval: 0 # This is treated as a comment, but why?
14CondParser_Eval: ${0 # comment:?yes:no} != no
15CondParser_Eval: 0 # comment
16Comparing "no" != "no"
17CondParser_Eval: ${1 # comment:?yes:no} != yes
18CondParser_Eval: 1 # comment
19Comparing "yes" != "yes"
20CondParser_Eval: ${UNDEF:Uundefined}!=undefined
21Comparing "undefined" != "undefined"
22CondParser_Eval: ${UNDEF:U12345}>12345
23Comparing 12345.000000 > 12345.000000
24CondParser_Eval: ${UNDEF:U12345}<12345
25Comparing 12345.000000 < 12345.000000
26CondParser_Eval: (${UNDEF:U0})||0
27CondParser_Eval: ${:Uvar}&&name != "var&&name"
28Comparing "var&&name" != "var&&name"
29CondParser_Eval: ${:Uvar}||name != "var||name"
30Comparing "var||name" != "var||name"
31CondParser_Eval: bare
32make: cond-token-plain.mk:106: A bare word is treated like defined(...), and the variable 'bare' is not defined.
33CondParser_Eval: VAR
34make: cond-token-plain.mk:113: A bare word is treated like defined(...).
35CondParser_Eval: V${:UA}R
36make: cond-token-plain.mk:121: ok
37CondParser_Eval: V${UNDEF}AR
38make: cond-token-plain.mk:130: Undefined variables in bare words expand to an empty string.
39CondParser_Eval: 0${:Ux00}
40make: cond-token-plain.mk:139: Numbers can be composed from literals and expressions.
41CondParser_Eval: 0${:Ux01}
42make: cond-token-plain.mk:144: Numbers can be composed from literals and expressions.
43CondParser_Eval: "" ==
44make: cond-token-plain.mk:151: Missing right-hand side of operator "=="
45CondParser_Eval: == ""
46make: cond-token-plain.mk:160: Malformed conditional "== """
47CondParser_Eval: \\
48make: cond-token-plain.mk:176: The variable '\\' is not defined.
49CondParser_Eval: \\
50make: cond-token-plain.mk:182: Now the variable '\\' is defined.
51CondParser_Eval: "unquoted\"quoted" != unquoted"quoted
52Comparing "unquoted"quoted" != "unquoted"quoted"
53CondParser_Eval: $$$$$$$$ != ""
54make: cond-token-plain.mk:197: Malformed conditional "$$$$$$$$ != """
55CondParser_Eval: left == right
56make: cond-token-plain.mk:206: Malformed conditional "left == right"
57CondParser_Eval: ${0:?:} || left == right
58CondParser_Eval: 0
59make: cond-token-plain.mk:212: Malformed conditional "${0:?:} || left == right"
60CondParser_Eval: left == right || ${0:?:}
61make: cond-token-plain.mk:217: Malformed conditional "left == right || ${0:?:}"
62make: cond-token-plain.mk:236: Malformed conditional "VAR.${IF_COUNT::+=1} != """
63make: cond-token-plain.mk:272: Unfinished backslash escape sequence
64	while evaluating condition " str == str\"
65make: cond-token-plain.mk:282: Unfinished backslash escape sequence
66	while evaluating condition " str == "str\"
67make: cond-token-plain.mk:282: Unfinished string literal ""str\"
68	while evaluating condition " str == "str\"
69make: cond-token-plain.mk:289: Unfinished string literal ""str"
70	while evaluating condition " str == "str"
71make: Fatal errors encountered -- cannot continue
72make: stopped in unit-tests
73exit status 1
74