mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 16:50:42 +01:00
Most of the tests will not work in other default shells like on Freebsd or Solaris. So we make /bin/bash default now.
24 lines
1.1 KiB
Bash
Executable File
24 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Basic test for omruleset. What we do is have the main queue forward
|
|
# all messages to a secondary ruleset via omruleset, which then does
|
|
# the actual file write. We check if all messages arrive at the file,
|
|
# what implies that omruleset works. No filters or special queue modes
|
|
# are used, so the message is re-enqueued into the main message queue.
|
|
# We inject just 5,000 message because we may otherwise run into
|
|
# queue full conditions (as we use the same queue) and that
|
|
# would result in longer execution time. In any case, 5000 messages
|
|
# are well enough to test what we want to test.
|
|
# added 2009-11-02 by rgerhards
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
echo ===============================================================================
|
|
echo \[omruleset.sh\]: basic test for omruleset functionality
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh startup omruleset.conf
|
|
. $srcdir/diag.sh injectmsg 0 5000
|
|
echo doing shutdown
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
echo wait on shutdown
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh seq-check 0 4999
|
|
. $srcdir/diag.sh exit
|