summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-19 15:11:52 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-19 15:11:52 +0200
commitae5fc5834418ddd3888f45d5e0ed4fc164895822 (patch)
tree2e318a4e7d7560ea99e1292306130a83df8a881a
parent67aebe1d0f21de2426110eae69d36e8be1e792ef (diff)
downloadrsyslog-ae5fc5834418ddd3888f45d5e0ed4fc164895822.tar.gz
rsyslog-ae5fc5834418ddd3888f45d5e0ed4fc164895822.tar.bz2
rsyslog-ae5fc5834418ddd3888f45d5e0ed4fc164895822.zip
Add CEE test to testbench
-rw-r--r--tests/Makefile.am3
-rwxr-xr-xtests/cee_simple.sh13
-rw-r--r--tests/testsuites/cee_simple.conf6
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index a9369929..b69388a1 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -65,6 +65,7 @@ TESTS += \
failover-no-basic.sh \
rcvr_fail_restore.sh \
rscript_contains.sh \
+ cee_simple.sh \
linkedlistqueue.sh
if HAVE_VALGRIND
@@ -267,6 +268,8 @@ EXTRA_DIST= 1.rstest 2.rstest 3.rstest err1.rstest \
testsuites/arrayqueue.conf \
rscript_contains.sh \
testsuites/rscript_contains.conf \
+ cee_simple.sh \
+ testsuites/cee_simple.conf \
linkedlistqueue.sh \
testsuites/linkedlistqueue.conf \
da-mainmsg-q.sh \
diff --git a/tests/cee_simple.sh b/tests/cee_simple.sh
new file mode 100755
index 00000000..32f56393
--- /dev/null
+++ b/tests/cee_simple.sh
@@ -0,0 +1,13 @@
+# added 2012-09-19 by rgerhards
+# This file is part of the rsyslog project, released under ASL 2.0
+echo ===============================================================================
+echo \[cee_simple.sh\]: basic CEE property test
+source $srcdir/diag.sh init
+source $srcdir/diag.sh startup cee_simple.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_simple.conf b/tests/testsuites/cee_simple.conf
new file mode 100644
index 00000000..1bcf83c1
--- /dev/null
+++ b/tests/testsuites/cee_simple.conf
@@ -0,0 +1,6 @@
+$IncludeConfig diag-common.conf
+
+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")