Home | History | Annotate | Line # | Download | only in unit-tests
cond-token-plain.exp revision 1.9
      1 CondParser_Eval: ${:Uvalue} != value
      2 lhs = "value", rhs = "value", op = !=
      3 CondParser_Eval: ${:U} != "
      4 lhs = "", rhs = "", op = !=
      5 CondParser_Eval: ${:U#hash} != "#hash"
      6 lhs = "#hash", rhs = "#hash", op = !=
      7 CondParser_Eval: ${:U\\} != "\\
      8 lhs = "\", rhs = "\", op = !=
      9 CondParser_Eval: ${:U#hash} != #hash
     10 lhs = "#hash", rhs = "#hash", op = !=
     11 CondParser_Eval: 0 # This is treated as a comment, but why?
     12 CondParser_Eval: ${0 # comment :?yes:no} != no
     13 CondParser_Eval: 0 # comment
     14 lhs = "no", rhs = "no", op = !=
     15 CondParser_Eval: ${1 # comment :?yes:no} != yes
     16 CondParser_Eval: 1 # comment
     17 lhs = "yes", rhs = "yes", op = !=
     18 CondParser_Eval: ${UNDEF:Uundefined}!=undefined
     19 lhs = "undefined", rhs = "undefined", op = !=
     20 CondParser_Eval: ${UNDEF:U12345}>12345
     21 lhs = 12345.000000, rhs = 12345.000000, op = >
     22 CondParser_Eval: ${UNDEF:U12345}<12345
     23 lhs = 12345.000000, rhs = 12345.000000, op = <
     24 CondParser_Eval: (${UNDEF:U0})||0
     25 CondParser_Eval: ${:Uvar}&&name != "var&&name"
     26 lhs = "var&&name", rhs = "var&&name", op = !=
     27 CondParser_Eval: ${:Uvar}||name != "var||name"
     28 lhs = "var||name", rhs = "var||name", op = !=
     29 CondParser_Eval: bare
     30 make: "cond-token-plain.mk" line 102: A bare word is treated like defined(...), and the variable 'bare' is not defined.
     31 CondParser_Eval: VAR
     32 make: "cond-token-plain.mk" line 107: A bare word is treated like defined(...).
     33 CondParser_Eval: V${:UA}R
     34 make: "cond-token-plain.mk" line 114: ok
     35 CondParser_Eval: V${UNDEF}AR
     36 make: "cond-token-plain.mk" line 122: Undefined variables in bare words expand to an empty string.
     37 CondParser_Eval: 0${:Ux00}
     38 make: "cond-token-plain.mk" line 130: Numbers can be composed from literals and variable expressions.
     39 CondParser_Eval: 0${:Ux01}
     40 make: "cond-token-plain.mk" line 134: Numbers can be composed from literals and variable expressions.
     41 CondParser_Eval: "" ==
     42 make: "cond-token-plain.mk" line 140: Missing right-hand-side of operator '=='
     43 CondParser_Eval: == ""
     44 make: "cond-token-plain.mk" line 148: Malformed conditional (== "")
     45 CondParser_Eval: \\
     46 make: "cond-token-plain.mk" line 163: The variable '\\' is not defined.
     47 CondParser_Eval: \\
     48 make: "cond-token-plain.mk" line 168: Now the variable '\\' is defined.
     49 CondParser_Eval: "unquoted\"quoted" != unquoted"quoted
     50 lhs = "unquoted"quoted", rhs = "unquoted"quoted", op = !=
     51 CondParser_Eval: $$$$$$$$ != ""
     52 make: Fatal errors encountered -- cannot continue
     53 make: stopped in unit-tests
     54 exit status 1
     55