~ubuntu-branches/ubuntu/edgy/syslog-ng/edgy

« back to all changes in this revision

Viewing changes to src/tests/test.eval

  • Committer: Bazaar Package Importer
  • Author(s): SZALAY Attila
  • Date: 2002-03-04 21:29:11 UTC
  • Revision ID: james.westby@ubuntu.com-20020304212911-zmhvv15v8dmigez1
Tags: upstream-1.5.15
ImportĀ upstreamĀ versionĀ 1.5.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -x
 
2
rm d?
 
3
 
 
4
$SYSLOG_NG -f syslog-ng.conf.eval -p syslog-ng.pid
 
5
 
 
6
$LOGGER -u input -p local0.debug "msg: local0.debug"
 
7
$LOGGER -u input -p local1.debug "msg: local1.debug"
 
8
$LOGGER -u input -p local1.info  "msg: local1.info"
 
9
$LOGGER -u input -p local2.debug "msg: local2.debug"
 
10
$LOGGER -u input -p local2.info  "msg: local2.info"
 
11
$LOGGER -u input -p local3.debug "msg: local3.debug"
 
12
$LOGGER -u input -p local4.info  "msg: local4.info"
 
13
$LOGGER -u input -p local6.info  "msg: local6.info"
 
14
$LOGGER -u input -p local4.debug "msg: local4.debug"
 
15
$LOGGER -u input -p local6.info  "msg: local6.info"
 
16
 
 
17
pid=`cat syslog-ng.pid`
 
18
kill -TERM $pid
 
19
sleep 2
 
20
kill -TERM $pid
 
21
rm syslog-ng.pid
 
22
 
 
23
result=`wc -l d?`
 
24
rm d?
 
25
if [ "$result" != \
 
26
"      1 d1
 
27
      1 d2
 
28
      1 d3
 
29
     10 d4
 
30
      6 d5
 
31
      7 d6
 
32
      5 d7
 
33
     31 total" ]; then
 
34
        echo "evaluation test failed"
 
35
        exit 1
 
36
fi
 
37
echo "evaluation test passed"
 
38
exit 0