office-gobmx/connectivity/CppunitTest_connectivity_mysql_test.mk
Tamas Bunth e04e7a7214 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>
2018-10-22 15:43:29 +02:00

66 lines
1.7 KiB
Makefile

# -*- 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: