summaryrefslogtreecommitdiffstats
path: root/tests/pmnormalize-invld-rulebase.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pmnormalize-invld-rulebase.sh')
-rwxr-xr-xtests/pmnormalize-invld-rulebase.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pmnormalize-invld-rulebase.sh b/tests/pmnormalize-invld-rulebase.sh
new file mode 100755
index 0000000..48102bc
--- /dev/null
+++ b/tests/pmnormalize-invld-rulebase.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+# add 2016-12-08 by Pascal Withopf, released under ASL 2.0
+. ${srcdir:=.}/diag.sh init
+generate_conf
+add_conf '
+module(load="../plugins/pmnormalize/.libs/pmnormalize")
+parser(name="custom.pmnormalize" type="pmnormalize" rulebase="DOES-NOT-EXIST")
+action(type="omfile" file="'$RSYSLOG_OUT_LOG'")
+'
+startup
+shutdown_when_empty
+wait_shutdown
+content_check --regex "cannot open rulebase .*DOES-NOT-EXIST"
+
+exit_test