summaryrefslogtreecommitdiffstats
path: root/tests/imtcp_conndrop.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-08-11 13:49:36 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-08-11 13:49:36 +0200
commit99b3b670e81bff0afc877f52cd261b354444aec1 (patch)
tree381447d88883777b46965db0dd3e75921b21d58a /tests/imtcp_conndrop.sh
parentd72fe36f868ea12f246ed23bb81ece0240dd6c12 (diff)
parentaef0aba9cd00fb225d2803210586b86a13547ce0 (diff)
downloadrsyslog-99b3b670e81bff0afc877f52cd261b354444aec1.tar.gz
rsyslog-99b3b670e81bff0afc877f52cd261b354444aec1.tar.bz2
rsyslog-99b3b670e81bff0afc877f52cd261b354444aec1.zip
Merge branch 'master' into tmp
Conflicts: ChangeLog configure.ac doc/manual.html plugins/omudpspoof/omudpspoof.c runtime/rsyslog.h also updated omuxsock and imptcp to new interfaces
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