summaryrefslogtreecommitdiffstats
path: root/tests/execonlyonce.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-10 11:07:26 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-10 11:07:26 +0100
commit4408d4137acfacef57bd2e088a0da83d25e34918 (patch)
tree705c34ee7b023ffb4a4795918acd2c0618f7cb29 /tests/execonlyonce.sh
parentee8bf6d6873b79a5b1ed5a2aae08adf0d4827ff3 (diff)
downloadrsyslog-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-xtests/execonlyonce.sh4
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