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