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