summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTony Finch <dot@dot.at>2008-02-07 18:20:45 +0000
committerTony Finch <dot@dot.at>2008-02-07 18:20:45 +0000
commit330b8f0238c9ac5fc8ba23b65968c6323501f555 (patch)
tree26c9c29c1e274a132f503f02ed687684f77c114e /test
parent06864c44d0dd88cbdd50af255501706c553eab8c (diff)
Add regression test for bug#615
Diffstat (limited to 'test')
-rw-r--r--test/confs/056322
-rw-r--r--test/scripts/0000-Basic/05632
-rw-r--r--test/stderr/056341
-rw-r--r--test/stdout/05632
4 files changed, 67 insertions, 0 deletions
diff --git a/test/confs/0563 b/test/confs/0563
new file mode 100644
index 000000000..ac9839fa2
--- /dev/null
+++ b/test/confs/0563
@@ -0,0 +1,22 @@
+qualify_domain = testexim.test.ex
+localpartlist aliases = joe:sam:tom
+
+begin routers
+
+router1:
+ driver = accept
+ local_parts = +aliases
+ condition = false
+ transport = local_delivery
+
+router2:
+ driver = accept
+ local_parts = +aliases
+ local_part_suffix = -real
+ transport = local_delivery
+
+begin transports
+
+local_delivery:
+ driver = appendfile
+ file = /tmp/${local_part}
diff --git a/test/scripts/0000-Basic/0563 b/test/scripts/0000-Basic/0563
new file mode 100644
index 000000000..fde6fc6d5
--- /dev/null
+++ b/test/scripts/0000-Basic/0563
@@ -0,0 +1,2 @@
+# local part prefix/suffix and named list caches (bug#615)
+exim -d -bv joe-real
diff --git a/test/stderr/0563 b/test/stderr/0563
new file mode 100644
index 000000000..dbbe4e08d
--- /dev/null
+++ b/test/stderr/0563
@@ -0,0 +1,41 @@
+Exim version x.yz ....
+changed uid/gid: forcing real = effective
+ uid=uuuu gid=CALLER_GID pid=pppp
+configuration file is TESTSUITE/test-config
+admin user
+changed uid/gid: privilege not needed
+ uid=EXIM_UID gid=EXIM_GID pid=pppp
+originator: uid=CALLER_UID gid=CALLER_GID login=CALLER name=Exim Test Suite
+sender address = CALLER@testexim.test.ex
+Verifying: uid=EXIM_UID gid=EXIM_GID euid=EXIM_UID egid=EXIM_GID
+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+Verifying joe-real@testexim.test.ex
+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+Considering joe-real@testexim.test.ex
+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+routing joe-real@testexim.test.ex
+--------> router1 router <--------
+local_part=joe-real domain=testexim.test.ex
+checking local_parts
+joe-real in "joe:sam:tom"? no (end of list)
+joe-real in "+aliases"? no (end of list)
+router1 router skipped: local_parts mismatch
+--------> router2 router <--------
+local_part=joe-real domain=testexim.test.ex
+stripped suffix -real
+checking local_parts
+joe in "joe:sam:tom"? yes (matched "joe")
+joe in "+aliases"? yes (matched "+aliases")
+calling router2 router
+router2 router called for joe-real@testexim.test.ex
+ domain = testexim.test.ex
+set transport local_delivery
+queued for local_delivery transport: local_part = joe
+domain = testexim.test.ex
+ errors_to=NULL
+ domain_data=NULL localpart_data=NULL
+routed by router2 router
+ envelope to: joe-real@testexim.test.ex
+ transport: local_delivery
+search_tidyup called
+>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
diff --git a/test/stdout/0563 b/test/stdout/0563
new file mode 100644
index 000000000..b444c9719
--- /dev/null
+++ b/test/stdout/0563
@@ -0,0 +1,2 @@
+joe-real@testexim.test.ex
+ router = router2, transport = local_delivery