summaryrefslogtreecommitdiff
path: root/connectivity/CppunitTest_connectivity_mysql_test.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/CppunitTest_connectivity_mysql_test.mk
parent63476c346b6c33e9d097c75a0cf4935408c19aec (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/CppunitTest_connectivity_mysql_test.mk')
-rw-r--r--connectivity/CppunitTest_connectivity_mysql_test.mk66
1 files changed, 66 insertions, 0 deletions
diff --git a/connectivity/CppunitTest_connectivity_mysql_test.mk b/connectivity/CppunitTest_connectivity_mysql_test.mk
new file mode 100644
index 000000000000..5d9a8bb05d58
--- /dev/null
+++ b/connectivity/CppunitTest_connectivity_mysql_test.mk
@@ -0,0 +1,66 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CppunitTest_CppunitTest,mysql_test))
+
+$(eval $(call gb_CppunitTest_use_external,mysql_test,boost_headers))
+
+$(eval $(call gb_CppunitTest_add_exception_objects,mysql_test, \
+ connectivity/qa/connectivity/mysql/mysql \
+))
+
+$(eval $(call gb_CppunitTest_use_libraries,mysql_test, \
+ comphelper \
+ cppu \
+ dbaxml \
+ sal \
+ subsequenttest \
+ svt \
+ test \
+ unotest \
+ utl \
+ xo \
+))
+
+$(eval $(call gb_CppunitTest_use_api,mysql_test,\
+ offapi \
+ oovbaapi \
+ udkapi \
+))
+
+$(eval $(call gb_CppunitTest_use_ure,mysql_test))
+$(eval $(call gb_CppunitTest_use_vcl,mysql_test))
+
+$(eval $(call gb_CppunitTest_use_components,mysql_test,\
+ basic/util/sb \
+ comphelper/util/comphelp \
+ configmgr/source/configmgr \
+ connectivity/source/drivers/mysqlc/mysqlc \
+ connectivity/source/manager/sdbc2 \
+ filter/source/config/cache/filterconfig1 \
+ framework/util/fwk \
+ i18npool/util/i18npool \
+ linguistic/source/lng \
+ package/source/xstor/xstor \
+ package/util/package2 \
+ sax/source/expatwrap/expwrap \
+ sfx2/util/sfx \
+ svl/source/fsstor/fsstorage \
+ svl/util/svl \
+ toolkit/util/tk \
+ ucb/source/core/ucb1 \
+ ucb/source/ucp/file/ucpfile1 \
+ unotools/util/utl \
+ uui/util/uui \
+ xmloff/util/xo \
+))
+
+$(eval $(call gb_CppunitTest_use_configuration,mysql_test))
+
+# vim: set noet sw=4 ts=4: