rsyslog/tests/queue-persist.sh
Rainer Gerhards 8612bd8583
improve bash coding style and fix a some bug in testbench
- duplicate diag.sh init call was not detected due to typo
- queue-persits test did not work correctly
- some general testbench framework improvements

issues found be shellcheck, fixes brought up other work to do
2018-11-02 17:25:11 +01:00

14 lines
617 B
Bash
Executable File

#!/bin/bash
# Test for queue data persisting at shutdown. We use the actual driver
# to carry out multiple tests with different queue modes
# added 2009-05-27 by Rgerhards
# This file is part of the rsyslog project, released ASL 2.0
. ${srcdir:=.}/diag.sh init
. $srcdir/queue-persist-drvr.sh LinkedList
. $srcdir/queue-persist-drvr.sh FixedArray
# the disk test should not fail, however, the config is extreme and using
# it more or less is a config error
. $srcdir/queue-persist-drvr.sh Disk
# we do not test Direct mode because this absolute can not work in direct mode
# (maybe we should do a fail-type of test?)