summaryrefslogtreecommitdiff
path: root/tests/libdbi-basic.sh
blob: a854a5656792d9dc8c7b2808695f5dc6f5e802d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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