Tweak for new processing method.
[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>
54c5ebb1
PH
52> # Operators
53>
54> addrss: local-part@dom.ain
55> addrss: local-part@dom.ain
56> domain: dom.ain
57> domain: dom.ain
29f89cad
PH
58>
59> addresses: ''abc@xyz' ''pqr@xyz
60> addresses: local-part@dom.ain
61> addresses: local-part@dom.ain+xyz@abc
62> addresses: local-part@dom.ain:xyz@abc:p@q:r@s
63> addresses:
64>
54c5ebb1
PH
65> escape: B7\267F2\362
66> eval: 2
67> eval: 7
68> eval: 9
69> eval: 4
70> eval: 6
71> eval: 42
72> Failed: error in expression evaluation: expecting number or opening parenthesis (after processing "")
73> eval: -2
74> eval: 1
75> eval: 1
76> Failed: error in expression evaluation: expecting closing parenthesis (after processing "-2 - (-3")
af561417 77> Failed: error in expression evaluation: expecting operator (after processing "-2 - -3")
54c5ebb1
PH
78> eval: 1
79> eval: -5
af561417 80> eval: 1
54c5ebb1
PH
81> eval: 40962
82> eval: 63
af561417 83> Failed: error in expression evaluation: expecting operator (after processing "0")
54c5ebb1
PH
84> eval10: 77
85> eval10: 8
af561417
PH
86> Failed: error in expression evaluation: expecting operator (after processing "0")
87> eval: 4
88> eval: 4
89> eval: 4
90> eval: 13
91> eval: 9
92> eval: 6
93> eval: 3
94> eval: 0
95> eval: 24
96> eval: 4608
97> eval: 4608
98> eval: -4608
99>
54c5ebb1
PH
100> expand: $primary_hostname myhost.test.ex
101> hash: jmg monty fbWx
102> hash: abcX abX aX X
103> hex2b64:EjRWeA==
104> hex2b64:q83v
105> hex2b64:q83v
106> hex2b64:Gis8TV5v
107> Failed: "1a2b3c4d5e6" contains an odd number of characters
108> Failed: "1a2b3c4d5e6g" is not a hex string
109> hex2b64:MPPJPkZDbetYunCBao7BJA==
110> hex2b64:ztcfpyNSMb7Tg/rP3EHE3cwi7PE=
111>
112> The base62 operator is actually a base36 operator in the Darwin and Cygwin
113> environments. Write cunning tests that produce the same output in both cases,
114> while doing a reasonable check.
115>
116> base62: OK
117> base62d: OK
118> base62d: OK
119> Failed: argument for base62 operator is "12345x", which is not a decimal number
120> Failed: argument for base62d operator is "0003D7.", which is not a base 36/62 number
121>
122> hmac: dd97e3ba5d1a61b5006108f8c8252953
123> hmac: 0210cf9d274b53f1550f657c378b29e8bfed1064
124> md5: 77add1d5f41223d5582fca736a5cb335
125> sha1: DA39A3EE5E6B4B0D3255BFEF95601890AFD80709
126> sha1: A9993E364706816ABA3E25717850C26C9CD0D89D
127> mask: 192.168.10.192/28
128> mask: 192.168.10.206/32
129> Failed: mask value too big in "192.168.10.206/33"
130> mask: 0.0.0.0/0
131> Failed: missing mask value in "192.168.10.206"
132> Failed: "a.b.c.d" is not an IP address
133> nhash: 19 0/61
134> lc/uc: the quick BROWN FOX
135> length: The quick abc
136> lclpt: local-part
137> lclpt: local-part
138> quote: aZ09_.-Q "ab*cd" "abcd\"ef"
139> quote: "nl(\n)"
140> quote: "cr(\r)"
141> quote: "tab( )"
142