diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/confs/0002 | 8 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0002 | 11 | ||||
-rw-r--r-- | test/stdout/0002 | 11 |
3 files changed, 30 insertions, 0 deletions
diff --git a/test/confs/0002 b/test/confs/0002 index 6983fd87f..317c4a27d 100644 --- a/test/confs/0002 +++ b/test/confs/0002 @@ -44,4 +44,12 @@ check_data: warn logwrite = Subject is: "$h_subject:" deny message = reply_address=<$reply_address> +a_ret: + accept message = [$address_data] + +a_none: + accept + +a_deny: + # End diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index 652891615..d567f8486 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -86,6 +86,17 @@ reduce: ${reduce {<\x7f 1\x7f2\177 3}{0}{${eval:$value+$item}}} # Operators +acl: ${acl +acl: ${acl} +acl: ${acl {a_bad}} +acl: ${acl {a_ret}} +acl: ${acl {a_ret}{person@dom.ain}} +acl: ${acl {a_none}} +acl: ${acl {a_none}{person@dom.ain}} +acl: ${acl {a_deny}} +acl: ${acl {a_deny}{person@dom.ain}} +acl: ${reduce {1:2:3:4} {} {$value ${acl {a_ret}{$item}}}} + addrss: ${address:local-part@dom.ain} addrss: ${address:Exim Person <local-part@dom.ain> (that's me)} domain: ${domain:local-part@dom.ain} diff --git a/test/stdout/0002 b/test/stdout/0002 index de67f99fc..377fe02cd 100644 --- a/test/stdout/0002 +++ b/test/stdout/0002 @@ -78,6 +78,17 @@ > > # Operators > +> Failed: missing or misplaced { or } +> Failed: missing or misplaced { or } +> Failed: acl "a_bad" did not accept +> acl: [] +> acl: [person@dom.ain] +> acl: +> acl: +> Failed: acl "a_deny" did not accept +> Failed: acl "a_deny" did not accept +> acl: [1] [2] [3] [4] +> > addrss: local-part@dom.ain > addrss: local-part@dom.ain > domain: dom.ain |