diff options
Diffstat (limited to 'tests/pmnormalize-invld-rulebase.sh')
-rwxr-xr-x | tests/pmnormalize-invld-rulebase.sh | 15 |
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 |