mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 22:10:41 +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.
19 lines
581 B
Bash
Executable File
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
|