From: Tony Finch Date: Thu, 7 Feb 2008 18:20:45 +0000 (+0000) Subject: Add regression test for bug#615 X-Git-Tag: DEVEL_PDKIM_START~62 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=330b8f0238c9ac5fc8ba23b65968c6323501f555;p=exim.git Add regression test for bug#615 --- 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