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

20 lines
741 B
Bash
Executable File

#!/bin/bash
# check if execonly...suspended works when the first action is *not*
# suspended --> file1 must be created, file 2 not
# rgerhards, 2015-05-27
echo =====================================================================================
echo \[execonlywhenprevsuspended-nonsusp\]: test execonly...suspended functionality with non-suspended action
. $srcdir/diag.sh init
. $srcdir/diag.sh startup execonlywhenprevsuspended-nonsusp.conf
. $srcdir/diag.sh injectmsg 0 1000
. $srcdir/diag.sh shutdown-when-empty
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh seq-check 0 999
if [ -e rsyslog2.out.log ]; then
echo "error: \"suspended\" file exists, first 10 lines:"
head rsyslog2.out.log
exit 1
fi
. $srcdir/diag.sh exit