rsyslog/tests/abort-uncleancfg-badcfg-check.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

14 lines
467 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
# The configuration test should fail because of the invalid config file.
. $srcdir/diag.sh init
../tools/rsyslogd -C -N1 -f$srcdir/testsuites/abort-uncleancfg-badcfg.conf -M../runtime/.libs:../.libs
if [ $? == 0 ]; then
echo "Error: config check should fail"
error_exit 1
fi
printf "unclean config lead to exit, as expected - OK\n"
exit_test