xref: /freebsd/contrib/bmake/unit-tests/cond-token-plain.exp (revision 7695ced633498a94c26466934321782acfc69307)
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 = >1
22CondParser_Eval: ${UNDEF:U12345}<12345
23lhs = 12345.000000, rhs = 12345.000000, op = <1
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 = !=
29exit status 0
30