summaryrefslogtreecommitdiffstats
path: root/connectivity/Module_connectivity.mk
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2018-10-22 11:27:55 +0200
committerTamás Bunth <btomi96@gmail.com>2018-10-22 15:43:29 +0200
commite04e7a7214450fc6dff2571ecda65f7b7ea0d168 (patch)
tree57de619fb1a292420792c0a82431c8f39ac6ca2a /connectivity/Module_connectivity.mk
parentloplugin:staticvar ignore rtfkeywd.cxx for now (diff)
downloadcore-e04e7a7214450fc6dff2571ecda65f7b7ea0d168.tar.gz
core-e04e7a7214450fc6dff2571ecda65f7b7ea0d168.zip
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/Module_connectivity.mk')
-rw-r--r--connectivity/Module_connectivity.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/connectivity/Module_connectivity.mk b/connectivity/Module_connectivity.mk
index dec95bd4133b..d946eb274a0d 100644
--- a/connectivity/Module_connectivity.mk
+++ b/connectivity/Module_connectivity.mk
@@ -131,6 +131,12 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,connectivity,\
endif
+ifneq ($(CONNECTIVITY_TEST_MYSQL_DRIVER),)
+$(eval $(call gb_Module_add_check_targets,connectivity,\
+ CppunitTest_connectivity_mysql_test \
+))
+endif
+
# general tests
$(eval $(call gb_Module_add_check_targets,connectivity,\
CppunitTest_connectivity_commontools \