summaryrefslogtreecommitdiffstats
path: root/tests/random.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-07-05 15:14:36 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-07-05 15:14:36 +0200
commitd9a82205ff0b42a84875d45c809e8b7aded7eb2b (patch)
tree861b66fbde7b876413c00e449315e2fbd81b07a5 /tests/random.sh
parent149bab9cd1eb77c0708369d0a56903db90ab9d5f (diff)
parent9de526eccd85324f8cff4968ac6b17fa66648c2b (diff)
downloadrsyslog-d9a82205ff0b42a84875d45c809e8b7aded7eb2b.tar.gz
rsyslog-d9a82205ff0b42a84875d45c809e8b7aded7eb2b.tar.xz
rsyslog-d9a82205ff0b42a84875d45c809e8b7aded7eb2b.zip
Merge branch 'v4-stable' into tmp
Conflicts: ChangeLog Makefile.am tests/Makefile.am
Diffstat (limited to 'tests/random.sh')
-rwxr-xr-xtests/random.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/random.sh b/tests/random.sh
new file mode 100755
index 00000000..d1f392d3
--- /dev/null
+++ b/tests/random.sh
@@ -0,0 +1,20 @@
+# Test if rsyslog survives sending truely random data to it...
+#
+# added 2010-04-01 by Rgerhards
+# This file is part of the rsyslog project, released under GPLv3
+echo ===============================================================================
+echo TEST: \[random.sh\]: testing random data
+source $srcdir/diag.sh init
+# uncomment for debugging support:
+#export RSYSLOG_DEBUG="debug nostdout noprintmutexaction"
+#export RSYSLOG_DEBUGLOG="log"
+source $srcdir/diag.sh startup random.conf
+# generate random data
+./randomgen -f rsyslog.random.data -s 100000
+ls -l rsyslog.random.data
+source $srcdir/diag.sh tcpflood -B -I rsyslog.random.data -c5 -C10
+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
+# we do not check anything yet, the point is if rsyslog survived ;)
+# TODO: check for exit message, but we'll notice an abort anyhow, so not that important
+source $srcdir/diag.sh exit