summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-19 19:25:01 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-19 19:25:01 +0200
commit5155f67d62cf52e742d70b925782acd543b98a16 (patch)
tree6e577c5c41b269605f657bc5c71ce38a6a72f2e6 /tests
parent1b1b2a16514014b246760636623d273d74116754 (diff)
downloadrsyslog-5155f67d62cf52e742d70b925782acd543b98a16.tar.gz
rsyslog-5155f67d62cf52e742d70b925782acd543b98a16.tar.xz
rsyslog-5155f67d62cf52e742d70b925782acd543b98a16.zip
bugfix: small memory leak in imdiag
This does not have any practical problems associated with it, EXCECPT that it caused almost all valgrind testbench tests to fail.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am3
-rwxr-xr-xtests/cee_diskqueue.sh14
-rw-r--r--tests/testsuites/cee_diskqueue.conf9
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b69388a1..f107a87e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -66,6 +66,7 @@ TESTS += \
rcvr_fail_restore.sh \
rscript_contains.sh \
cee_simple.sh \
+ cee_diskqueue.sh \
linkedlistqueue.sh
if HAVE_VALGRIND
@@ -270,6 +271,8 @@ EXTRA_DIST= 1.rstest 2.rstest 3.rstest err1.rstest \
testsuites/rscript_contains.conf \
cee_simple.sh \
testsuites/cee_simple.conf \
+ cee_diskqueue.sh \
+ testsuites/cee_diskqueue.conf \
linkedlistqueue.sh \
testsuites/linkedlistqueue.conf \
da-mainmsg-q.sh \
diff --git a/tests/cee_diskqueue.sh b/tests/cee_diskqueue.sh
new file mode 100755
index 00000000..4e19855b
--- /dev/null
+++ b/tests/cee_diskqueue.sh
@@ -0,0 +1,14 @@
+# check if CEE properties are properly saved & restored to/from disk queue
+# added 2012-09-19 by rgerhards
+# This file is part of the rsyslog project, released under ASL 2.0
+echo ===============================================================================
+echo \[cee_diskqueue.sh\]: CEE and diskqueue test
+source $srcdir/diag.sh init
+source $srcdir/diag.sh startup cee_diskqueue.conf
+source $srcdir/diag.sh injectmsg 0 5000
+echo doing shutdown
+source $srcdir/diag.sh shutdown-when-empty
+echo wait on shutdown
+source $srcdir/diag.sh wait-shutdown
+source $srcdir/diag.sh seq-check 0 4999
+source $srcdir/diag.sh exit
diff --git a/tests/testsuites/cee_diskqueue.conf b/tests/testsuites/cee_diskqueue.conf
new file mode 100644
index 00000000..a9b98e80
--- /dev/null
+++ b/tests/testsuites/cee_diskqueue.conf
@@ -0,0 +1,9 @@
+$IncludeConfig diag-common.conf
+
+global(workDirectory="/tmp")
+template(name="outfmt" type="string" string="%$!usr!msg:F,58:2%\n")
+
+set $!usr!msg = $msg;
+if $msg contains 'msgnum' then
+ action(type="omfile" file="./rsyslog.out.log" template="outfmt"
+ queue.type="disk" queue.filename="rsyslog-act1")