rsyslog/tests/libdbi-basic-vg.sh
Rainer Gerhards 1500951b7b testbench: permit libdbi test under valgrind without leak check
While this is sub-optimal, the only other alternative is to entirely
disable this test (until we find a better solution, if such exists).
2014-11-11 14:55:49 +01:00

17 lines
880 B
Bash
Executable File

# This file is part of the rsyslog project, released under GPLv3
# this test is currently not included in the testbench as libdbi
# itself seems to have a memory leak
echo ===============================================================================
echo \[libdbi-basic.sh\]: basic test for libdbi-basic functionality via mysql
source $srcdir/diag.sh init
mysql --user=rsyslog --password=testbench < testsuites/mysql-truncate.sql
source $srcdir/diag.sh startup-vg-noleak libdbi-basic.conf
source $srcdir/diag.sh injectmsg 0 5000
source $srcdir/diag.sh shutdown-when-empty
source $srcdir/diag.sh wait-shutdown-vg
source $srcdir/diag.sh check-exit-vg
# note "-s" is requried to suppress the select "field header"
mysql -s --user=rsyslog --password=testbench < testsuites/mysql-select-msg.sql > rsyslog.out.log
source $srcdir/diag.sh seq-check 0 4999
source $srcdir/diag.sh exit