rsyslog/tests/abort-uncleancfg-goodcfg.sh
Tomas Heinrich 1e5f271628 testbench: root all calls to diag.sh in srcdir
Not using srcdir breaks out-of-tree builds.
2015-09-01 13:41:11 +02:00

19 lines
713 B
Bash
Executable File

#!/bin/bash
# Copyright 2015-01-29 by Tim Eifler
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[abort-uncleancfg-goodcfg.sh\]: testing abort on unclean configuration
echo "testing a good Configuration verification run"
. $srcdir/diag.sh init
. $srcdir/diag.sh startup abort-uncleancfg-goodcfg.conf
. $srcdir/diag.sh tcpflood -m10 -i1
. $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
. $srcdir/diag.sh wait-shutdown
if [ ! -e rsyslog.out.log ]
then
echo "error: expected file does not exist"
. $srcdir/diag.sh error-exit 1
fi
. $srcdir/diag.sh exit