rsyslog/tests/execonlywhenprevsuspended.sh
Rainer Gerhards 31fae7b93d bugfix: "$ActionExecOnlyWhenPreviousIsSuspended on" was broken
Note that, as it looks, the directive was already broken in previous v5 versions.
So while I solved what looked like a (intentional) regression from the
performance tuning, I actually solved a previous regression as well ;)

I have also added new test cases to the testbench in order to capture such
problems in the future. This version does now look pretty good in shape.
2010-06-24 12:13:48 +02:00

14 lines
697 B
Bash
Executable File

# we test the execonly if previous is suspended directive. This is the
# most basic test which soley tests a singel case but no dependencies within
# the ruleset.
# rgerhards, 2010-06-23
echo =====================================================================================
echo \[execonlywhenprevsuspended.sh\]: test execonly...suspended functionality simple case
source $srcdir/diag.sh init
source $srcdir/diag.sh startup execonlywhenprevsuspended.conf
source $srcdir/diag.sh injectmsg 0 1000
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
source $srcdir/diag.sh wait-shutdown
source $srcdir/diag.sh seq-check 1 999
source $srcdir/diag.sh exit