From 1b15f2f280d6fb9ee1e51c3424769a912c8d0689 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 30 Nov 2016 22:13:51 +0100 Subject: [PATCH] split the functions test in even more categories Change-Id: I3ca640a24e95d1e6e0ad66be7bf09c45d63b52bb Reviewed-on: https://gerrit.libreoffice.org/31447 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- sc/CppunitTest_sc_addin_functions_test.mk | 116 ++++++++++++++++++ sc/CppunitTest_sc_array_functions_test.mk | 116 ++++++++++++++++++ sc/CppunitTest_sc_datetime_functions_test.mk | 116 ++++++++++++++++++ sc/CppunitTest_sc_financial_functions_test.mk | 116 ++++++++++++++++++ ...punitTest_sc_information_functions_test.mk | 116 ++++++++++++++++++ sc/CppunitTest_sc_logical_functions_test.mk | 116 ++++++++++++++++++ ...unitTest_sc_mathematical_functions_test.mk | 116 ++++++++++++++++++ ...punitTest_sc_spreadsheet_functions_test.mk | 116 ++++++++++++++++++ ...punitTest_sc_statistical_functions_test.mk | 116 ++++++++++++++++++ sc/CppunitTest_sc_text_functions_test.mk | 116 ++++++++++++++++++ sc/Module_sc.mk | 10 ++ .../functions/{ => addin}/fods/rot13.fods | 0 .../functions/{ => array}/fods/transpose.fods | 0 .../functions/{ => date_time}/fods/year.fods | 0 .../functions/{ => financial}/fods/pv.fods | 0 .../{ => information}/fods/type.fods | 0 .../functions/{ => logical}/fods/and.fods | 0 .../data/functions/{ => logical}/fods/if.fods | 0 .../functions/{ => logical}/fods/not.fods | 0 .../data/functions/{ => logical}/fods/or.fods | 0 .../functions/{ => logical}/fods/xor.fods | 0 .../{ => mathematical}/fods/sign.fods | 0 .../{ => spreadsheet}/fods/column.fods | 0 .../{ => statistical}/fods/counta.fods | 0 .../data/functions/{ => text}/fods/right.fods | 0 sc/qa/unit/functions_addin.cxx | 33 +++++ sc/qa/unit/functions_array.cxx | 33 +++++ sc/qa/unit/functions_datetime.cxx | 33 +++++ sc/qa/unit/functions_financial.cxx | 33 +++++ sc/qa/unit/functions_information.cxx | 33 +++++ sc/qa/unit/functions_logical.cxx | 33 +++++ sc/qa/unit/functions_mathematical.cxx | 33 +++++ sc/qa/unit/functions_spreadsheet.cxx | 33 +++++ sc/qa/unit/functions_statistical.cxx | 33 +++++ sc/qa/unit/functions_text.cxx | 33 +++++ 35 files changed, 1500 insertions(+) create mode 100644 sc/CppunitTest_sc_addin_functions_test.mk create mode 100644 sc/CppunitTest_sc_array_functions_test.mk create mode 100644 sc/CppunitTest_sc_datetime_functions_test.mk create mode 100644 sc/CppunitTest_sc_financial_functions_test.mk create mode 100644 sc/CppunitTest_sc_information_functions_test.mk create mode 100644 sc/CppunitTest_sc_logical_functions_test.mk create mode 100644 sc/CppunitTest_sc_mathematical_functions_test.mk create mode 100644 sc/CppunitTest_sc_spreadsheet_functions_test.mk create mode 100644 sc/CppunitTest_sc_statistical_functions_test.mk create mode 100644 sc/CppunitTest_sc_text_functions_test.mk rename sc/qa/unit/data/functions/{ => addin}/fods/rot13.fods (100%) rename sc/qa/unit/data/functions/{ => array}/fods/transpose.fods (100%) rename sc/qa/unit/data/functions/{ => date_time}/fods/year.fods (100%) rename sc/qa/unit/data/functions/{ => financial}/fods/pv.fods (100%) rename sc/qa/unit/data/functions/{ => information}/fods/type.fods (100%) rename sc/qa/unit/data/functions/{ => logical}/fods/and.fods (100%) rename sc/qa/unit/data/functions/{ => logical}/fods/if.fods (100%) rename sc/qa/unit/data/functions/{ => logical}/fods/not.fods (100%) rename sc/qa/unit/data/functions/{ => logical}/fods/or.fods (100%) rename sc/qa/unit/data/functions/{ => logical}/fods/xor.fods (100%) rename sc/qa/unit/data/functions/{ => mathematical}/fods/sign.fods (100%) rename sc/qa/unit/data/functions/{ => spreadsheet}/fods/column.fods (100%) rename sc/qa/unit/data/functions/{ => statistical}/fods/counta.fods (100%) rename sc/qa/unit/data/functions/{ => text}/fods/right.fods (100%) create mode 100644 sc/qa/unit/functions_addin.cxx create mode 100644 sc/qa/unit/functions_array.cxx create mode 100644 sc/qa/unit/functions_datetime.cxx create mode 100644 sc/qa/unit/functions_financial.cxx create mode 100644 sc/qa/unit/functions_information.cxx create mode 100644 sc/qa/unit/functions_logical.cxx create mode 100644 sc/qa/unit/functions_mathematical.cxx create mode 100644 sc/qa/unit/functions_spreadsheet.cxx create mode 100644 sc/qa/unit/functions_statistical.cxx create mode 100644 sc/qa/unit/functions_text.cxx diff --git a/sc/CppunitTest_sc_addin_functions_test.mk b/sc/CppunitTest_sc_addin_functions_test.mk new file mode 100644 index 000000000000..245c94b82b04 --- /dev/null +++ b/sc/CppunitTest_sc_addin_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_addin_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_addin_functions_test, \ + sc/qa/unit/functions_addin \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_addin_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_addin_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_addin_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_addin_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_addin_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_addin_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_addin_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_addin_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_array_functions_test.mk b/sc/CppunitTest_sc_array_functions_test.mk new file mode 100644 index 000000000000..cff986e37fc6 --- /dev/null +++ b/sc/CppunitTest_sc_array_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_array_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_array_functions_test, \ + sc/qa/unit/functions_array \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_array_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_array_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_array_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_array_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_array_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_array_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_array_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_array_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_datetime_functions_test.mk b/sc/CppunitTest_sc_datetime_functions_test.mk new file mode 100644 index 000000000000..138ff3a1eaa0 --- /dev/null +++ b/sc/CppunitTest_sc_datetime_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_datetime_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_datetime_functions_test, \ + sc/qa/unit/functions_datetime \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_datetime_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_datetime_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_datetime_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_datetime_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_datetime_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_datetime_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_datetime_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_datetime_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_financial_functions_test.mk b/sc/CppunitTest_sc_financial_functions_test.mk new file mode 100644 index 000000000000..5bf97a751baf --- /dev/null +++ b/sc/CppunitTest_sc_financial_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_financial_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_financial_functions_test, \ + sc/qa/unit/functions_financial \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_financial_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_financial_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_financial_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_financial_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_financial_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_financial_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_financial_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_financial_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_information_functions_test.mk b/sc/CppunitTest_sc_information_functions_test.mk new file mode 100644 index 000000000000..4741322e51af --- /dev/null +++ b/sc/CppunitTest_sc_information_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_information_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_information_functions_test, \ + sc/qa/unit/functions_information \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_information_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_information_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_information_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_information_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_information_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_information_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_information_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_information_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_logical_functions_test.mk b/sc/CppunitTest_sc_logical_functions_test.mk new file mode 100644 index 000000000000..af9a5a3bf5c6 --- /dev/null +++ b/sc/CppunitTest_sc_logical_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_logical_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_logical_functions_test, \ + sc/qa/unit/functions_logical \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_logical_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_logical_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_logical_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_logical_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_logical_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_logical_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_logical_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_logical_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_mathematical_functions_test.mk b/sc/CppunitTest_sc_mathematical_functions_test.mk new file mode 100644 index 000000000000..672bf5cb4226 --- /dev/null +++ b/sc/CppunitTest_sc_mathematical_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_mathematical_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_mathematical_functions_test, \ + sc/qa/unit/functions_mathematical \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_mathematical_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_mathematical_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_mathematical_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_mathematical_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_mathematical_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_mathematical_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_mathematical_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_mathematical_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_spreadsheet_functions_test.mk b/sc/CppunitTest_sc_spreadsheet_functions_test.mk new file mode 100644 index 000000000000..dee36b2afea8 --- /dev/null +++ b/sc/CppunitTest_sc_spreadsheet_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_spreadsheet_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_spreadsheet_functions_test, \ + sc/qa/unit/functions_spreadsheet \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_spreadsheet_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_spreadsheet_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_spreadsheet_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_spreadsheet_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_spreadsheet_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_spreadsheet_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_spreadsheet_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_spreadsheet_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_statistical_functions_test.mk b/sc/CppunitTest_sc_statistical_functions_test.mk new file mode 100644 index 000000000000..4ec0561da657 --- /dev/null +++ b/sc/CppunitTest_sc_statistical_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_statistical_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_statistical_functions_test, \ + sc/qa/unit/functions_statistical \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_statistical_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_statistical_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_statistical_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_statistical_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_statistical_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_statistical_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_statistical_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_statistical_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/CppunitTest_sc_text_functions_test.mk b/sc/CppunitTest_sc_text_functions_test.mk new file mode 100644 index 000000000000..6f4131ce04fc --- /dev/null +++ b/sc/CppunitTest_sc_text_functions_test.mk @@ -0,0 +1,116 @@ +# -*- 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,sc_text_functions_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_text_functions_test, \ + sc/qa/unit/functions_text \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_text_functions_test, \ + boost_headers \ + mdds_headers \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_text_functions_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sc \ + scqahelper \ + sfx \ + sot \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_text_functions_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_text_functions_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_text_functions_test)) + +$(eval $(call gb_CppunitTest_use_vcl,sc_text_functions_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_text_functions_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + connectivity/source/manager/sdbc2 \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + filter/source/odfflatxml/odfflatxml \ + filter/source/xmlfilteradaptor/xmlfa \ + forms/util/frm \ + framework/util/fwk \ + i18npool/util/i18npool \ + i18npool/source/search/i18nsearch \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + svx/util/svx \ + svx/util/svxcore \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + uui/util/uui \ + xmloff/util/xo \ + xmlscript/util/xmlscript \ +)) + +$(eval $(call gb_CppunitTest_use_configuration,sc_text_functions_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk index 96458d12d408..cd5c0459574f 100644 --- a/sc/Module_sc.mk +++ b/sc/Module_sc.mk @@ -76,6 +76,16 @@ ifneq ($(PLATFORMID),linux_x86) $(eval $(call gb_Module_add_slowcheck_targets,sc, \ CppunitTest_sc_functions_test_old \ CppunitTest_sc_database_functions_test \ + CppunitTest_sc_array_functions_test \ + CppunitTest_sc_addin_functions_test \ + CppunitTest_sc_datetime_functions_test \ + CppunitTest_sc_financial_functions_test \ + CppunitTest_sc_information_functions_test \ + CppunitTest_sc_logical_functions_test \ + CppunitTest_sc_mathematical_functions_test \ + CppunitTest_sc_spreadsheet_functions_test \ + CppunitTest_sc_statistical_functions_test \ + CppunitTest_sc_text_functions_test \ )) endif diff --git a/sc/qa/unit/data/functions/fods/rot13.fods b/sc/qa/unit/data/functions/addin/fods/rot13.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/rot13.fods rename to sc/qa/unit/data/functions/addin/fods/rot13.fods diff --git a/sc/qa/unit/data/functions/fods/transpose.fods b/sc/qa/unit/data/functions/array/fods/transpose.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/transpose.fods rename to sc/qa/unit/data/functions/array/fods/transpose.fods diff --git a/sc/qa/unit/data/functions/fods/year.fods b/sc/qa/unit/data/functions/date_time/fods/year.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/year.fods rename to sc/qa/unit/data/functions/date_time/fods/year.fods diff --git a/sc/qa/unit/data/functions/fods/pv.fods b/sc/qa/unit/data/functions/financial/fods/pv.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/pv.fods rename to sc/qa/unit/data/functions/financial/fods/pv.fods diff --git a/sc/qa/unit/data/functions/fods/type.fods b/sc/qa/unit/data/functions/information/fods/type.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/type.fods rename to sc/qa/unit/data/functions/information/fods/type.fods diff --git a/sc/qa/unit/data/functions/fods/and.fods b/sc/qa/unit/data/functions/logical/fods/and.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/and.fods rename to sc/qa/unit/data/functions/logical/fods/and.fods diff --git a/sc/qa/unit/data/functions/fods/if.fods b/sc/qa/unit/data/functions/logical/fods/if.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/if.fods rename to sc/qa/unit/data/functions/logical/fods/if.fods diff --git a/sc/qa/unit/data/functions/fods/not.fods b/sc/qa/unit/data/functions/logical/fods/not.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/not.fods rename to sc/qa/unit/data/functions/logical/fods/not.fods diff --git a/sc/qa/unit/data/functions/fods/or.fods b/sc/qa/unit/data/functions/logical/fods/or.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/or.fods rename to sc/qa/unit/data/functions/logical/fods/or.fods diff --git a/sc/qa/unit/data/functions/fods/xor.fods b/sc/qa/unit/data/functions/logical/fods/xor.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/xor.fods rename to sc/qa/unit/data/functions/logical/fods/xor.fods diff --git a/sc/qa/unit/data/functions/fods/sign.fods b/sc/qa/unit/data/functions/mathematical/fods/sign.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/sign.fods rename to sc/qa/unit/data/functions/mathematical/fods/sign.fods diff --git a/sc/qa/unit/data/functions/fods/column.fods b/sc/qa/unit/data/functions/spreadsheet/fods/column.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/column.fods rename to sc/qa/unit/data/functions/spreadsheet/fods/column.fods diff --git a/sc/qa/unit/data/functions/fods/counta.fods b/sc/qa/unit/data/functions/statistical/fods/counta.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/counta.fods rename to sc/qa/unit/data/functions/statistical/fods/counta.fods diff --git a/sc/qa/unit/data/functions/fods/right.fods b/sc/qa/unit/data/functions/text/fods/right.fods similarity index 100% rename from sc/qa/unit/data/functions/fods/right.fods rename to sc/qa/unit/data/functions/text/fods/right.fods diff --git a/sc/qa/unit/functions_addin.cxx b/sc/qa/unit/functions_addin.cxx new file mode 100644 index 000000000000..b56eaf8c05d3 --- /dev/null +++ b/sc/qa/unit/functions_addin.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class AddinFunctionsTest : public FunctionsTest +{ +public: + AddinFunctionsTest(); + + void testAddinFormulasFODS(); + + CPPUNIT_TEST_SUITE(AddinFunctionsTest); + CPPUNIT_TEST(testAddinFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void AddinFunctionsTest::testAddinFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/addin/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +AddinFunctionsTest::AddinFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/addin/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(AddinFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_array.cxx b/sc/qa/unit/functions_array.cxx new file mode 100644 index 000000000000..99c09ed17020 --- /dev/null +++ b/sc/qa/unit/functions_array.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class ArrayFunctionsTest : public FunctionsTest +{ +public: + ArrayFunctionsTest(); + + void testArrayFormulasFODS(); + + CPPUNIT_TEST_SUITE(ArrayFunctionsTest); + CPPUNIT_TEST(testArrayFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void ArrayFunctionsTest::testArrayFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/array/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +ArrayFunctionsTest::ArrayFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/array/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(ArrayFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_datetime.cxx b/sc/qa/unit/functions_datetime.cxx new file mode 100644 index 000000000000..3e99272c9254 --- /dev/null +++ b/sc/qa/unit/functions_datetime.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class DateTimeFunctionsTest : public FunctionsTest +{ +public: + DateTimeFunctionsTest(); + + void testDateTimeFormulasFODS(); + + CPPUNIT_TEST_SUITE(DateTimeFunctionsTest); + CPPUNIT_TEST(testDateTimeFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void DateTimeFunctionsTest::testDateTimeFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/date_time/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +DateTimeFunctionsTest::DateTimeFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/date_time/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(DateTimeFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_financial.cxx b/sc/qa/unit/functions_financial.cxx new file mode 100644 index 000000000000..7d42a46007ee --- /dev/null +++ b/sc/qa/unit/functions_financial.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class FinancialFunctionsTest : public FunctionsTest +{ +public: + FinancialFunctionsTest(); + + void testFinancialFormulasFODS(); + + CPPUNIT_TEST_SUITE(FinancialFunctionsTest); + CPPUNIT_TEST(testFinancialFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void FinancialFunctionsTest::testFinancialFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/financial/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +FinancialFunctionsTest::FinancialFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/financial/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(FinancialFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_information.cxx b/sc/qa/unit/functions_information.cxx new file mode 100644 index 000000000000..f051a11c8051 --- /dev/null +++ b/sc/qa/unit/functions_information.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class InformationFunctionsTest : public FunctionsTest +{ +public: + InformationFunctionsTest(); + + void testInformationFormulasFODS(); + + CPPUNIT_TEST_SUITE(InformationFunctionsTest); + CPPUNIT_TEST(testInformationFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void InformationFunctionsTest::testInformationFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/information/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +InformationFunctionsTest::InformationFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/information/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(InformationFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_logical.cxx b/sc/qa/unit/functions_logical.cxx new file mode 100644 index 000000000000..917df0a5523a --- /dev/null +++ b/sc/qa/unit/functions_logical.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class LogicalFunctionsTest : public FunctionsTest +{ +public: + LogicalFunctionsTest(); + + void testLogicalFormulasFODS(); + + CPPUNIT_TEST_SUITE(LogicalFunctionsTest); + CPPUNIT_TEST(testLogicalFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void LogicalFunctionsTest::testLogicalFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/logical/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +LogicalFunctionsTest::LogicalFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/logical/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(LogicalFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_mathematical.cxx b/sc/qa/unit/functions_mathematical.cxx new file mode 100644 index 000000000000..6be24fe1b6a7 --- /dev/null +++ b/sc/qa/unit/functions_mathematical.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class MathematicalFunctionsTest : public FunctionsTest +{ +public: + MathematicalFunctionsTest(); + + void testMathematicalFormulasFODS(); + + CPPUNIT_TEST_SUITE(MathematicalFunctionsTest); + CPPUNIT_TEST(testMathematicalFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void MathematicalFunctionsTest::testMathematicalFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/mathematical/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +MathematicalFunctionsTest::MathematicalFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/mathematical/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(MathematicalFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_spreadsheet.cxx b/sc/qa/unit/functions_spreadsheet.cxx new file mode 100644 index 000000000000..cb8d16ecd90b --- /dev/null +++ b/sc/qa/unit/functions_spreadsheet.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class SpreadsheetFunctionsTest : public FunctionsTest +{ +public: + SpreadsheetFunctionsTest(); + + void testSpreadsheetFormulasFODS(); + + CPPUNIT_TEST_SUITE(SpreadsheetFunctionsTest); + CPPUNIT_TEST(testSpreadsheetFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void SpreadsheetFunctionsTest::testSpreadsheetFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/spreadsheet/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +SpreadsheetFunctionsTest::SpreadsheetFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/spreadsheet/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(SpreadsheetFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_statistical.cxx b/sc/qa/unit/functions_statistical.cxx new file mode 100644 index 000000000000..91d970af68c2 --- /dev/null +++ b/sc/qa/unit/functions_statistical.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class StatisticalFunctionsTest : public FunctionsTest +{ +public: + StatisticalFunctionsTest(); + + void testStatisticalFormulasFODS(); + + CPPUNIT_TEST_SUITE(StatisticalFunctionsTest); + CPPUNIT_TEST(testStatisticalFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void StatisticalFunctionsTest::testStatisticalFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/statistical/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +StatisticalFunctionsTest::StatisticalFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/statistical/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(StatisticalFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/qa/unit/functions_text.cxx b/sc/qa/unit/functions_text.cxx new file mode 100644 index 000000000000..a5bae6330763 --- /dev/null +++ b/sc/qa/unit/functions_text.cxx @@ -0,0 +1,33 @@ +#include "functions_test.hxx" + +class TextFunctionsTest : public FunctionsTest +{ +public: + TextFunctionsTest(); + + void testTextFormulasFODS(); + + CPPUNIT_TEST_SUITE(TextFunctionsTest); + CPPUNIT_TEST(testTextFormulasFODS); + CPPUNIT_TEST_SUITE_END(); + +}; + +void TextFunctionsTest::testTextFormulasFODS() +{ + OUString aDirectoryURL = m_directories.getURLFromSrc("/sc/qa/unit/data/functions/text/fods/"); + recursiveScan(test::pass, "OpenDocument Spreadsheet Flat XML", aDirectoryURL, + "com.sun.star.comp.filter.OdfFlatXml,,com.sun.star.comp.Calc.XMLOasisImporter,com.sun.star.comp.Calc.XMLOasisExporter,,,true", + FODS_FORMAT_TYPE, SotClipboardFormatId::NONE, 0, false); +} + +TextFunctionsTest::TextFunctionsTest(): + FunctionsTest("sc/qa/unit/data/functions/text/fods/") +{ +} + +CPPUNIT_TEST_SUITE_REGISTRATION(TextFunctionsTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */