1
# check if the configuration test run detects invalid config files.
3
# Part of the testbench for rsyslog.
5
# Copyright 2009 Rainer Gerhards and Adiscon GmbH.
7
# This file is part of rsyslog.
9
# Rsyslog is free software: you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation, either version 3 of the License, or
12
# (at your option) any later version.
14
# Rsyslog is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with Rsyslog. If not, see <http://www.gnu.org/licenses/>.
22
# A copy of the GPL can be found in the file "COPYING" in this distribution.
24
echo "testing a failed configuration verification run"
25
../tools/rsyslogd -u2 -c3 -N1 -f$srcdir/testsuites/invalid.conf
29
echo testing a valid config verification run
30
../tools/rsyslogd -u2 -c3 -N1 -f$srcdir/testsuites/valid.conf
34
echo testing empty config file
35
../tools/rsyslogd -u2 -c3 -N1 -f/dev/null