diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-05-27 12:52:28 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-05-27 12:52:28 +0200 |
commit | affa217cc2d22fa8037a50b8d40d3372694ff855 (patch) | |
tree | cc330c7bca3053117bab0855dcf0e6fc0d2e4bec /tests/daqueue-persist-drvr.sh | |
parent | 33316de49b7775ac40dd0ec0f4b7ff6256ccde78 (diff) | |
download | rsyslog-affa217cc2d22fa8037a50b8d40d3372694ff855.tar.gz rsyslog-affa217cc2d22fa8037a50b8d40d3372694ff855.tar.bz2 rsyslog-affa217cc2d22fa8037a50b8d40d3372694ff855.zip |
adapted testbench to new capabilities
... and now make check fails again, we have obviously found some new
bugs thanks to the additional cases
Diffstat (limited to 'tests/daqueue-persist-drvr.sh')
-rwxr-xr-x | tests/daqueue-persist-drvr.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/daqueue-persist-drvr.sh b/tests/daqueue-persist-drvr.sh new file mode 100755 index 00000000..11058110 --- /dev/null +++ b/tests/daqueue-persist-drvr.sh @@ -0,0 +1,28 @@ +# Test for queue data persisting at shutdown. The +# plan is to start an instance, emit some data, do a relatively +# fast shutdown and then re-start the engine to process the +# remaining data. +# added 2009-05-27 by Rgerhards +# This file is part of the rsyslog project, released under GPLv3 +# uncomment for debugging support: +echo testing memory daqueue persisting to disk, mode $1 +source $srcdir/diag.sh init + +# prepare config +echo \$MainMsgQueueType $1 > work-queuemode.conf +echo "*.* :omtesting:sleep 0 1000" > work-delay.conf + +# inject 10000 msgs, so that DO hit the high watermark +source $srcdir/diag.sh startup queue-persist.conf +source $srcdir/diag.sh injectmsg 0 10000 +$srcdir/diag.sh shutdown-immediate +$srcdir/diag.sh wait-shutdown +source $srcdir/diag.sh check-mainq-spool + +# restart engine and have rest processed +#remove delay +echo "#" > work-delay.conf +source $srcdir/diag.sh startup queue-persist.conf +source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh seq-check 0 4999 +source $srcdir/diag.sh exit |