xref: /freebsd/contrib/bmake/unit-tests/directive-for-escape.exp (revision 4f8f43b06ed07e96a250855488cc531799d5b78f)
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 variable 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 variable 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": 106For: end for 1 107Parse_PushInput: .for loop in directive-for-escape.mk, line 244 108make: "directive-for-escape.mk" line 244: newline in .for value 109 in .for loop from directive-for-escape.mk:244 with i = " 110" 111For: loop body with i = " 112": 113: ${:U" "} 114SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk' 115Parsing line 245: : ${:U" "} 116ParseDependency(: " ") 117ParseEOF: returning to file directive-for-escape.mk, line 247 118SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk' 119Parsing line 247: .MAKEFLAGS: -d0 120ParseDependency(.MAKEFLAGS: -d0) 121For: end for 1 122For: loop body with i = #: 123# ${:U#} 124For: loop body with i = \\#: 125# ${:U\\\\#} 126For: end for 1 127For: loop body with i = $: 128# ${:U\$} 129For: loop body with i = $i: 130# ${:U$i} 131For: loop body with i = $(i): 132# ${:U$(i)} 133For: loop body with i = ${i}: 134# ${:U${i}} 135For: loop body with i = $$: 136# ${:U$$} 137For: loop body with i = $$$$: 138# ${:U$$$$} 139For: loop body with i = ${:U\$\$}: 140# ${:U${:U\$\$}} 141For: end for 1 142For: loop body with i = ${.TARGET}: 143# ${:U${.TARGET}} 144For: loop body with i = ${.TARGET}: 145# ${:U${.TARGET}} 146For: loop body with i = $${.TARGET}: 147# ${:U$${.TARGET\}} 148For: loop body with i = $${.TARGET}: 149# ${:U$${.TARGET\}} 150For: end for 1 151For: loop body with i = (((: 152# ${:U(((} 153For: loop body with i = {{{: 154# ${:U{{{} 155For: loop body with i = ))): 156# ${:U)))} 157For: loop body with i = }}}: 158# ${:U\}\}\}} 159For: end for 1 160For: loop body with , = 1: 161# $$i $i 162# VAR= $$i $i ${a:S,from${:U1}to,} 163VAR= $$i $i ${a:S,from${:U1}to,} 164make: Fatal errors encountered -- cannot continue 165make: stopped in unit-tests 166exit status 1 167