summaryrefslogtreecommitdiffstats
path: root/tests/manytcp.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-08 17:48:02 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-08 17:48:02 +0200
commit7cc7166cb24e50e48cab1cbb3c19c8c17d95ace7 (patch)
treedf78b696c13f5b4fc15f061c1ed03112d631a470 /tests/manytcp.sh
parent51e690f720b4a53a431e7a536b2fe8c25e866f7d (diff)
downloadrsyslog-7cc7166cb24e50e48cab1cbb3c19c8c17d95ace7.tar.gz
rsyslog-7cc7166cb24e50e48cab1cbb3c19c8c17d95ace7.tar.xz
rsyslog-7cc7166cb24e50e48cab1cbb3c19c8c17d95ace7.zip
added new test case for many tcp connections
It is checked that many tcp connections are properly handled. While adding this test, I noticed that there is a bug in imtcp that prevents creation of more than 200 connections. This bug still exists, so the test suite currently fails (what is correct). Will be addressed soon.
Diffstat (limited to 'tests/manytcp.sh')
-rwxr-xr-xtests/manytcp.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/manytcp.sh b/tests/manytcp.sh
new file mode 100755
index 00000000..3accfb8a
--- /dev/null
+++ b/tests/manytcp.sh
@@ -0,0 +1,13 @@
+rm -f rsyslog.out.log # work file
+../tools/rsyslogd -c4 -u2 -n -irsyslog.pid -M../runtime/.libs:../.libs -ftestsuites/manytcp.conf &
+echo "rsyslogd started with pid " `cat rsyslog.pid`
+./tcpflood 127.0.0.1 13514 1000 20000
+sleep 1
+kill `cat rsyslog.pid`
+rm -f work
+sort < rsyslog.out.log > work
+./chkseq work 0 19999
+if [ "$?" -ne "0" ]; then
+ echo "sequence error detected"
+ exit 1
+fi