rsyslog/tests/imuxsock_logger_parserchain.sh
Andre Lorbach df3d4a3922 test-suite: Added !#/bin/bash into all test scripts.
Most of the tests will not work in other default shells like
on Freebsd or Solaris. So we make /bin/bash default now.
2015-07-30 15:38:17 +00:00

23 lines
794 B
Bash
Executable File

#!/bin/bash
# Copyright (C) 2015-03-04 by rainer gerhards, released under ASL 2.0
echo ======================================================================
echo \[imuxsock_logger_parserchain.sh\]: test imuxsock
. $srcdir/diag.sh init
. $srcdir/diag.sh startup imuxsock_logger_parserchain.conf
logger -d --rfc3164 -u testbench_socket test
if [ ! $? -eq 0 ]; then
logger -d -u testbench_socket test
fi;
# the sleep below is needed to prevent too-early termination of rsyslogd
./msleep 100
. $srcdir/diag.sh shutdown-when-empty
. $srcdir/diag.sh wait-shutdown
cmp rsyslog.out.log $srcdir/resultdata/imuxsock_logger.log
if [ ! $? -eq 0 ]; then
echo "imuxsock_logger_parserchain.sh failed"
echo contents of rsyslog.out.log:
echo \"`cat rsyslog.out.log`\"
exit 1
fi;
. $srcdir/diag.sh exit