diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-10 11:07:26 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-10 11:07:26 +0100 |
commit | 4408d4137acfacef57bd2e088a0da83d25e34918 (patch) | |
tree | 705c34ee7b023ffb4a4795918acd2c0618f7cb29 /tests/execonlyonce.sh | |
parent | ee8bf6d6873b79a5b1ed5a2aae08adf0d4827ff3 (diff) | |
download | rsyslog-4408d4137acfacef57bd2e088a0da83d25e34918.tar.gz rsyslog-4408d4137acfacef57bd2e088a0da83d25e34918.tar.xz rsyslog-4408d4137acfacef57bd2e088a0da83d25e34918.zip |
testbench: new calling interface for tcpflood
this is a perquisite to support more flexible testing modes, which
could not intelligently be implemented with the old interface
Diffstat (limited to 'tests/execonlyonce.sh')
-rwxr-xr-x | tests/execonlyonce.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/execonlyonce.sh b/tests/execonlyonce.sh index a9b9d932..b7f60849 100755 --- a/tests/execonlyonce.sh +++ b/tests/execonlyonce.sh @@ -10,11 +10,11 @@ echo =========================================================================== echo \[execonlyonce.sh\]: test for the $ActionExecOnlyOnceEveryInterval directive source $srcdir/diag.sh init source $srcdir/diag.sh startup execonlyonce.conf -source $srcdir/diag.sh tcpflood 127.0.0.1 13514 1 10 1 +source $srcdir/diag.sh tcpflood -m10 -i1 # now wait until the interval definitely expires sleep 4 # one more than the once inerval! # and inject another couple of messages -source $srcdir/diag.sh tcpflood 127.0.0.1 13514 1 10 100 +source $srcdir/diag.sh tcpflood -m10 -i100 source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages # now we need your custom logic to see if the result is equal to the |