summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2012-06-11 22:00:11 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2012-06-12 21:48:59 +0100
commit723c72e64c04d3b7bdf03b26c65761c1ae569312 (patch)
tree59639aa0abbfb181277712e07ddfd05ccafeed88 /test
parent585121e2682545b7afa599e039a7a1e2b1804570 (diff)
Add ${acl {name}{arg}} expansion item.
Diffstat (limited to 'test')
-rw-r--r--test/confs/00028
-rw-r--r--test/scripts/0000-Basic/000211
-rw-r--r--test/stdout/000211
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