mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 04:30:43 +01:00
testbench: experimentally add more mysql tests
This commit is contained in:
parent
a57801af9b
commit
f30a087b2d
@ -104,7 +104,9 @@ if ENABLE_MYSQL_TESTS
|
||||
TESTS += \
|
||||
mysql-basic.sh \
|
||||
mysql-basic-cnf6.sh \
|
||||
mysql-asyn.sh
|
||||
mysql-asyn.sh \
|
||||
mysql-actq-mt.sh \
|
||||
mysql-actq-mt-withpause.sh
|
||||
if ENABLE_OMLIBDBI
|
||||
TESTS += \
|
||||
libdbi-basic.sh \
|
||||
@ -113,7 +115,8 @@ endif
|
||||
if HAVE_VALGRIND
|
||||
TESTS += \
|
||||
mysql-basic-vg.sh \
|
||||
mysql-asyn-vg.sh
|
||||
mysql-asyn-vg.sh \
|
||||
mysql-actq-mt-withpause-vg.sh
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -559,6 +562,10 @@ EXTRA_DIST= 1.rstest 2.rstest 3.rstest err1.rstest \
|
||||
mysql-asyn.sh \
|
||||
mysql-asyn-vg.sh \
|
||||
testsuites/mysql-asyn.conf \
|
||||
mysql-actq-mt.sh \
|
||||
mysql-actq-mt-withpause.sh \
|
||||
mysql-actq-mt-withpause-vg.sh \
|
||||
testsuites/mysql-actq-mt.conf \
|
||||
mmpstrucdata.sh \
|
||||
testsuites/mmpstrucdata.conf \
|
||||
cfg.sh
|
||||
|
||||
22
tests/mysql-actq-mt-withpause-vg.sh
Executable file
22
tests/mysql-actq-mt-withpause-vg.sh
Executable file
@ -0,0 +1,22 @@
|
||||
# This file is part of the rsyslog project, released under ASL 2.0
|
||||
echo ===============================================================================
|
||||
echo \[mysql-act-mt.sh\]: test for mysql with multithread actionq
|
||||
source $srcdir/diag.sh init
|
||||
mysql --user=rsyslog --password=testbench < testsuites/mysql-truncate.sql
|
||||
source $srcdir/diag.sh startup-vg mysql-actq-mt.conf
|
||||
source $srcdir/diag.sh injectmsg 0 50000
|
||||
source $srcdir/diag.sh wait-queueempty
|
||||
echo waiting for worker threads to timeout
|
||||
./msleep 3000
|
||||
source $srcdir/diag.sh injectmsg 50000 50000
|
||||
source $srcdir/diag.sh wait-queueempty
|
||||
echo waiting for worker threads to timeout
|
||||
./msleep 2000
|
||||
source $srcdir/diag.sh injectmsg 100000 50000
|
||||
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 149999
|
||||
source $srcdir/diag.sh exit
|
||||
Loading…
x
Reference in New Issue
Block a user