diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-10-22 11:27:55 +0200 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2018-10-22 15:43:29 +0200 |
commit | e04e7a7214450fc6dff2571ecda65f7b7ea0d168 (patch) | |
tree | 57de619fb1a292420792c0a82431c8f39ac6ca2a /connectivity/README | |
parent | 63476c346b6c33e9d097c75a0cf4935408c19aec (diff) |
Add unit test for mysqlc connector
It can be used to test the mysqlc connector whenever there is an
external mysql or mariadb server running.
The test runs only when CONNECTIVITY_TEST_MYSQL_DRIVER environment variable
is set. This variable should contain the URL of the database, including
the port number and the host name.
The URL should also contain a user name password pair which can be used
to connect to the external database. The URL format is the following:
[user]/[passwd]@sdbc:mysql:mysqlc:[host]:[port]/[db_name]
README is updated and contains detailed information about the test.
Change-Id: I1bbc9369ff193a29c06de63a0f6cc975877c8da3
Reviewed-on: https://gerrit.libreoffice.org/62171
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'connectivity/README')
-rw-r--r-- | connectivity/README | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/connectivity/README b/connectivity/README index 852d4f8c4fd6..7dfc9d758937 100644 --- a/connectivity/README +++ b/connectivity/README @@ -1 +1,13 @@ Contains database pieces, drivers, etc. + + +=== mysql_test === + +- The CppunitTest_mysql_test unit test can be used to test the mysqlc + library with any versions of mysql or mariadb server of your choice. + +- This test does not run automatically. It can be triggered with setting + the environment variable "CONNECTIVITY_TEST_MYSQL_DRIVER". + +- The environment variable should contain an URL of the following format: + [user]/[passwd]@sdbc:mysql:mysqlc:[host]:[port]/[db_name] |