Add regression test for bug#615
authorTony Finch <dot@dot.at>
Thu, 7 Feb 2008 18:20:45 +0000 (18:20 +0000)
committerTony Finch <dot@dot.at>
Thu, 7 Feb 2008 18:20:45 +0000 (18:20 +0000)
test/confs/0563 [new file with mode: 0644]
test/scripts/0000-Basic/0563 [new file with mode: 0644]
test/stderr/0563 [new file with mode: 0644]
test/stdout/0563 [new file with mode: 0644]

diff --git a/test/confs/0563 b/test/confs/0563
new file mode 100644 (file)
index 0000000..ac9839f
--- /dev/null
@@ -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 (file)
index 0000000..fde6fc6
--- /dev/null
@@ -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 (file)
index 0000000..dbbe4e0
--- /dev/null
@@ -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 (file)
index 0000000..b444c97
--- /dev/null
@@ -0,0 +1,2 @@
+joe-real@testexim.test.ex
+  router = router2, transport = local_delivery