rsyslog/tests/arrayqueue.sh
Andre Lorbach df3d4a3922 test-suite: Added !#/bin/bash into all test scripts.
Most of the tests will not work in other default shells like
on Freebsd or Solaris. So we make /bin/bash default now.
2015-07-30 15:38:17 +00:00

20 lines
657 B
Bash
Executable File

#!/bin/bash
# Test for fixedArray queue mode
# added 2009-05-20 by rgerhards
# This file is part of the rsyslog project, released under GPLv3
echo ===============================================================================
echo \[arrayqueue.sh\]: testing queue fixedArray queue mode
. $srcdir/diag.sh init
. $srcdir/diag.sh startup arrayqueue.conf
# 40000 messages should be enough
. $srcdir/diag.sh injectmsg 0 40000
# terminate *now* (don't wait for queue to drain!)
kill `cat rsyslog.pid`
# now wait until rsyslog.pid is gone (and the process finished)
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh seq-check 0 39999
. $srcdir/diag.sh exit