summaryrefslogtreecommitdiff
path: root/test/runtest
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-10-24 23:34:19 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-10-25 00:55:45 +0100
commitfc7bae7f2fa3668ada9bd173e9f24c7166e1dd13 (patch)
tree8efa3fd97a1cfc91694497fbca1cd44b25c810d3 /test/runtest
parent444163417b289354b53d4708760f31d947ac6fd1 (diff)
Support moving messages across named queues. Bug 2456
Diffstat (limited to 'test/runtest')
-rwxr-xr-xtest/runtest17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/runtest b/test/runtest
index 0d6bcd1d7..db855baf9 100755
--- a/test/runtest
+++ b/test/runtest
@@ -2546,9 +2546,24 @@ elsif (/^((?i:[A-Z\d_]+=\S+\s+)+)?(\d+)?\s*(sudo(?:\s+-u\s+(\w+))?\s+)?exim(_\S+
if ($args =~ /\$msg/)
{
- my @listcmd = ("$parm_cwd/eximdir/exim", '-bp',
+ my($queuespec);
+ if ($args =~ /-qG\w+/) { $queuespec = $&; }
+
+ my @listcmd;
+
+ if (defined $queuespec)
+ {
+ @listcmd = ("$parm_cwd/eximdir/exim", '-bp',
+ $queuespec,
"-DEXIM_PATH=$parm_cwd/eximdir/exim",
-C => "$parm_cwd/test-config");
+ }
+ else
+ {
+ @listcmd = ("$parm_cwd/eximdir/exim", '-bp',
+ "-DEXIM_PATH=$parm_cwd/eximdir/exim",
+ -C => "$parm_cwd/test-config");
+ }
print ">> Getting queue list from:\n>> @listcmd\n" if $debug;
# We need the message ids sorted in ascending order.
# Message id is: <timestamp>-<pid>-<fractional-time>. On some systems (*BSD) the