summaryrefslogtreecommitdiff
path: root/tests/asynwr_timeout.sh
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2010-04-07 12:11:52 +0200
committerMichael Biebl <biebl@debian.org>2010-04-07 12:11:52 +0200
commit0c3924200ff23e6444058f01b2b7446cde6e1581 (patch)
tree08967d6f21a0f578d03a92a802343a1313450534 /tests/asynwr_timeout.sh
parent4af6f89dda61bb5acd862b805302542d9c0da005 (diff)
downloadrsyslog-0c3924200ff23e6444058f01b2b7446cde6e1581.tar.gz
Imported Upstream version 4.6.2upstream/4.6.2
Diffstat (limited to 'tests/asynwr_timeout.sh')
-rwxr-xr-xtests/asynwr_timeout.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/asynwr_timeout.sh b/tests/asynwr_timeout.sh
new file mode 100755
index 0000000..b0bc5c2
--- /dev/null
+++ b/tests/asynwr_timeout.sh
@@ -0,0 +1,21 @@
+# This test writes to the output buffers, let's the output
+# write timeout (and write data) and then continue. The conf file
+# has a 2 second timeout, so we wait 4 seconds to be on the save side.
+#
+# added 2010-03-09 by Rgerhards
+# This file is part of the rsyslog project, released under GPLv3
+echo ===============================================================================
+echo TEST: \[asynwr_timeout.sh\]: test async file writing timeout writes
+source $srcdir/diag.sh init
+# uncomment for debugging support:
+#export RSYSLOG_DEBUG="debug nostdout noprintmutexaction"
+#export RSYSLOG_DEBUGLOG="log"
+source $srcdir/diag.sh startup asynwr_timeout.conf
+# send 35555 messages, make sure file size is not a multiple of
+# 10K, the buffer size!
+source $srcdir/diag.sh tcpflood -m 35555
+sleep 4 # wait for output writer to write and empty buffer
+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 35554
+source $srcdir/diag.sh exit