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