mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 02:40:42 +01:00
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.
22 lines
435 B
Bash
Executable File
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
|