Expansions: new ${escape8bit:<string>} operator. Bug 1863
[exim.git] / test / stdout / 0002
CommitLineData
54c5ebb1
PH
1>
2> # These expansions can test variables in the configuration, but as there
3> # is no message being processed, there is no message-related data. But
4> # that of course gets tested in plenty of other places.
5>
6> # Some fixed variables
7>
8> exim_path: TESTSUITE/eximdir/exim
71224040 9> exim_version: x.yz
98b8312f
HSHR
10> config_dir: TESTSUITE
11> config_file: TESTSUITE/test-config
54c5ebb1
PH
12> primary_hostname: myhost.test.ex
13> primary_hostname: myhost.test.ex
14> qualify_domain: myhost.test.ex
15> bounce_return_size_limit: 102400
16> spool_directory: TESTSUITE/spool
0cd5fd23 17> queue_name:
54c5ebb1
PH
18> Failed: unknown variable in "${unknown}"
19> h_subject: (should be empty)
20> h_subject: (should be empty)
21> Failed: unknown expansion operator "header_subject"
22>
23> # $message_headers should be empty
24> message_headers: ><
25>
26> # Continuation
27> xy
28> xy
29>
30> # Overlong names and overbig numbers
31>
32> Failed: unknown variable name "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
33> Failed: unknown variable in "${aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}"
34> +
35> +
36>
29f89cad
PH
37> # List operations
38>
39> filter: "a:b:c"
40> filter: a:c
41> filter: a'c
42> filter: ''a' ''c
43> filter: ""
44>
45> map: ""
46> map: a:b:c
47> map: ::a::: ::b::: ::c::
48> map: fail string
49> map: []:[b]:[c]
50>
51> reduce: "+"
52> reduce: +abc
53> reduce: 6
54> reduce: 9
55>
a64a3dfa
JH
56> listnamed: *.aa.bb : ^\Nxxx(.*)
57> listnamed: *.aa.bb : ^\Nxxx(.*)
58> listnamed: V4NET.11.12.13 : iplsearch;TESTSUITE/aux-fixed/0002.iplsearch
59> listnamed: *.aa.bb : ^\Nxxx(.*) : ;;
60> listnamed: a : b;c : *.aa.bb : ^\Nxxx(.*) : ;; : 2001::630::212::8::204::::b664
042eb971 61> Failed: "nolist" is not a named list
a64a3dfa 62> listnamed: *.aa.bb : ^\Nxxx(.*)
042eb971
JH
63> Failed: "hlist" is not a domain named list
64> Failed: bad suffix on "list" operator
65>
a64a3dfa
JH
66> listcount: 3
67> listcount: 0
68> listcount: 3
69> listcount: 2
042eb971 70>
aa26e137
JH
71> listextract: b
72> listextract: XcX
73> listextract:
74> listextract:
75> listextract: fail
f90d49f7 76> Failed: "listextract" failed and "fail" requested
aa26e137 77>
ac4ef9bd
JH
78> sort: 1:2:3:4
79> sort: 4,3,2,1
80> sort: a:aa:B:c
81> sort: 10 smtp.ex.com:100 r2.ex.com:666 r99.ex.com
82> sort: 10,smtp.ex.com:100,r2.ex.com:666,r99.ex.com
83> sort: ""
84>
ec95d1a6
PH
85> # Tests with iscntrl() and illegal separators
86>
87> map: 'a'
88''
89'b'
90'c'
91>
92> Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "0+") inside "reduce" item
93> reduce: 6
94> reduce: 6
95> reduce: 6
96>
54c5ebb1
PH
97> # Operators
98>
e47376be
JH
99> Failed: Not enough arguments for 'acl' (min is 1)
100> Failed: Not enough arguments for 'acl' (min is 1)
bef3ea7f 101> Failed: error from acl "a_nosuch"
525239c1
JH
102> acl: (0) [] []
103> acl: (1) [person@dom.ain] []
104> acl: (2) [firstarg] [secondarg]
105> acl: (1) [arg with spaces] []
723c72e6
JH
106> acl:
107> acl:
bef3ea7f
JH
108> acl: (0) [] []
109> acl: (1) [person@dom.ain] []
110> Failed: error from acl "a_defer"
111> acl: (2) [new arg1] [top_arg_1]
525239c1 112> acl: (1) [1] [] (1) [2] [] (1) [3] [] (1) [4] []
723c72e6 113>
54c5ebb1
PH
114> addrss: local-part@dom.ain
115> addrss: local-part@dom.ain
116> domain: dom.ain
117> domain: dom.ain
29f89cad
PH
118>
119> addresses: ''abc@xyz' ''pqr@xyz
120> addresses: local-part@dom.ain
121> addresses: local-part@dom.ain+xyz@abc
122> addresses: local-part@dom.ain:xyz@abc:p@q:r@s
123> addresses:
124>
3367f8c2
JH
125> escape: B7\267F2\362
126> excape8bit: undisturbed text tab
127newline tab\134backslash ~tilde\177DEL\200\201.
128>
54c5ebb1
PH
129> eval: 2
130> eval: 7
131> eval: 9
132> eval: 4
133> eval: 6
134> eval: 42
135> Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "")
136> eval: -2
137> eval: 1
138> eval: 1
139> Failed: error in expression evaluation: expecting closing parenthesis (after processing "-2 - (-3")
af561417 140> Failed: error in expression evaluation: expecting operator (after processing "-2 - -3")
54c5ebb1
PH
141> eval: 1
142> eval: -5
af561417 143> eval: 1
54c5ebb1
PH
144> eval: 40962
145> eval: 63
af561417 146> Failed: error in expression evaluation: expecting operator (after processing "0")
54c5ebb1
PH
147> eval10: 77
148> eval10: 8
af561417
PH
149> Failed: error in expression evaluation: expecting operator (after processing "0")
150> eval: 4
151> eval: 4
152> eval: 4
153> eval: 13
154> eval: 9
155> eval: 6
156> eval: 3
157> eval: 0
158> eval: 24
159> eval: 4608
160> eval: 4608
161> eval: -4608
162>
54c5ebb1
PH
163> expand: $primary_hostname myhost.test.ex
164> hash: jmg monty fbWx
165> hash: abcX abX aX X
166> hex2b64:EjRWeA==
167> hex2b64:q83v
168> hex2b64:q83v
169> hex2b64:Gis8TV5v
170> Failed: "1a2b3c4d5e6" contains an odd number of characters
171> Failed: "1a2b3c4d5e6g" is not a hex string
172> hex2b64:MPPJPkZDbetYunCBao7BJA==
173> hex2b64:ztcfpyNSMb7Tg/rP3EHE3cwi7PE=
174>
03ca21f8
JH
175> base32: 0 <>
176> base32: 1 <b>
177> base32: 31 <7>
178> base32: 32 <ba>
179> base32: 42 <bk>
180> Failed: argument for base32 operator is "0x1", which is not a decimal number
181>
182> base32d: 0 0
183> base32d: 1 1
184> base32d: 31 31
185> base32d: 32 32
186> base32d: 42 42
187> Failed: argument for base32d operator is "ABC", which is not a base 32 number
188>
54c5ebb1
PH
189> The base62 operator is actually a base36 operator in the Darwin and Cygwin
190> environments. Write cunning tests that produce the same output in both cases,
191> while doing a reasonable check.
192>
193> base62: OK
194> base62d: OK
195> base62d: OK
196> Failed: argument for base62 operator is "12345x", which is not a decimal number
197> Failed: argument for base62d operator is "0003D7.", which is not a base 36/62 number
198>
199> hmac: dd97e3ba5d1a61b5006108f8c8252953
200> hmac: 0210cf9d274b53f1550f657c378b29e8bfed1064
201> md5: 77add1d5f41223d5582fca736a5cb335
202> sha1: DA39A3EE5E6B4B0D3255BFEF95601890AFD80709
203> sha1: A9993E364706816ABA3E25717850C26C9CD0D89D
204> mask: 192.168.10.192/28
205> mask: 192.168.10.206/32
206> Failed: mask value too big in "192.168.10.206/33"
207> mask: 0.0.0.0/0
208> Failed: missing mask value in "192.168.10.206"
209> Failed: "a.b.c.d" is not an IP address
fc4a7f70
JH
210> ipv6denorm: 0000:0000:0000:0000:0000:0000:0000:0001
211> ipv6denorm: fe00:0000:0000:0000:0000:0000:0000:0001
212> ipv6denorm: 0000:0000:0000:0000:0000:ffff:c0a8:0001
213> ipv6denorm: fe80:0000:0000:0000:0000:0000:c0a8:0001
214> ipv6norm: ::1
215> ipv6norm: 2a00::
216> ipv6norm: 2a00::1
217> ipv6norm: 2a00:eadf::1:0
218> ipv6norm: 2a00:eadf:0:1::
219> ipv6norm: 2a00::
220> ipv6norm: 2a00:2:3:4:5:6:7:8
54c5ebb1
PH
221> nhash: 19 0/61
222> lc/uc: the quick BROWN FOX
223> length: The quick abc
224> lclpt: local-part
225> lclpt: local-part
226> quote: aZ09_.-Q "ab*cd" "abcd\"ef"
227> quote: "nl(\n)"
228> quote: "cr(\r)"
229> quote: "tab( )"
230