summaryrefslogtreecommitdiffstats
path: root/tests/testsuites
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-12 13:23:03 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-12 13:23:03 +0100
commit329b20451f0ed767dbf08903cab9a380ff1f4302 (patch)
tree9a99e78a33388902f16da421e48b47ba709a1cf1 /tests/testsuites
parentef1b6c725bb7b8e3cee6e4264a630975a496c5bd (diff)
parent0fd8143d8719d08d9feb0a304bb352dd7c4bbab6 (diff)
downloadrsyslog-329b20451f0ed767dbf08903cab9a380ff1f4302.tar.gz
rsyslog-329b20451f0ed767dbf08903cab9a380ff1f4302.tar.xz
rsyslog-329b20451f0ed767dbf08903cab9a380ff1f4302.zip
Merge branch 'v4-beta' into v4-devel
Diffstat (limited to 'tests/testsuites')
-rw-r--r--tests/testsuites/execonlyonce.conf12
-rw-r--r--tests/testsuites/execonlyonce.data2
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/testsuites/execonlyonce.conf b/tests/testsuites/execonlyonce.conf
new file mode 100644
index 00000000..085b970e
--- /dev/null
+++ b/tests/testsuites/execonlyonce.conf
@@ -0,0 +1,12 @@
+# see the equally-named .sh file for details
+# rgerhards, 2009-11-12
+$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!
+$ActionExecOnlyOnceEveryInterval 3
+:msg, contains, "msgnum:" ?dynfile;outfmt
diff --git a/tests/testsuites/execonlyonce.data b/tests/testsuites/execonlyonce.data
new file mode 100644
index 00000000..3c54f3d4
--- /dev/null
+++ b/tests/testsuites/execonlyonce.data
@@ -0,0 +1,2 @@
+00000001
+00000100