summaryrefslogtreecommitdiff
path: root/tests/mysql-actq-mt-withpause-vg.sh
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-08-18 17:48:21 +0200
committerMichael Biebl <biebl@debian.org>2014-08-18 17:48:21 +0200
commitedb958301d8c162cb21278d01d802026a1e1afe7 (patch)
treec0a155296fcfb56c4d2a14adadbe2443eb6947c3 /tests/mysql-actq-mt-withpause-vg.sh
parentb8bc384c9ff7e258d2d26511302f6feb3e4f5e00 (diff)
parent1dfcd909d90f6fad4a612b6fd998d7473a9da399 (diff)
downloadrsyslog-edb958301d8c162cb21278d01d802026a1e1afe7.tar.gz
Merge tag 'upstream/8.4.0'
Upstream version 8.4.0
Diffstat (limited to 'tests/mysql-actq-mt-withpause-vg.sh')
-rwxr-xr-xtests/mysql-actq-mt-withpause-vg.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/mysql-actq-mt-withpause-vg.sh b/tests/mysql-actq-mt-withpause-vg.sh
new file mode 100755
index 0000000..ab76a02
--- /dev/null
+++ b/tests/mysql-actq-mt-withpause-vg.sh
@@ -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