rsyslog/tests/omfile-whitespace-filename.sh
Rainer Gerhards 2ba3c8ddde
testbench: modernize testbench plumbing
changes some of the test commands to use bash functions
includes some small bug fixes to tests where bugs were
previously not seen due to different plumbing.
2018-07-23 17:26:34 +02:00

22 lines
435 B
Bash
Executable File

#!/bin/bash
# addd 2018-04-03 by RGerhards, released under ASL 2.0
. $srcdir/diag.sh init
generate_conf
add_conf '
action(type="omfile" file=" ")
action(type="omfile" file="rsyslog.out.log")
'
startup
shutdown_when_empty
wait_shutdown
grep "only of whitespace" rsyslog.out.log > /dev/null
if [ $? -ne 0 ]; then
echo
echo "FAIL: expected error message not found. rsyslog.out.log is:"
cat rsyslog.out.log
error_exit 1
fi
exit_test