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