diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-09 12:40:58 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-09 12:40:58 +0100 |
commit | 533a5351365cec93f233e0e99d98cedeadc5bd69 (patch) | |
tree | 744179d48e58c43331bbb5ba234c9506aae985f8 /tests/mysql-asyn-vg.sh | |
parent | d1ae9e393885fb6d9fc69fc1bb08a098a8ac0328 (diff) | |
download | rsyslog-533a5351365cec93f233e0e99d98cedeadc5bd69.tar.gz rsyslog-533a5351365cec93f233e0e99d98cedeadc5bd69.tar.xz rsyslog-533a5351365cec93f233e0e99d98cedeadc5bd69.zip |
added MySQL life tests for ommysql
tests run against a life database instance which must
be setup in a specific way.
Diffstat (limited to 'tests/mysql-asyn-vg.sh')
-rwxr-xr-x | tests/mysql-asyn-vg.sh | 14 |
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 |