summaryrefslogtreecommitdiffstats
path: root/tests/pmnormalize-invld-rulebase.sh
blob: 48102bc5923cce7475e83a78880241d1189f91d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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