mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 03:20:41 +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.
44 lines
1.4 KiB
Bash
Executable File
44 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# Test for multiple ports in imtcp
|
|
# This test checks if multiple tcp listener ports are correctly
|
|
# handled by imtcp
|
|
#
|
|
# NOTE: this test must (and can) be enhanced when we merge in the
|
|
# upgraded tcpflood program
|
|
#
|
|
# added 2009-05-22 by Rgerhards
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
echo ===============================================================================
|
|
echo \[imtcp-multiport.sh\]: testing imtcp multiple listeners
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup imtcp-multiport.conf
|
|
. $srcdir/diag.sh tcpflood -p13514 -m10000
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh seq-check 0 9999
|
|
. $srcdir/diag.sh exit
|
|
#
|
|
#
|
|
# ### now complete new cycle with other port ###
|
|
#
|
|
#
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup imtcp-multiport.conf
|
|
. $srcdir/diag.sh tcpflood -p13515 -m10000
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh seq-check 0 9999
|
|
. $srcdir/diag.sh exit
|
|
#
|
|
#
|
|
# ### now complete new cycle with other port ###
|
|
#
|
|
#
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup imtcp-multiport.conf
|
|
. $srcdir/diag.sh tcpflood -p13516 -m10000
|
|
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh seq-check 0 9999
|
|
. $srcdir/diag.sh exit
|