~ubuntu-branches/ubuntu/lucid/rsyslog/lucid-updates

« back to all changes in this revision

Viewing changes to tests/validation-run.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-06-23 12:12:43 UTC
  • mfrom: (1.1.11 upstream) (3.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20090623121243-d2fejarzidywnn17
Tags: 4.2.0-1
* New upstream release of the now stable v4 branch.
  - Fix warnings when /etc/rsyslog.d/ is empty. Closes: #530228
* debian/patches/imudp_multiple_udp_sockets.patch
  - Removed, merged upstream.
* debian/rsyslog.default
  - Set default compat mode to '4'.
* debian/rsyslog.logcheck.ignore.server
  - Update logcheck rules files to also ignore rsyslogd and imklog stop
    messages.
* debian/control
  - Bump Standards-Version to 3.8.2. No further changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# check if the configuration test run detects invalid config files.
 
2
#
 
3
# Part of the testbench for rsyslog.
 
4
#
 
5
# Copyright 2009 Rainer Gerhards and Adiscon GmbH.
 
6
#
 
7
# This file is part of rsyslog.
 
8
#
 
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.
 
13
#
 
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.
 
18
#
 
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/>.
 
21
#
 
22
# A copy of the GPL can be found in the file "COPYING" in this distribution.
 
23
#set -x
 
24
echo "testing a failed configuration verification run"
 
25
../tools/rsyslogd -u2 -c3 -N1 -f$srcdir/testsuites/invalid.conf
 
26
if [ $? -ne 1 ]; then
 
27
   exit 1
 
28
fi
 
29
echo testing a valid config verification run
 
30
../tools/rsyslogd -u2 -c3 -N1 -f$srcdir/testsuites/valid.conf
 
31
if [ $? -ne 0 ]; then
 
32
   exit 1
 
33
fi
 
34
echo testing empty config file
 
35
../tools/rsyslogd -u2 -c3 -N1 -f/dev/null
 
36
if [ $? -ne 1 ]; then
 
37
   exit 1
 
38
fi