summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-11-08 00:48:14 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2018-11-09 07:37:00 +0100
commit84286ac443ea8978743d281efeaa7ddb46199558 (patch)
tree916a3175c92da40e4ac521586f74b01dcb71e07f /forms
parent5063e7fc09b38b77a3ff4c200b68cf2c8947462d (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 'forms')
-rw-r--r--forms/JunitTest_forms_unoapi_1.mk19
-rw-r--r--forms/JunitTest_forms_unoapi_2.mk19
-rw-r--r--forms/JunitTest_forms_unoapi_3.mk19
-rw-r--r--forms/JunitTest_forms_unoapi_4.mk19
4 files changed, 4 insertions, 72 deletions
diff --git a/forms/JunitTest_forms_unoapi_1.mk b/forms/JunitTest_forms_unoapi_1.mk
index 766496355b63..bf900dc78fcb 100644
--- a/forms/JunitTest_forms_unoapi_1.mk
+++ b/forms/JunitTest_forms_unoapi_1.mk
@@ -9,23 +9,6 @@
$(eval $(call gb_JunitTest_JunitTest,forms_unoapi_1))
-$(eval $(call gb_JunitTest_set_defs,forms_unoapi_1,\
- $$(DEFS) \
- -Dorg.openoffice.test.arg.sce=$(SRCDIR)/forms/qa/unoapi/forms_1.sce \
- -Dorg.openoffice.test.arg.xcl=$(SRCDIR)/forms/qa/unoapi/knownissues.xcl \
- -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/forms/qa/unoapi/testdocuments \
-))
-
-$(eval $(call gb_JunitTest_use_jars,forms_unoapi_1,\
- OOoRunner \
- ridl \
- test \
- unoil \
- jurt \
-))
-
-$(eval $(call gb_JunitTest_add_classes,forms_unoapi_1,\
- org.openoffice.test.UnoApiTest \
-))
+$(eval $(call gb_JunitTest_set_unoapi_test_defaults,forms_unoapi_1))
# vim: set noet sw=4 ts=4:
diff --git a/forms/JunitTest_forms_unoapi_2.mk b/forms/JunitTest_forms_unoapi_2.mk
index c309cc75ebce..21121bb542b5 100644
--- a/forms/JunitTest_forms_unoapi_2.mk
+++ b/forms/JunitTest_forms_unoapi_2.mk
@@ -9,23 +9,6 @@
$(eval $(call gb_JunitTest_JunitTest,forms_unoapi_2))
-$(eval $(call gb_JunitTest_set_defs,forms_unoapi_2,\
- $$(DEFS) \
- -Dorg.openoffice.test.arg.sce=$(SRCDIR)/forms/qa/unoapi/forms_2.sce \
- -Dorg.openoffice.test.arg.xcl=$(SRCDIR)/forms/qa/unoapi/knownissues.xcl \
- -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/forms/qa/unoapi/testdocuments \
-))
-
-$(eval $(call gb_JunitTest_use_jars,forms_unoapi_2,\
- OOoRunner \
- ridl \
- test \
- unoil \
- jurt \
-))
-
-$(eval $(call gb_JunitTest_add_classes,forms_unoapi_2,\
- org.openoffice.test.UnoApiTest \
-))
+$(eval $(call gb_JunitTest_set_unoapi_test_defaults,forms_unoapi_2))
# vim: set noet sw=4 ts=4:
diff --git a/forms/JunitTest_forms_unoapi_3.mk b/forms/JunitTest_forms_unoapi_3.mk
index 4ba8829fddfa..7ed5010ce48f 100644
--- a/forms/JunitTest_forms_unoapi_3.mk
+++ b/forms/JunitTest_forms_unoapi_3.mk
@@ -9,23 +9,6 @@
$(eval $(call gb_JunitTest_JunitTest,forms_unoapi_3))
-$(eval $(call gb_JunitTest_set_defs,forms_unoapi_3,\
- $$(DEFS) \
- -Dorg.openoffice.test.arg.sce=$(SRCDIR)/forms/qa/unoapi/forms_3.sce \
- -Dorg.openoffice.test.arg.xcl=$(SRCDIR)/forms/qa/unoapi/knownissues.xcl \
- -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/forms/qa/unoapi/testdocuments \
-))
-
-$(eval $(call gb_JunitTest_use_jars,forms_unoapi_3,\
- OOoRunner \
- ridl \
- test \
- unoil \
- jurt \
-))
-
-$(eval $(call gb_JunitTest_add_classes,forms_unoapi_3,\
- org.openoffice.test.UnoApiTest \
-))
+$(eval $(call gb_JunitTest_set_unoapi_test_defaults,forms_unoapi_3))
# vim: set noet sw=4 ts=4:
diff --git a/forms/JunitTest_forms_unoapi_4.mk b/forms/JunitTest_forms_unoapi_4.mk
index e63cc3ff069c..a07ca857f6ec 100644
--- a/forms/JunitTest_forms_unoapi_4.mk
+++ b/forms/JunitTest_forms_unoapi_4.mk
@@ -9,23 +9,6 @@
$(eval $(call gb_JunitTest_JunitTest,forms_unoapi_4))
-$(eval $(call gb_JunitTest_set_defs,forms_unoapi_4,\
- $$(DEFS) \
- -Dorg.openoffice.test.arg.sce=$(SRCDIR)/forms/qa/unoapi/forms_4.sce \
- -Dorg.openoffice.test.arg.xcl=$(SRCDIR)/forms/qa/unoapi/knownissues.xcl \
- -Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/forms/qa/unoapi/testdocuments \
-))
-
-$(eval $(call gb_JunitTest_use_jars,forms_unoapi_4,\
- OOoRunner \
- ridl \
- test \
- unoil \
- jurt \
-))
-
-$(eval $(call gb_JunitTest_add_classes,forms_unoapi_4,\
- org.openoffice.test.UnoApiTest \
-))
+$(eval $(call gb_JunitTest_set_unoapi_test_defaults,forms_unoapi_4))
# vim: set noet sw=4 ts=4: