xref: /freebsd/contrib/bmake/unit-tests/directive-for-escape.exp (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
1For: end for 1
2For: loop body with chars = !"#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~:
3.  info ${:U!"#$%&'()*+,-./0-9\:;<=>?@A-Z[\\]_^a-z{|\}~}
4make: Unclosed expression, expecting '}' for modifier "U!"" of variable "" with value "!""
5make: "directive-for-escape.mk" line 19: !"
6For: end for 1
7For: loop body with chars = !"\\#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~:
8.  info ${:U!"\\\\#$%&'()*+,-./0-9\:;<=>?@A-Z[\\]_^a-z{|\}~}
9make: Unclosed expression, expecting '}' for modifier "U!"\\\\" of variable "" with value "!"\\"
10make: "directive-for-escape.mk" line 30: !"\\
11For: end for 1
12For: loop body with i = $:
13.  info ${:U\$}
14make: "directive-for-escape.mk" line 45: $
15For: loop body with i = ${V}:
16.  info ${:U${V}}
17make: "directive-for-escape.mk" line 45: value
18For: loop body with i = ${V:=-with-modifier}:
19.  info ${:U${V:=-with-modifier}}
20make: "directive-for-escape.mk" line 45: value-with-modifier
21For: loop body with i = $(V):
22.  info ${:U$(V)}
23make: "directive-for-escape.mk" line 45: value
24For: loop body with i = $(V:=-with-modifier):
25.  info ${:U$(V:=-with-modifier)}
26make: "directive-for-escape.mk" line 45: value-with-modifier
27For: end for 1
28For: loop body with i = $:
29.  info ${:U\$}
30make: "directive-for-escape.mk" line 60: $
31For: loop body with i = ${V}:
32.  info ${:U${V}}
33make: "directive-for-escape.mk" line 60: value
34For: loop body with i = ${V:=-with-modifier}:
35.  info ${:U${V:=-with-modifier}}
36make: "directive-for-escape.mk" line 60: value-with-modifier
37For: loop body with i = $(V):
38.  info ${:U$(V)}
39make: "directive-for-escape.mk" line 60: value
40For: loop body with i = $(V:=-with-modifier):
41.  info ${:U$(V:=-with-modifier)}
42make: "directive-for-escape.mk" line 60: value-with-modifier
43For: end for 1
44For: loop body with i = ${UNDEF:U\$\$:
# ${:U\${UNDEF\:U\\$\\$
} 45For: loop body with i = {{}}: 46# ${:U{{\}\}} 47For: loop body with i = end}: 48# ${:Uend\}} 49For: end for 1 50For: loop body with i = ${UNDEF:U\$\$:
. info ${:U\${UNDEF\:U\\$\\$
} 51make: "directive-for-escape.mk" line 115: ${UNDEF:U\backslash$
For: loop body with i = {{
}}: 52. info ${:U{{\}\}} 53make: "directive-for-escape.mk" line 115: {{}} 54For: loop body with i = end}: 55. info ${:Uend\}} 56make: "directive-for-escape.mk" line 115: end} 57For: end for 1 58For: loop body with i = begin<${UNDEF:Ufallback:N{{{}}}}>end: 59. info ${:Ubegin<${UNDEF:Ufallback:N{{{}}}}>end} 60make: "directive-for-escape.mk" line 136: begin<fallback>end 61For: end for 1 62For: loop body with i = $: 63. info ${:U\$} 64make: "directive-for-escape.mk" line 145: $ 65make: "directive-for-escape.mk" line 154: invalid character ':' in .for loop variable name 66For: end for 1 67make: "directive-for-escape.mk" line 164: invalid character '}' in .for loop variable name 68For: end for 1 69For: end for 1 70For: loop body with i = inner: 71. info . $$i: ${:Uinner} 72. info . $${i}: ${:Uinner} 73. info . $${i:M*}: ${:Uinner:M*} 74. info . $$(i): $(:Uinner) 75. info . $$(i:M*): $(:Uinner:M*) 76. info . $${i$${:U}}: ${i${:U}} 77. info . $${i\}}: ${:Uinner\}} # XXX: unclear why ForLoop_SubstVarLong needs this 78. info . $${i2}: ${i2} 79. info . $${i,}: ${i,} 80. info . adjacent: ${:Uinner}${:Uinner}${:Uinner:M*}${:Uinner} 81make: "directive-for-escape.mk" line 173: . $i: inner 82make: "directive-for-escape.mk" line 174: . ${i}: inner 83make: "directive-for-escape.mk" line 175: . ${i:M*}: inner 84make: "directive-for-escape.mk" line 176: . $(i): inner 85make: "directive-for-escape.mk" line 177: . $(i:M*): inner 86make: "directive-for-escape.mk" line 178: . ${i${:U}}: outer 87make: "directive-for-escape.mk" line 179: . ${i\}}: inner} 88make: "directive-for-escape.mk" line 180: . ${i2}: two 89make: "directive-for-escape.mk" line 181: . ${i,}: comma 90make: "directive-for-escape.mk" line 182: . adjacent: innerinnerinnerinner 91make: "directive-for-escape.mk" line 201: invalid character '$' in .for loop variable name 92For: end for 1 93make: "directive-for-escape.mk" line 213: eight and no cents. 94For: end for 1 95make: "directive-for-escape.mk" line 226: newline in .for value 96make: "directive-for-escape.mk" line 226: newline in .for value 97For: loop body with i = " 98": 99. info short: ${:U" "} 100. info long: ${:U" "} 101make: "directive-for-escape.mk" line 227: short: " " 102make: "directive-for-escape.mk" line 228: long: " " 103For: end for 1 104For: loop body with i = " 105": 106Parsing line 244: .for i in "${.newline}" 107For: end for 1 108Parse_PushInput: .for loop in directive-for-escape.mk, line 244 109make: "directive-for-escape.mk" line 244: newline in .for value 110 in .for loop from directive-for-escape.mk:244 with i = " 111" 112For: loop body with i = " 113": 114: ${:U" "} 115SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk' 116Parsing line 245: : ${:U" "} 117ParseDependency(: " ") 118ParseEOF: returning to file directive-for-escape.mk, line 247 119SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk' 120Parsing line 247: .MAKEFLAGS: -d0 121ParseDependency(.MAKEFLAGS: -d0) 122For: end for 1 123For: loop body with i = #: 124# ${:U#} 125For: loop body with i = \\#: 126# ${:U\\\\#} 127For: end for 1 128For: loop body with i = $: 129# ${:U\$} 130For: loop body with i = $i: 131# ${:U$i} 132For: loop body with i = $(i): 133# ${:U$(i)} 134For: loop body with i = ${i}: 135# ${:U${i}} 136For: loop body with i = $$: 137# ${:U$$} 138For: loop body with i = $$$$: 139# ${:U$$$$} 140For: loop body with i = ${:U\$\$}: 141# ${:U${:U\$\$}} 142For: end for 1 143For: loop body with i = ${.TARGET}: 144# ${:U${.TARGET}} 145For: loop body with i = ${.TARGET}: 146# ${:U${.TARGET}} 147For: loop body with i = $${.TARGET}: 148# ${:U$${.TARGET\}} 149For: loop body with i = $${.TARGET}: 150# ${:U$${.TARGET\}} 151For: end for 1 152For: loop body with i = (((: 153# ${:U(((} 154For: loop body with i = {{{: 155# ${:U{{{} 156For: loop body with i = ))): 157# ${:U)))} 158For: loop body with i = }}}: 159# ${:U\}\}\}} 160For: end for 1 161For: loop body with , = 1: 162# $$i $i 163# VAR= $$i $i ${a:S,from${:U1}to,} 164VAR= $$i $i ${a:S,from${:U1}to,} 165make: Fatal errors encountered -- cannot continue 166make: stopped in unit-tests 167exit status 1 168