mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 08:10:43 +01:00
added one more test for imfile (under valgrind)
This commit is contained in:
parent
ffa57b17b2
commit
6dbd70732a
@ -125,6 +125,9 @@ endif
|
||||
|
||||
if ENABLE_IMFILE
|
||||
TESTS += imfile-basic.sh
|
||||
if HAVE_VALGRIND
|
||||
TESTS += imfile-basic-vg.sh
|
||||
endif
|
||||
endif
|
||||
|
||||
endif # if ENABLE_TESTBENCH
|
||||
@ -327,6 +330,7 @@ EXTRA_DIST= 1.rstest 2.rstest 3.rstest err1.rstest \
|
||||
random.sh \
|
||||
testsuites/random.conf \
|
||||
imfile-basic.sh \
|
||||
imfile-basic-vg.sh \
|
||||
testsuites/imfile-basic.conf \
|
||||
dynfile_invld_async.sh \
|
||||
dynfile_invld_sync.sh \
|
||||
|
||||
15
tests/imfile-basic-vg.sh
Executable file
15
tests/imfile-basic-vg.sh
Executable file
@ -0,0 +1,15 @@
|
||||
# This is part of the rsyslog testbench, licensed under GPLv3
|
||||
echo [imfile-basic.sh]
|
||||
source $srcdir/diag.sh init
|
||||
# generate input file first. Note that rsyslog processes it as
|
||||
# soon as it start up (so the file should exist at that point).
|
||||
./inputfilegen 50000 > rsyslog.input
|
||||
ls -l rsyslog.input
|
||||
source $srcdir/diag.sh startup-vg imfile-basic.conf
|
||||
# sleep a little to give rsyslog a chance to begin processing
|
||||
sleep 1
|
||||
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
|
||||
source $srcdir/diag.sh wait-shutdown-vg
|
||||
source $srcdir/diag.sh check-exit-vg
|
||||
source $srcdir/diag.sh seq-check 0 49999
|
||||
source $srcdir/diag.sh exit
|
||||
Loading…
x
Reference in New Issue
Block a user