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