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