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

17 lines
775 B
Bash
Executable File

#!/bin/bash
# added 2015-05-22 by singh.janmejay
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[stop_when_array_has_element.sh\]: loop detecting presense of an element and stopping ruleset execution
. $srcdir/diag.sh init stop_when_array_has_element.sh
. $srcdir/diag.sh startup stop_when_array_has_element.conf
. $srcdir/diag.sh tcpflood -m 1 -I $srcdir/testsuites/stop_when_array_has_elem_input
echo doing shutdown
. $srcdir/diag.sh shutdown-when-empty
echo wait on shutdown
. $srcdir/diag.sh wait-shutdown
. $srcdir/diag.sh content-check '"abc0"'
. $srcdir/diag.sh content-check '"abc2"'
. $srcdir/diag.sh assert-content-missing 'xyz0'
. $srcdir/diag.sh exit