summaryrefslogtreecommitdiffstats
path: root/tests/testsuites
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-08 18:18:14 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-08 18:18:14 +0100
commit5d3783b0c0449df1d4d1b0d38ce35dc2995ce22a (patch)
treef4f6f149d46294d329d55a2a8b3226c0fb56cc6b /tests/testsuites
parent5709b056c5be16df1f1a2369a737e40711f20979 (diff)
downloadrsyslog-5d3783b0c0449df1d4d1b0d38ce35dc2995ce22a.tar.gz
rsyslog-5d3783b0c0449df1d4d1b0d38ce35dc2995ce22a.tar.xz
rsyslog-5d3783b0c0449df1d4d1b0d38ce35dc2995ce22a.zip
added new test to testbench
Diffstat (limited to 'tests/testsuites')
-rw-r--r--tests/testsuites/discard-rptdmsg.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testsuites/discard-rptdmsg.conf b/tests/testsuites/discard-rptdmsg.conf
new file mode 100644
index 00000000..74060e31
--- /dev/null
+++ b/tests/testsuites/discard-rptdmsg.conf
@@ -0,0 +1,15 @@
+# Test for discard functionality
+# rgerhards, 2009-07-30
+$IncludeConfig diag-common.conf
+
+$ModLoad ../plugins/imtcp/.libs/imtcp
+$MainMsgQueueTimeoutShutdown 10000
+$InputTCPServerRun 13514
+
+$RepeatedMsgReduction on
+
+:msg, contains, "00000001" ~
+
+$template outfmt,"%msg:F,58:2%\n"
+$template dynfile,"rsyslog.out.log" # trick to use relative path names!
+:msg, contains, "msgnum:" ?dynfile;outfmt