From 9079f6683057c5aad0a73eb56e33a1f1445f6e65 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 21 Oct 2009 15:17:19 +0200 Subject: improved testbench - added a test to check handling of damaged .qi files on startup - made sure each test identifies itself on startup --- tests/imtcp-multiport.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/imtcp-multiport.sh') diff --git a/tests/imtcp-multiport.sh b/tests/imtcp-multiport.sh index 702f8834..ad1f90a8 100755 --- a/tests/imtcp-multiport.sh +++ b/tests/imtcp-multiport.sh @@ -7,7 +7,7 @@ # # added 2009-05-22 by Rgerhards # This file is part of the rsyslog project, released under GPLv3 -echo testing imtcp multiple listeners +echo \[imtcp-multiport.sh\]: testing imtcp multiple listeners source $srcdir/diag.sh init source $srcdir/diag.sh startup imtcp-multiport.conf source $srcdir/diag.sh tcpflood 127.0.0.1 13514 1 10000 -- cgit v1.2.3 From 2f02a706a87309bdae65625cb8be8ace35589a3a Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 30 Oct 2009 08:58:30 +0100 Subject: bugfix(testbench): testcase did not properly wait for rsyslod shutdown thus some unpredictable behavior and a false negative test result could occur. --- tests/imtcp-multiport.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/imtcp-multiport.sh') diff --git a/tests/imtcp-multiport.sh b/tests/imtcp-multiport.sh index ad1f90a8..47a33cb9 100755 --- a/tests/imtcp-multiport.sh +++ b/tests/imtcp-multiport.sh @@ -7,11 +7,13 @@ # # added 2009-05-22 by Rgerhards # This file is part of the rsyslog project, released under GPLv3 +echo =============================================================================== echo \[imtcp-multiport.sh\]: testing imtcp multiple listeners source $srcdir/diag.sh init source $srcdir/diag.sh startup imtcp-multiport.conf source $srcdir/diag.sh tcpflood 127.0.0.1 13514 1 10000 source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh wait-shutdown source $srcdir/diag.sh seq-check 0 9999 source $srcdir/diag.sh exit # @@ -23,6 +25,7 @@ source $srcdir/diag.sh init source $srcdir/diag.sh startup imtcp-multiport.conf source $srcdir/diag.sh tcpflood 127.0.0.1 13515 1 10000 source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh wait-shutdown source $srcdir/diag.sh seq-check 0 9999 source $srcdir/diag.sh exit # @@ -34,5 +37,6 @@ source $srcdir/diag.sh init source $srcdir/diag.sh startup imtcp-multiport.conf source $srcdir/diag.sh tcpflood 127.0.0.1 13516 1 10000 source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh wait-shutdown source $srcdir/diag.sh seq-check 0 9999 source $srcdir/diag.sh exit -- cgit v1.2.3