summaryrefslogtreecommitdiffstats
path: root/tests/mysql-asyn-vg.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-09 17:37:47 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-09 17:37:47 +0100
commit6124df83ff69682c0bc6d29eeaea7f9a1b1a2317 (patch)
tree112d86ed8645b6a6435380855329d3a4a77f111e /tests/mysql-asyn-vg.sh
parentfe52af4d409a30d50e66f870b9eb503bee47cbfb (diff)
parent8d79906d500c5760f093123b3ef3c43508ffce58 (diff)
downloadrsyslog-6124df83ff69682c0bc6d29eeaea7f9a1b1a2317.tar.gz
rsyslog-6124df83ff69682c0bc6d29eeaea7f9a1b1a2317.tar.xz
rsyslog-6124df83ff69682c0bc6d29eeaea7f9a1b1a2317.zip
Merge branch 'v5-beta' into v5-devel
Conflicts: ChangeLog
Diffstat (limited to 'tests/mysql-asyn-vg.sh')
-rwxr-xr-xtests/mysql-asyn-vg.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mysql-asyn-vg.sh b/tests/mysql-asyn-vg.sh
new file mode 100755
index 00000000..dfe68665
--- /dev/null
+++ b/tests/mysql-asyn-vg.sh
@@ -0,0 +1,14 @@
+# This file is part of the rsyslog project, released under GPLv3
+echo ===============================================================================
+echo \[mysql-asyn.sh\]: asyn test for mysql functionality
+source $srcdir/diag.sh init
+mysql --user=rsyslog --password=testbench < testsuites/mysql-truncate.sql
+source $srcdir/diag.sh startup-vg mysql-asyn.conf
+source $srcdir/diag.sh injectmsg 0 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 49999
+source $srcdir/diag.sh exit