summaryrefslogtreecommitdiffstats
path: root/tests/testsuites/badqi.conf
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-21 15:17:19 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-21 15:17:19 +0200
commit9079f6683057c5aad0a73eb56e33a1f1445f6e65 (patch)
treee9453f524021e5e1b4a1615ff1d7e33cb84d6a73 /tests/testsuites/badqi.conf
parentd3e5a2414371598c43b1e408fb741fdbf895b6f0 (diff)
downloadrsyslog-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/testsuites/badqi.conf')
-rw-r--r--tests/testsuites/badqi.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testsuites/badqi.conf b/tests/testsuites/badqi.conf
new file mode 100644
index 00000000..0ab059df
--- /dev/null
+++ b/tests/testsuites/badqi.conf
@@ -0,0 +1,15 @@
+# Test for bad .qi file (see .sh file for details)
+# rgerhards, 2009-10-21
+$IncludeConfig diag-common.conf
+
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$InputTCPServerRun 13514
+
+$template outfmt,"%msg:F,58:2%\n"
+$template dynfile,"rsyslog.out.log" # trick to use relative path names!
+# instruct to use bad .qi file
+$WorkDirectory bad_qi
+$ActionQueueType LinkedList
+$ActionQueueFileName dbq
+:msg, contains, "msgnum:" ?dynfile;outfmt