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