mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 09:50:43 +01:00
Most of the tests will not work in other default shells like on Freebsd or Solaris. So we make /bin/bash default now.
21 lines
909 B
Bash
Executable File
21 lines
909 B
Bash
Executable File
#!/bin/bash
|
|
# This tests async writing with a very small output buffer (1 byte!),
|
|
# so it stresses output buffer handling. This also means operations will
|
|
# be somewhat slow, so we send only a small amounts of data.
|
|
#
|
|
# added 2010-03-09 by Rgerhards
|
|
#
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
echo ===============================================================================
|
|
echo TEST: \[asynwr_tinybuf.sh\]: test async file writing with 1-byte buffer
|
|
. $srcdir/diag.sh init
|
|
# uncomment for debugging support:
|
|
#export RSYSLOG_DEBUG="debug nostdout noprintmutexaction"
|
|
#export RSYSLOG_DEBUGLOG="log"
|
|
. $srcdir/diag.sh startup asynwr_tinybuf.conf
|
|
# send 1000 messages, fairly enough to trigger problems
|
|
. $srcdir/diag.sh tcpflood -m1000
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh seq-check 0 999
|
|
. $srcdir/diag.sh exit
|