From e04e7a7214450fc6dff2571ecda65f7b7ea0d168 Mon Sep 17 00:00:00 2001 From: Tamas Bunth Date: Mon, 22 Oct 2018 11:27:55 +0200 Subject: Add unit test for mysqlc connector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../CppunitTest_connectivity_mysql_test.mk | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 connectivity/CppunitTest_connectivity_mysql_test.mk (limited to 'connectivity/CppunitTest_connectivity_mysql_test.mk') 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: -- cgit