aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/directive-for-escape.exp
blob: 59d4c2324f1541a9031882f202a20e8504bdc94d (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
For: end for 1
For: loop body:
.  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:
.  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 29: !"\\
For: end for 1
For: loop body:
.  info ${:U\$}
make: "directive-for-escape.mk" line 41: $
For: loop body:
.  info ${:U${V}}
make: "directive-for-escape.mk" line 41: value
For: loop body:
.  info ${:U${V:=-with-modifier}}
make: "directive-for-escape.mk" line 41: value-with-modifier
For: loop body:
.  info ${:U$(V)}
make: "directive-for-escape.mk" line 41: value
For: loop body:
.  info ${:U$(V:=-with-modifier)}
make: "directive-for-escape.mk" line 41: value-with-modifier
For: end for 1
For: loop body:
.  info ${:U\${UNDEF\:U\\$\\$}
make: "directive-for-escape.mk" line 55: ${UNDEF:U\$
For: loop body:
.  info ${:U{{\}\}}
make: "directive-for-escape.mk" line 55: {{}}
For: loop body:
.  info ${:Uend\}}
make: "directive-for-escape.mk" line 55: end}
For: end for 1
For: loop body:
.  info ${:Ubegin<${UNDEF:Ufallback:N{{{}}}}>end}
make: "directive-for-escape.mk" line 67: begin<fallback>end
For: end for 1
For: loop body:
.  info ${:U\$}
make: "directive-for-escape.mk" line 75: $
For: end for 1
For: loop body:
.  info ${NUMBERS} ${:Ureplaced}
make: "directive-for-escape.mk" line 83: one two three replaced
For: end for 1
For: loop body:
.  info ${:Ureplaced}
make: "directive-for-escape.mk" line 93: replaced
For: end for 1
For: loop body:
.  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 101: .        $i: inner
make: "directive-for-escape.mk" line 102: .      ${i}: inner
make: "directive-for-escape.mk" line 103: .   ${i:M*}: inner
make: "directive-for-escape.mk" line 104: .      $(i): inner
make: "directive-for-escape.mk" line 105: .   $(i:M*): inner
make: "directive-for-escape.mk" line 106: . ${i${:U}}: outer
make: "directive-for-escape.mk" line 107: .    ${i\}}: inner}
make: "directive-for-escape.mk" line 108: .     ${i2}: two
make: "directive-for-escape.mk" line 109: .     ${i,}: comma
make: "directive-for-escape.mk" line 110: .  adjacent: innerinnerinnerinner
exit status 0