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/testsuites | |
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/testsuites')
-rw-r--r-- | tests/testsuites/mysql-asyn.conf | 5 | ||||
-rw-r--r-- | tests/testsuites/mysql-basic.conf | 4 | ||||
-rw-r--r-- | tests/testsuites/mysql-select-msg.sql | 2 | ||||
-rw-r--r-- | tests/testsuites/mysql-truncate.sql | 2 |
4 files changed, 13 insertions, 0 deletions
diff --git a/tests/testsuites/mysql-asyn.conf b/tests/testsuites/mysql-asyn.conf new file mode 100644 index 00000000..acdf9bbd --- /dev/null +++ b/tests/testsuites/mysql-asyn.conf @@ -0,0 +1,5 @@ +$IncludeConfig diag-common.conf + +$ModLoad ../plugins/ommysql/.libs/ommysql +$ActionQueueType LinkedList +:msg, contains, "msgnum:" :ommysql:127.0.0.1,Syslog,rsyslog,testbench; diff --git a/tests/testsuites/mysql-basic.conf b/tests/testsuites/mysql-basic.conf new file mode 100644 index 00000000..070094f5 --- /dev/null +++ b/tests/testsuites/mysql-basic.conf @@ -0,0 +1,4 @@ +$IncludeConfig diag-common.conf + +$ModLoad ../plugins/ommysql/.libs/ommysql +:msg, contains, "msgnum:" :ommysql:127.0.0.1,Syslog,rsyslog,testbench; diff --git a/tests/testsuites/mysql-select-msg.sql b/tests/testsuites/mysql-select-msg.sql new file mode 100644 index 00000000..2d27a331 --- /dev/null +++ b/tests/testsuites/mysql-select-msg.sql @@ -0,0 +1,2 @@ +use Syslog; +select substring(Message,9,8) from SystemEvents; diff --git a/tests/testsuites/mysql-truncate.sql b/tests/testsuites/mysql-truncate.sql new file mode 100644 index 00000000..ca852beb --- /dev/null +++ b/tests/testsuites/mysql-truncate.sql @@ -0,0 +1,2 @@ +use Syslog; +truncate table SystemEvents; |