1
# This file is part of the rsyslog project, released under GPLv3
2
echo ===============================================================================
3
echo \[mysql-basic.sh\]: basic test for mysql-basic functionality
4
source $srcdir/diag.sh init
5
mysql --user=rsyslog --password=testbench < testsuites/mysql-truncate.sql
6
source $srcdir/diag.sh startup mysql-basic.conf
7
source $srcdir/diag.sh injectmsg 0 5000
8
source $srcdir/diag.sh shutdown-when-empty
9
source $srcdir/diag.sh wait-shutdown
10
# note "-s" is requried to suppress the select "field header"
11
mysql -s --user=rsyslog --password=testbench < testsuites/mysql-select-msg.sql > rsyslog.out.log
12
source $srcdir/diag.sh seq-check 0 4999
13
source $srcdir/diag.sh exit