xref: /freebsd/contrib/bmake/unit-tests/cond-token-plain.exp (revision 19261079b74319502c6ffa1249920079f0f69a72)
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 102: A bare word is treated like defined(...), and the variable 'bare' is not defined.
31CondParser_Eval: VAR
32make: "cond-token-plain.mk" line 107: A bare word is treated like defined(...).
33CondParser_Eval: V${:UA}R
34make: "cond-token-plain.mk" line 114: ok
35CondParser_Eval: V${UNDEF}AR
36make: "cond-token-plain.mk" line 122: Undefined variables in bare words expand to an empty string.
37CondParser_Eval: 0${:Ux00}
38make: "cond-token-plain.mk" line 130: Numbers can be composed from literals and variable expressions.
39CondParser_Eval: 0${:Ux01}
40make: "cond-token-plain.mk" line 134: Numbers can be composed from literals and variable expressions.
41CondParser_Eval: "" ==
42make: "cond-token-plain.mk" line 140: Missing right-hand-side of operator '=='
43CondParser_Eval: == ""
44make: "cond-token-plain.mk" line 148: Malformed conditional (== "")
45CondParser_Eval: \\
46make: "cond-token-plain.mk" line 163: The variable '\\' is not defined.
47CondParser_Eval: \\
48make: "cond-token-plain.mk" line 168: Now the variable '\\' is defined.
49CondParser_Eval: "unquoted\"quoted" != unquoted"quoted
50lhs = "unquoted"quoted", rhs = "unquoted"quoted", op = !=
51CondParser_Eval: $$$$$$$$ != ""
52make: Fatal errors encountered -- cannot continue
53make: stopped in unit-tests
54exit status 1
55