summaryrefslogtreecommitdiff
path: root/tests/execonlywhenprevsuspended2.sh
blob: 8af1b4d81de078ca20a80c3f398fc8daf65e8ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# we test the execonly if previous is suspended directive. For this,
# we have an action that is suspended for all messages but the second.
# we write two files: one only if the output is suspended and the other one
# in all cases. This should thouroughly check the logic involved.
# rgerhards, 2010-06-23
echo ===============================================================================
echo \[execonlywhenprevsuspended2.sh\]: test execonly...suspended functionality
source $srcdir/diag.sh init
source $srcdir/diag.sh startup execonlywhenprevsuspended2.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
echo check file 1
source $srcdir/diag.sh seq-check 1 999
echo check file 2
source $srcdir/diag.sh seq-check2 0 999
source $srcdir/diag.sh exit