rsyslog/tests/libdbi-basic.sh
Rainer Gerhards 9cc963926b bugfix: minor memory leak in omlibdbi (< 1k per instance and run)
also testbench improvement (omlibdbi now also receives a couple of
tests if we have a life MySQL server).
2011-03-10 14:46:47 +01:00

14 lines
729 B
Bash
Executable File

# This file is part of the rsyslog project, released under GPLv3
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 libdbi-basic.conf
source $srcdir/diag.sh injectmsg 0 5000
source $srcdir/diag.sh shutdown-when-empty
source $srcdir/diag.sh wait-shutdown
# 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