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