xref: /freebsd/contrib/bmake/unit-tests/varmod-select-words.exp (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1make: Bad modifier ":[]" for variable "LIST"
2LIST:[]="" is an error
3LIST:[0]="one two three four five six"
4LIST:[0x0]="one two three four five six"
5LIST:[000]="one two three four five six"
6LIST:[*]="one two three four five six"
7LIST:[@]="one two three four five six"
8LIST:[0]:C/ /,/="one,two three four five six"
9LIST:[0]:C/ /,/g="one,two,three,four,five,six"
10LIST:[0]:C/ /,/1g="one,two,three,four,five,six"
11LIST:[*]:C/ /,/="one,two three four five six"
12LIST:[*]:C/ /,/g="one,two,three,four,five,six"
13LIST:[*]:C/ /,/1g="one,two,three,four,five,six"
14LIST:[@]:C/ /,/="one two three four five six"
15LIST:[@]:C/ /,/g="one two three four five six"
16LIST:[@]:C/ /,/1g="one two three four five six"
17LIST:[@]:[0]:C/ /,/="one,two three four five six"
18LIST:[0]:[@]:C/ /,/="one two three four five six"
19LIST:[@]:[*]:C/ /,/="one,two three four five six"
20LIST:[*]:[@]:C/ /,/="one two three four five six"
21EMPTY=""
22EMPTY:[#]="1" == 1 ?
23ESCAPEDSPACE="\ "
24ESCAPEDSPACE:[#]="1" == 1 ?
25REALLYSPACE=" "
26REALLYSPACE:[#]="1" == 1 ?
27LIST:[#]="6"
28LIST:[0]:[#]="1" == 1 ?
29LIST:[*]:[#]="1" == 1 ?
30LIST:[@]:[#]="6"
31LIST:[1]:[#]="1"
32LIST:[1..3]:[#]="3"
33EMPTY:[1]=""
34ESCAPEDSPACE="\ "
35ESCAPEDSPACE:[1]="\ "
36REALLYSPACE=" "
37REALLYSPACE:[1]="" == "" ?
38REALLYSPACE:[*]:[1]=" " == " " ?
39LIST:[1]="one"
40make: Bad modifier ":[1.]" for variable "LIST"
41LIST:[1.]="" is an error
42make: Bad modifier ":[1]." for variable "LIST"
43LIST:[1].="}" is an error
44LIST:[2]="two"
45LIST:[6]="six"
46LIST:[7]=""
47LIST:[999]=""
48make: Bad modifier ":[-]" for variable "LIST"
49LIST:[-]="" is an error
50make: Bad modifier ":[--]" for variable "LIST"
51LIST:[--]="" is an error
52LIST:[-1]="six"
53LIST:[-2]="five"
54LIST:[-6]="one"
55LIST:[-7]=""
56LIST:[-999]=""
57LONGLIST:[17]="17"
58LONGLIST:[0x11]="17"
59LONGLIST:[021]="17"
60LIST:[0]:[1]="one two three four five six"
61LIST:[*]:[1]="one two three four five six"
62LIST:[@]:[1]="one"
63LIST:[0]:[2]=""
64LIST:[*]:[2]=""
65LIST:[@]:[2]="two"
66LIST:[*]:C/ /,/:[2]=""
67LIST:[*]:C/ /,/:[*]:[2]=""
68LIST:[*]:C/ /,/:[@]:[2]="three"
69LONGLIST:[012..0x12]="10 11 12 13 14 15 16 17 18"
70make: Bad modifier ":[1.]" for variable "LIST"
71LIST:[1.]="" is an error
72make: Bad modifier ":[1..]" for variable "LIST"
73LIST:[1..]="" is an error
74make: Bad modifier ":[1.. ]" for variable "LIST"
75LIST:[1.. ]="" is an error
76LIST:[1..1]="one"
77make: Bad modifier ":[1..1.]" for variable "LIST"
78LIST:[1..1.]="" is an error
79LIST:[1..2]="one two"
80LIST:[2..1]="two one"
81LIST:[3..-2]="three four five"
82LIST:[-4..4]="three four"
83make: Bad modifier ":[0..1]" for variable "LIST"
84LIST:[0..1]="" is an error
85make: Bad modifier ":[-1..0]" for variable "LIST"
86LIST:[-1..0]="" is an error
87LIST:[-1..1]="six five four three two one"
88LIST:[0..0]="one two three four five six"
89LIST:[3..99]="three four five six"
90LIST:[-3..-99]="four three two one"
91LIST:[-99..-3]="one two three four"
92HASH="#" == "#" ?
93LIST:[${HASH}]="6"
94LIST:[${ZERO}]="one two three four five six"
95LIST:[${ZERO}x${ONE}]="one"
96LIST:[${ONE}]="one"
97LIST:[${MINUSONE}]="six"
98LIST:[${STAR}]="one two three four five six"
99LIST:[${AT}]="one two three four five six"
100make: Bad modifier ":[${EMPTY" for variable "LIST"
LIST:[${EMPTY
}]="
" is an error 101LIST:[${LONGLIST:[21]:S/2//}]="one" 102LIST:[${LIST:[#]}]="six" 103LIST:[${LIST:[${HASH}]}]="six" 104LIST:[ -1.. +3]="six five four three" 105LIST:S/ /,/="one two three four five six" 106LIST:S/ /,/W="one,two three four five six" 107LIST:S/ /,/gW="one,two,three,four,five,six" 108EMPTY:S/^/,/="," 109EMPTY:S/^/,/W="," 110LIST:C/ /,/="one two three four five six" 111LIST:C/ /,/W="one,two three four five six" 112LIST:C/ /,/gW="one,two,three,four,five,six" 113EMPTY:C/^/,/="," 114EMPTY:C/^/,/W="," 115LIST:tW="one two three four five six" 116LIST:tw="one two three four five six" 117LIST:tW:C/ /,/="one,two three four five six" 118LIST:tW:C/ /,/g="one,two,three,four,five,six" 119LIST:tW:C/ /,/1g="one,two,three,four,five,six" 120LIST:tw:C/ /,/="one two three four five six" 121LIST:tw:C/ /,/g="one two three four five six" 122LIST:tw:C/ /,/1g="one two three four five six" 123LIST:tw:tW:C/ /,/="one,two three four five six" 124LIST:tW:tw:C/ /,/="one two three four five six" 125exit status 0 126