diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-10-21 15:17:19 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-10-21 15:17:19 +0200 |
commit | 9079f6683057c5aad0a73eb56e33a1f1445f6e65 (patch) | |
tree | e9453f524021e5e1b4a1615ff1d7e33cb84d6a73 /tests/badqi.sh | |
parent | d3e5a2414371598c43b1e408fb741fdbf895b6f0 (diff) | |
download | rsyslog-9079f6683057c5aad0a73eb56e33a1f1445f6e65.tar.gz rsyslog-9079f6683057c5aad0a73eb56e33a1f1445f6e65.tar.xz rsyslog-9079f6683057c5aad0a73eb56e33a1f1445f6e65.zip |
improved testbench
- added a test to check handling of damaged .qi files on startup
- made sure each test identifies itself on startup
Diffstat (limited to 'tests/badqi.sh')
-rwxr-xr-x | tests/badqi.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/badqi.sh b/tests/badqi.sh new file mode 100755 index 00000000..1e6df760 --- /dev/null +++ b/tests/badqi.sh @@ -0,0 +1,15 @@ +# Test for a startup with a bad qi file. This tests simply tests +# if the rsyslog engine survives (we had segfaults in this situation +# in the past). +# added 2009-10-21 by RGerhards +# This file is part of the rsyslog project, released under GPLv3 +# uncomment for debugging support: +echo \[badqi.sh\]: test startup with invalid .qi file +source $srcdir/diag.sh init +source $srcdir/diag.sh startup badqi.conf +# we just inject a handful of messages so that we have something to wait for... +source $srcdir/diag.sh tcpflood 127.0.0.1 13514 1 20 +source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages +source $srcdir/diag.sh wait-shutdown # wait for process to terminate +source $srcdir/diag.sh seq-check 0 20 +source $srcdir/diag.sh exit |