diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-16 15:53:45 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-16 15:53:45 +0100 |
commit | 4a80242ffcfa93348453ff716f7f1abda417a416 (patch) | |
tree | 5a8f92777d557be5670b79ded40b19ccdc861cc7 /tests/failover-no-basic-vg.sh | |
parent | 2fc70320e303fd02b29469416a709a1f8ee4374d (diff) | |
download | rsyslog-4a80242ffcfa93348453ff716f7f1abda417a416.tar.gz rsyslog-4a80242ffcfa93348453ff716f7f1abda417a416.tar.bz2 rsyslog-4a80242ffcfa93348453ff716f7f1abda417a416.zip |
added some more valgrind-based tests
Diffstat (limited to 'tests/failover-no-basic-vg.sh')
-rwxr-xr-x | tests/failover-no-basic-vg.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/failover-no-basic-vg.sh b/tests/failover-no-basic-vg.sh new file mode 100755 index 00000000..266163d4 --- /dev/null +++ b/tests/failover-no-basic-vg.sh @@ -0,0 +1,20 @@ +# This file is part of the rsyslog project, released under GPLv3 +echo =============================================================================== +echo \[failover-no-basic.sh\]: basic test for failover functionality - no failover +source $srcdir/diag.sh init +source $srcdir/diag.sh startup-vg failover-no-basic.conf +source $srcdir/diag.sh injectmsg 0 5000 +echo doing shutdown +source $srcdir/diag.sh shutdown-when-empty +echo wait on shutdown +source $srcdir/diag.sh wait-shutdown-vg +source $srcdir/diag.sh check-exit-vg +# now we need our custom logic to see if the result file is empty +# (what it should be!) +cmp rsyslog.out.log /dev/null +if [ $? -eq 1 ] +then + echo "ERROR, output file not empty" + exit 1 +fi +source $srcdir/diag.sh exit |