Add ${acl {name}{arg}} expansion item.
[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 }
83> Failed: acl "a_bad" did not accept
84> acl: []
85> acl: [person@dom.ain]
86> acl:
87> acl:
88> Failed: acl "a_deny" did not accept
89> Failed: acl "a_deny" did not accept
90> acl: [1] [2] [3] [4]
91>
54c5ebb1
PH
92> addrss: local-part@dom.ain
93> addrss: local-part@dom.ain
94> domain: dom.ain
95> domain: dom.ain
29f89cad
PH
96>
97> addresses: ''abc@xyz' ''pqr@xyz
98> addresses: local-part@dom.ain
99> addresses: local-part@dom.ain+xyz@abc
100> addresses: local-part@dom.ain:xyz@abc:p@q:r@s
101> addresses:
102>
54c5ebb1
PH
103> escape: B7\267F2\362
104> eval: 2
105> eval: 7
106> eval: 9
107> eval: 4
108> eval: 6
109> eval: 42
110> Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "")
111> eval: -2
112> eval: 1
113> eval: 1
114> Failed: error in expression evaluation: expecting closing parenthesis (after processing "-2 - (-3")
af561417 115> Failed: error in expression evaluation: expecting operator (after processing "-2 - -3")
54c5ebb1
PH
116> eval: 1
117> eval: -5
af561417 118> eval: 1
54c5ebb1
PH
119> eval: 40962
120> eval: 63
af561417 121> Failed: error in expression evaluation: expecting operator (after processing "0")
54c5ebb1
PH
122> eval10: 77
123> eval10: 8
af561417
PH
124> Failed: error in expression evaluation: expecting operator (after processing "0")
125> eval: 4
126> eval: 4
127> eval: 4
128> eval: 13
129> eval: 9
130> eval: 6
131> eval: 3
132> eval: 0
133> eval: 24
134> eval: 4608
135> eval: 4608
136> eval: -4608
137>
54c5ebb1
PH
138> expand: $primary_hostname myhost.test.ex
139> hash: jmg monty fbWx
140> hash: abcX abX aX X
141> hex2b64:EjRWeA==
142> hex2b64:q83v
143> hex2b64:q83v
144> hex2b64:Gis8TV5v
145> Failed: "1a2b3c4d5e6" contains an odd number of characters
146> Failed: "1a2b3c4d5e6g" is not a hex string
147> hex2b64:MPPJPkZDbetYunCBao7BJA==
148> hex2b64:ztcfpyNSMb7Tg/rP3EHE3cwi7PE=
149>
150> The base62 operator is actually a base36 operator in the Darwin and Cygwin
151> environments. Write cunning tests that produce the same output in both cases,
152> while doing a reasonable check.
153>
154> base62: OK
155> base62d: OK
156> base62d: OK
157> Failed: argument for base62 operator is "12345x", which is not a decimal number
158> Failed: argument for base62d operator is "0003D7.", which is not a base 36/62 number
159>
160> hmac: dd97e3ba5d1a61b5006108f8c8252953
161> hmac: 0210cf9d274b53f1550f657c378b29e8bfed1064
162> md5: 77add1d5f41223d5582fca736a5cb335
163> sha1: DA39A3EE5E6B4B0D3255BFEF95601890AFD80709
164> sha1: A9993E364706816ABA3E25717850C26C9CD0D89D
165> mask: 192.168.10.192/28
166> mask: 192.168.10.206/32
167> Failed: mask value too big in "192.168.10.206/33"
168> mask: 0.0.0.0/0
169> Failed: missing mask value in "192.168.10.206"
170> Failed: "a.b.c.d" is not an IP address
171> nhash: 19 0/61
172> lc/uc: the quick BROWN FOX
173> length: The quick abc
174> lclpt: local-part
175> lclpt: local-part
176> quote: aZ09_.-Q "ab*cd" "abcd\"ef"
177> quote: "nl(\n)"
178> quote: "cr(\r)"
179> quote: "tab( )"
180