Testtsuite: portability
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 14 Mar 2020 16:50:28 +0000 (16:50 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 14 Mar 2020 16:50:28 +0000 (16:50 +0000)
test/confs/0999
test/scripts/0999-EXP-Queue-Ramp/0999
test/stderr/0999

index c3a2ad4d2d64e0a120d4332cccdd484847f053ff..80d261f5f9de876b0129dac85ff4d37a0841d722 100644 (file)
@@ -22,14 +22,14 @@ queue_fast_ramp
 
 begin routers
 
-client:
-  driver = accept
-  condition = ${if eq {SERVER}{server}{no}{yes}}
-  transport = send_to_server
-
-server:
-  driver = accept
-  transport = send_to_server
+drain_q:
+  driver =     accept
+  condition =  ${if !def:sender_host_address}
+  transport =  send_to_server
+
+targetsys:
+  driver =     redirect
+  data =       :blackhole:
 
 
 # ----- Transports -----
index dc60dfa6ab25c80387f09a74c1038818046126cf..688c24cf83bb0ee57c7bf0edddcaf3d455206cfb 100644 (file)
@@ -676,8 +676,9 @@ killdaemon
 # 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 "awk '/OK id=/{i++} END{print i, \"messages in\"}' DIR/test-stdout 1>&2";
 system "grep -q '=>' 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";
 ****
 sudo rm DIR/spool/log/mainlog DIR/spool/log/servermainlog
 no_stdout_check
index 1b45b63fb258a19b8c836489f2d91b88ceee48e5..2e7d5393ced68c0b4ae5908c62089d2973e6a468 100644 (file)
@@ -1,6 +1,7 @@
 2017-07-30 18:51:05.712 Start queue run: pid=pppp -qq
 2017-07-30 18:51:05.712 End queue run: pid=pppp -qq
-406 TESTSUITE/test-stdout
+81 messages in
 daemon did make at least one delivery
+81 messages received by dest
 
 ******** SERVER ********