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

« back to all changes in this revision

Viewing changes to tests/cfg.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:
36
36
#
37
37
# check empty config file
38
38
#
39
 
../tools/rsyslogd -c3 -N1 -f/dev/null 2>&1 |tail --lines=+2 > tmp
 
39
../tools/rsyslogd -c4 -N1 -f/dev/null 2>&1 |./ourtail |head -2 > tmp
40
40
cmp tmp $srcdir/DevNull.cfgtest
41
41
if [ ! $? -eq 0 ]; then
42
42
echo "DevNull.cfgtest failed"
51
51
#
52
52
# check missing config file
53
53
#
54
 
../tools/rsyslogd -c3 -N1 -f/This/does/not/exist 2>&1 |tail --lines=+2 > tmp
 
54
../tools/rsyslogd -c4 -N1 -f/This/does/not/exist 2>&1 |./ourtail |head -2 > tmp
55
55
cmp tmp $srcdir/NoExistFile.cfgtest
56
56
if [ ! $? -eq 0 ]; then
57
57
echo "NoExistFile.cfgtest failed"
74
74
#
75
75
# check config with invalid directive
76
76
#
77
 
../tools/rsyslogd -c3 -u2 -N1 -f$srcdir/cfg1.testin 2>&1 |tail --lines=+2 > tmp
 
77
../tools/rsyslogd -c4 -u2 -N1 -f$srcdir/cfg1.testin 2>&1 |./ourtail > tmp
78
78
cmp tmp $srcdir/cfg1.cfgtest
79
79
if [ ! $? -eq 0 ]; then
80
80
echo "cfg1.cfgtest failed"
91
91
# the one with the invalid config directive, so that we may see
92
92
# an effect of the included config ;)
93
93
#
94
 
../tools/rsyslogd -c3 -u2 -N1 -f$srcdir/cfg2.testin 2>&1 |tail --lines=+2 > tmp
 
94
../tools/rsyslogd -c4 -u2 -N1 -f$srcdir/cfg2.testin 2>&1 |./ourtail > tmp
95
95
cmp tmp $srcdir/cfg2.cfgtest
96
96
if [ ! $? -eq 0 ]; then
97
97
echo "cfg2.cfgtest failed"
106
106
#
107
107
# check included config file, where included file does not exist
108
108
#
109
 
../tools/rsyslogd -c3 -u2 -N1 -f$srcdir/cfg3.testin 2>&1 |tail --lines=+2 > tmp
 
109
../tools/rsyslogd -c4 -u2 -N1 -f$srcdir/cfg3.testin 2>&1 |./ourtail > tmp
110
110
cmp tmp $srcdir/cfg3.cfgtest
111
111
if [ ! $? -eq 0 ]; then
112
112
echo "cfg3.cfgtest failed"
121
121
#
122
122
# check a reasonable complex, but correct, log file
123
123
#
124
 
../tools/rsyslogd -c3 -u2 -N1 -f$srcdir/cfg4.testin 2>&1 |tail --lines=+2 > tmp
 
124
../tools/rsyslogd -c4 -u2 -N1 -f$srcdir/cfg4.testin 2>&1 |./ourtail > tmp
125
125
cmp tmp $srcdir/cfg4.cfgtest
126
126
if [ ! $? -eq 0 ]; then
127
127
echo "cfg4.cfgtest failed"