rsyslog/tests/linkedlistqueue.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

19 lines
581 B
Bash
Executable File

#!/bin/bash
# Test for Linkedlist queue mode
# added 2009-05-20 by rgerhards
# This file is part of the rsyslog project, released under GPLv3
echo \[linkedlistqueue.sh\]: testing queue Linkedlist queue mode
. $srcdir/diag.sh init
. $srcdir/diag.sh startup linkedlistqueue.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