summaryrefslogtreecommitdiffstats
path: root/tests/libdbi-basic.sh
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-03-10 14:46:47 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-03-10 14:46:47 +0100
commit9cc963926bad3de9a78df51a19456f419c34492a (patch)
tree5321d74ead5891f138f6919a81dfd672e91b6a78 /tests/libdbi-basic.sh
parent225aa0e367a604d3891bba13d470bfacc3dfe544 (diff)
downloadrsyslog-9cc963926bad3de9a78df51a19456f419c34492a.tar.gz
rsyslog-9cc963926bad3de9a78df51a19456f419c34492a.tar.xz
rsyslog-9cc963926bad3de9a78df51a19456f419c34492a.zip
bugfix: minor memory leak in omlibdbi (< 1k per instance and run)
also testbench improvement (omlibdbi now also receives a couple of tests if we have a life MySQL server).
Diffstat (limited to 'tests/libdbi-basic.sh')
-rwxr-xr-xtests/libdbi-basic.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/libdbi-basic.sh b/tests/libdbi-basic.sh
new file mode 100755
index 00000000..a854a565
--- /dev/null
+++ b/tests/libdbi-basic.sh
@@ -0,0 +1,13 @@
+# This file is part of the rsyslog project, released under GPLv3
+echo ===============================================================================
+echo \[libdbi-basic.sh\]: basic test for libdbi-basic functionality via mysql
+source $srcdir/diag.sh init
+mysql --user=rsyslog --password=testbench < testsuites/mysql-truncate.sql
+source $srcdir/diag.sh startup libdbi-basic.conf
+source $srcdir/diag.sh injectmsg 0 5000
+source $srcdir/diag.sh shutdown-when-empty
+source $srcdir/diag.sh wait-shutdown
+# 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 4999
+source $srcdir/diag.sh exit