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

16 lines
635 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.
echo ===============================================================================
echo \[abort-uncleancfg-badcfg_1.sh\]: testing abort on unclean configuration
echo "testing a bad Configuration verification run"
. $srcdir/diag.sh init
../tools/rsyslogd -C -N1 -f$srcdir/testsuites/abort-uncleancfg-badcfg_1.conf -M../runtime/.libs:../.libs
if [ $? == 0 ]; then
echo "Error: config check should fail"
exit 1
fi
. $srcdir/diag.sh exit