DANE: Fix 2-rcpt message, diff domins case. Bug 2265
[users/heiko/exim.git] / test / scripts / 0999-EXP-Queue-Ramp / 0999
index dc60dfa6ab25c80387f09a74c1038818046126cf..529fa16a117faa38c9fb7a2d1d4d9340f8b276d6 100644 (file)
@@ -671,14 +671,18 @@ exim -odd -qq
 #
 #
 killdaemon
+sleep 1
 #
 # Only check that we logged the right number of messages; don't care
 # about ordering or mistakes in wrong message-id
 sudo perl
 system "egrep -v '(Completed|<=|=>|is locked)' DIR/spool/log/mainlog 1>&2";
-system "wc -l DIR/test-stdout 1>&2";
-system "grep -q '=>' DIR/spool/log/servermainlog && echo 'daemon did make at least one delivery' 1>&2";
+system "awk '/OK id=/{i++} END{print i, \"messages in\"}' DIR/test-stdout 1>&2";
+system "grep 'notify' DIR/spool/log/servermainlog 1>&2";
+system "grep -q '=> bob' DIR/spool/log/servermainlog && echo 'daemon did make at least one delivery' 1>&2";
+system "awk '/<=/{i++} END{print i, \"messages received by dest\"}' DIR/spool/log/servermainlog 1>&2";
+system "ls DIR/spool/input 1>&2";
 ****
-sudo rm DIR/spool/log/mainlog DIR/spool/log/servermainlog
+sudo rm -f DIR/spool/log/mainlog DIR/spool/log/servermainlog
 no_stdout_check
 no_msglog_check