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.
18 lines
816 B
Bash
Executable File
18 lines
816 B
Bash
Executable File
#!/bin/bash
|
|
# Test for a startup with a bad qi file. This tests simply tests
|
|
# if the rsyslog engine survives (we had segfaults in this situation
|
|
# in the past).
|
|
# added 2009-10-21 by RGerhards
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
# uncomment for debugging support:
|
|
echo ===============================================================================
|
|
echo \[badqi.sh\]: test startup with invalid .qi file
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup badqi.conf
|
|
# we just inject a handful of messages so that we have something to wait for...
|
|
. $srcdir/diag.sh tcpflood -m20
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh wait-shutdown # wait for process to terminate
|
|
. $srcdir/diag.sh seq-check 0 19
|
|
. $srcdir/diag.sh exit
|