diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-11-08 00:48:14 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-11-09 07:37:00 +0100 |
commit | 84286ac443ea8978743d281efeaa7ddb46199558 (patch) | |
tree | 916a3175c92da40e4ac521586f74b01dcb71e07f /chart2/JunitTest_chart2_unoapi.mk | |
parent | 5063e7fc09b38b77a3ff4c200b68cf2c8947462d (diff) |
Simplify and fix Java UNO API test makefiles
Originally I just wanted to add the juh.jar to the list of jars
of the UNO API tests, but this became tedious work, so after the
first few files I decided to replace the similiar makefiles with
a common define for the *_unoapi* tests.
This patch adds two new make defines to be used used by Java UNO
and UNO API tests:
- gb_JunitTest_set_unoapi_test_defaults
- gb_JunitTest_set_unoapi_test_class_and_jars
The first one will deduce most defaults from the test name, but
still allows to optionally override most settings.
If a test doesn't match the default at all, the 2nd define still
shares the common jar files and the main Java UNO class, so the
second define adds these to your makefile.
The real fix is to add juh.jar to gb_JunitTest_use_jars.
Change-Id: I4342fdac5e31f85ea18fb4268e13c287a7adc2b7
Reviewed-on: https://gerrit.libreoffice.org/63118
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'chart2/JunitTest_chart2_unoapi.mk')
-rw-r--r-- | chart2/JunitTest_chart2_unoapi.mk | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/chart2/JunitTest_chart2_unoapi.mk b/chart2/JunitTest_chart2_unoapi.mk index d91c6fae3bba..7607c4648200 100644 --- a/chart2/JunitTest_chart2_unoapi.mk +++ b/chart2/JunitTest_chart2_unoapi.mk @@ -9,23 +9,6 @@ $(eval $(call gb_JunitTest_JunitTest,chart2_unoapi)) -$(eval $(call gb_JunitTest_set_defs,chart2_unoapi,\ - $$(DEFS) \ - -Dorg.openoffice.test.arg.sce=$(SRCDIR)/chart2/qa/unoapi/sch.sce \ - -Dorg.openoffice.test.arg.xcl=$(SRCDIR)/chart2/qa/unoapi/knownissues.xcl \ - -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/chart2/qa/unoapi/testdocuments \ -)) - -$(eval $(call gb_JunitTest_use_jars,chart2_unoapi,\ - OOoRunner \ - ridl \ - test \ - unoil \ - jurt \ -)) - -$(eval $(call gb_JunitTest_add_classes,chart2_unoapi,\ - org.openoffice.test.UnoApiTest \ -)) +$(eval $(call gb_JunitTest_set_unoapi_test_defaults,chart2_unoapi,,sch.sce)) # vim: set noet sw=4 ts=4: |