summaryrefslogtreecommitdiffstats
path: root/tests/manyptcp.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-11-25 14:29:02 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-11-25 14:29:02 +0100
commit91cf297043e20d2dae8b00c20efadcc388357a86 (patch)
tree2e77773e88e43a96bfc926ae6497c6a135cffe4b /tests/manyptcp.sh
parent9e6ab1494d95da61095867db209674975b1b1a2b (diff)
downloadrsyslog-91cf297043e20d2dae8b00c20efadcc388357a86.tar.gz
rsyslog-91cf297043e20d2dae8b00c20efadcc388357a86.tar.xz
rsyslog-91cf297043e20d2dae8b00c20efadcc388357a86.zip
added forgotten testcase filesv4.7.3
Diffstat (limited to 'tests/manyptcp.sh')
-rwxr-xr-xtests/manyptcp.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/manyptcp.sh b/tests/manyptcp.sh
new file mode 100755
index 00000000..3ed5493b
--- /dev/null
+++ b/tests/manyptcp.sh
@@ -0,0 +1,13 @@
+# test many concurrent tcp connections
+echo ====================================================================================
+echo TEST: \[manyptcp.sh\]: test imptcp with large connection count
+source $srcdir/diag.sh init
+source $srcdir/diag.sh startup manyptcp.conf
+# the config file specifies exactly 1100 connections
+source $srcdir/diag.sh tcpflood -c1000 -m40000
+# the sleep below is needed to prevent too-early termination of the tcp listener
+sleep 1
+source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
+source $srcdir/diag.sh wait-shutdown # we need to wait until rsyslogd is finished!
+source $srcdir/diag.sh seq-check 0 39999
+source $srcdir/diag.sh exit