mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 02:10:42 +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.
17 lines
775 B
Bash
Executable File
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
|