aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/directive-for-escape.exp
blob: 1f6c6bcc31092949cb804f0fc9f45cc2e5b79a25 (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
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 variable 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 variable 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 = ${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 99: ${UNDEF:U\backslash$
For: loop body with i = {{}}:
.  info ${:U{{\}\}}
make: "directive-for-escape.mk" line 99: {{}}
For: loop body with i = end}:
.  info ${:Uend\}}
make: "directive-for-escape.mk" line 99: 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 120: begin<fallback>end
For: end for 1
For: loop body with i = $:
.  info ${:U\$}
make: "directive-for-escape.mk" line 129: $
make: "directive-for-escape.mk" line 138: invalid character ':' in .for loop variable name
For: end for 1
make: "directive-for-escape.mk" line 148: 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 157: .        $i: inner
make: "directive-for-escape.mk" line 158: .      ${i}: inner
make: "directive-for-escape.mk" line 159: .   ${i:M*}: inner
make: "directive-for-escape.mk" line 160: .      $(i): inner
make: "directive-for-escape.mk" line 161: .   $(i:M*): inner
make: "directive-for-escape.mk" line 162: . ${i${:U}}: outer
make: "directive-for-escape.mk" line 163: .    ${i\}}: inner}
make: "directive-for-escape.mk" line 164: .     ${i2}: two
make: "directive-for-escape.mk" line 165: .     ${i,}: comma
make: "directive-for-escape.mk" line 166: .  adjacent: innerinnerinnerinner
make: "directive-for-escape.mk" line 185: invalid character '$' in .for loop variable name
For: end for 1
make: "directive-for-escape.mk" line 197: eight  and no cents.
For: end for 1
make: "directive-for-escape.mk" line 210: newline in .for value
make: "directive-for-escape.mk" line 210: newline in .for value
For: loop body with i = "
":
.  info short: ${:U" "}
.  info long: ${:U" "}
make: "directive-for-escape.mk" line 211: short: " "
make: "directive-for-escape.mk" line 212: long: " "
For: end for 1
For: loop body with i = "
":
For: end for 1
Parse_PushInput: .for loop in directive-for-escape.mk, line 228
make: "directive-for-escape.mk" line 228: newline in .for value
	in .for loop from directive-for-escape.mk:228 with i = "
"
For: loop body with i = "
":
: ${:U" "}
SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk'
Parsing line 229: : ${:U" "}
ParseDependency(: " ")
ParseEOF: returning to file directive-for-escape.mk, line 231
SetFilenameVars: ${.PARSEDIR} = <some-dir> ${.PARSEFILE} = `directive-for-escape.mk'
Parsing line 231: .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\}\}\}}
make: Fatal errors encountered -- cannot continue
make: stopped in unit-tests
exit status 1