summaryrefslogtreecommitdiffstats
path: root/tests/imtcp_conndrop.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-09-15 15:17:47 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-09-15 15:17:47 +0200
commit1d0e4ba3b34464343c388ccef3ca8b08df42076a (patch)
treed17f746f7c8cb2f00aa3ab956740fd616e2390c0 /tests/imtcp_conndrop.sh
parentb7e69a240037277e77685af5ea5623cdd89ec2d2 (diff)
parent11ee5cbdfb08ba3e42a853c08144fa24cd55d6da (diff)
downloadrsyslog-1d0e4ba3b34464343c388ccef3ca8b08df42076a.tar.gz
rsyslog-1d0e4ba3b34464343c388ccef3ca8b08df42076a.tar.bz2
rsyslog-1d0e4ba3b34464343c388ccef3ca8b08df42076a.zip
Merge branch 'v4-stable' of git+ssh://git.adiscon.com/git/rsyslog into v4-stable
Diffstat (limited to 'tests/imtcp_conndrop.sh')
-rwxr-xr-xtests/imtcp_conndrop.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/imtcp_conndrop.sh b/tests/imtcp_conndrop.sh
new file mode 100755
index 00000000..2caa0ce2
--- /dev/null
+++ b/tests/imtcp_conndrop.sh
@@ -0,0 +1,16 @@
+# Test imtcp with many dropping connections
+# added 2010-08-10 by Rgerhards
+#
+# This file is part of the rsyslog project, released under GPLv3
+echo ====================================================================================
+echo TEST: \[imtcp_conndrop.sh\]: test imtcp with random connection drops
+cat rsyslog.action.1.include
+source $srcdir/diag.sh init
+source $srcdir/diag.sh startup imptcp_large.conf
+# 100 byte messages to gain more practical data use
+source $srcdir/diag.sh tcpflood -c20 -m50000 -r -d100 -P129 -D
+sleep 4 # due to large messages, we need this time for the tcp receiver to settle...
+source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
+source $srcdir/diag.sh wait-shutdown # and wait for it to terminate
+source $srcdir/diag.sh seq-check 0 49999 -E
+source $srcdir/diag.sh exit