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