rsyslog/tests/asynwr_timeout.sh
Rainer Gerhards 8833612e75 some cosmetic changes
note that a buffer size calculation was done wrong, but this was cosmetic
because our buffers currently all use byte size, so even though the
formula was wrong, the result was correct.
2010-03-10 08:21:41 +01:00

21 lines
1023 B
Bash
Executable File

# 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 127.0.0.1 13514 1 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 seq-check 0 35554
source $srcdir/diag.sh exit