mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 20:20:41 +01:00
The imdiag module now can very effectively inject messages, which also frees us from uncertainties of tcp reception and processing. All shell script based tests have been modularized, what makes it far easier to create new tests. Also, the test bench now executes more reliable and much faster, because we can now rely on actual engine information where we previously did just a dumb sleep.
39 lines
1.3 KiB
Bash
Executable File
39 lines
1.3 KiB
Bash
Executable File
# 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 testing imtcp multiple listeners
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup imtcp-multiport.conf
|
|
source $srcdir/diag.sh tcpflood 127.0.0.1 13514 1 10000
|
|
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
source $srcdir/diag.sh seq-check 0 9999
|
|
source $srcdir/diag.sh exit
|
|
#
|
|
#
|
|
# ### now complete new cycle with other port ###
|
|
#
|
|
#
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup imtcp-multiport.conf
|
|
source $srcdir/diag.sh tcpflood 127.0.0.1 13515 1 10000
|
|
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
source $srcdir/diag.sh seq-check 0 9999
|
|
source $srcdir/diag.sh exit
|
|
#
|
|
#
|
|
# ### now complete new cycle with other port ###
|
|
#
|
|
#
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup imtcp-multiport.conf
|
|
source $srcdir/diag.sh tcpflood 127.0.0.1 13516 1 10000
|
|
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
|
source $srcdir/diag.sh seq-check 0 9999
|
|
source $srcdir/diag.sh exit
|