Skip to content

Commit 33e47b4

Browse files
committed
Fix many Java subsequentcheck test by using JUH
Splits gb_JunitTest_set_unoapi_test_class_and_jars into two separate defines as: - gb_JunitTest_use_unoapi_jars - gb_JunitTest_use_unoapi_test_class Then replaces many of the gb_JunitTest_use_jars lists with the new gb_JunitTest_use_unoapi_jars to fix the JUH dependencies. This probably adds some unneeded JUH dependencies to some Java tests, but that shouldn't be a problem. Change-Id: I0c4fce6b50f7c6eb8d62bfb2c50f056b97584794 Reviewed-on: https://gerrit.libreoffice.org/63119 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <[email protected]>
1 parent 84286ac commit 33e47b4

19 files changed

+30
-107
lines changed

comphelper/JunitTest_comphelper_complex.mk

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,13 @@
1919

2020
$(eval $(call gb_JunitTest_JunitTest,comphelper_complex))
2121

22+
$(eval $(call gb_JunitTest_use_unoapi_jars,comphelper_complex))
23+
2224
$(eval $(call gb_JunitTest_add_sourcefiles,comphelper_complex,\
2325
comphelper/qa/complex/comphelper/Map \
2426
comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest \
2527
))
2628

27-
$(eval $(call gb_JunitTest_use_jars,comphelper_complex,\
28-
OOoRunner \
29-
ridl \
30-
test \
31-
unoil \
32-
jurt \
33-
))
34-
3529
$(eval $(call gb_JunitTest_add_classes,comphelper_complex,\
3630
complex.comphelper.SequenceOutputStreamUnitTest \
3731
complex.comphelper.Map \

connectivity/JunitTest_complex.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
$(eval $(call gb_JunitTest_JunitTest,connectivity_complex))
1111

12-
$(eval $(call gb_JunitTest_set_unoapi_test_class_and_jars,connectivity_complex))
12+
$(eval $(call gb_JunitTest_use_unoapi_jars,connectivity_complex))
13+
$(eval $(call gb_JunitTest_use_unoapi_test_class,connectivity_complex))
1314

1415
$(eval $(call gb_JunitTest_set_defs,connectivity_complex,\
1516
$$(DEFS) \

dbaccess/JunitTest_dbaccess_complex.mk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99

1010
$(eval $(call gb_JunitTest_JunitTest,dbaccess_complex))
1111

12+
$(eval $(call gb_JunitTest_use_unoapi_jars,dbaccess_complex))
13+
1214
$(eval $(call gb_JunitTest_use_jars,dbaccess_complex,\
1315
ConnectivityTools \
14-
OOoRunner \
15-
juh \
16-
jurt \
17-
ridl \
18-
test \
19-
unoil \
2016
))
2117

2218
$(eval $(call gb_JunitTest_set_defs,dbaccess_complex,\

filter/JunitTest_filter_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@
1818

1919
$(eval $(call gb_JunitTest_JunitTest,filter_complex))
2020

21-
$(eval $(call gb_JunitTest_use_jars,filter_complex,\
22-
OOoRunner \
23-
ridl \
24-
test \
25-
unoil \
26-
jurt \
27-
))
21+
$(eval $(call gb_JunitTest_use_unoapi_jars,filter_complex))
2822

2923
$(eval $(call gb_JunitTest_add_sourcefiles,filter_complex,\
3024
filter/qa/complex/filter/misc/FinalizedMandatoryTest \

forms/JunitTest_forms_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@
99

1010
$(eval $(call gb_JunitTest_JunitTest,forms_complex))
1111

12-
$(eval $(call gb_JunitTest_use_jars,forms_complex,\
13-
OOoRunner \
14-
ridl \
15-
test \
16-
unoil \
17-
jurt \
18-
))
12+
$(eval $(call gb_JunitTest_use_unoapi_jars,forms_complex))
1913

2014
$(eval $(call gb_JunitTest_add_sourcefiles,forms_complex,\
2115
forms/qa/complex/forms/CheckOGroupBoxModel \

framework/JunitTest_framework_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ $(eval $(call gb_JunitTest_set_defs,framework_complex,\
2424
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/framework/qa/complex/broken_document/test_documents \
2525
))
2626

27-
$(eval $(call gb_JunitTest_use_jars,framework_complex,\
28-
OOoRunner \
29-
ridl \
30-
test \
31-
unoil \
32-
jurt \
33-
))
27+
$(eval $(call gb_JunitTest_use_unoapi_jars,framework_complex))
3428

3529
$(eval $(call gb_JunitTest_add_sourcefiles,framework_complex,\
3630
framework/qa/complex/disposing/GetServiceWhileDisposingOffice \

jurt/JunitTest_java_remote.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$(eval $(call gb_JunitTest_JunitTest,jurt_java_remote))
1111

1212
$(eval $(call gb_JunitTest_use_jars,jurt_java_remote,\
13-
OOoRunner \
13+
OOoRunner \
1414
ridl \
1515
))
1616

reportdesign/JunitTest_reportdesign_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ $(eval $(call gb_JunitTest_add_sourcefiles,reportdesign_complex,\
3030
reportdesign/qa/complex/reportdesign/FileURL \
3131
))
3232

33-
$(eval $(call gb_JunitTest_use_jars,reportdesign_complex,\
34-
OOoRunner \
35-
ridl \
36-
test \
37-
unoil \
38-
jurt \
39-
))
33+
$(eval $(call gb_JunitTest_use_unoapi_jars,reportdesign_complex))
4034

4135
$(eval $(call gb_JunitTest_add_classes,reportdesign_complex,\
4236
complex.reportdesign.ReportDesignerTest \

sc/JunitTest_sc_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ $(eval $(call gb_JunitTest_add_classes,sc_complex, \
1616
complex.sc.CalcRTL \
1717
))
1818

19-
$(eval $(call gb_JunitTest_use_jars,sc_complex, \
20-
OOoRunner \
21-
jurt \
22-
ridl \
23-
test \
24-
unoil \
25-
))
19+
$(eval $(call gb_JunitTest_use_unoapi_jars,sc_complex))
2620

2721
$(eval $(call gb_JunitTest_add_sourcefiles,sc_complex, \
2822
sc/qa/complex/dataPilot/_XDataPilotDescriptor \

sfx2/JunitTest_sfx2_complex.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ $(eval $(call gb_JunitTest_set_defs,sfx2_complex,\
2424
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/sfx2/qa/complex/sfx2/testdocuments \
2525
))
2626

27+
$(eval $(call gb_JunitTest_use_unoapi_jars,sfx2_complex))
28+
2729
$(eval $(call gb_JunitTest_use_jars,sfx2_complex,\
28-
OOoRunner \
29-
ridl \
30-
test \
3130
test-tools \
32-
unoil \
33-
jurt \
3431
))
3532

3633
$(eval $(call gb_JunitTest_add_sourcefiles,sfx2_complex,\

solenv/gbuild/JunitTest.mk

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ $(foreach dependency,$(2),$(call gb_JunitTest_use_customtarget,$(1),$(dependency
152152

153153
endef
154154

155-
define gb_JunitTest_set_unoapi_test_class_and_jars
155+
define gb_JunitTest_use_unoapi_jars
156156
$(eval $(call gb_JunitTest_use_jars,$(1),\
157157
OOoRunner \
158158
juh \
@@ -162,6 +162,9 @@ $(eval $(call gb_JunitTest_use_jars,$(1),\
162162
unoil \
163163
))
164164

165+
endef
166+
167+
define gb_JunitTest_use_unoapi_test_class
165168
$(eval $(call gb_JunitTest_add_classes,$(1),\
166169
org.openoffice.test.UnoApiTest \
167170
))
@@ -187,7 +190,8 @@ $(eval $(call gb_JunitTest_set_defs,$(1),\
187190
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/$(gb_JunitTest__unoapi_dir)/$(if $(5),$(5),testdocuments) \
188191
))
189192

190-
$(eval $(call gb_JunitTest_set_unoapi_test_class_and_jars,$(1)))
193+
$(eval $(call gb_JunitTest_use_unoapi_jars,$(1)))
194+
$(eval $(call gb_JunitTest_use_unoapi_test_class,$(1)))
191195

192196
endef
193197

sot/JunitTest_sot_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ $(eval $(call gb_JunitTest_add_sourcefiles,sot_complex,\
2626
sot/qa/complex/olesimplestorage/TestHelper \
2727
))
2828

29-
$(eval $(call gb_JunitTest_use_jars,sot_complex,\
30-
OOoRunner \
31-
ridl \
32-
test \
33-
unoil \
34-
jurt \
35-
))
29+
$(eval $(call gb_JunitTest_use_unoapi_jars,sot_complex))
3630

3731
$(eval $(call gb_JunitTest_add_classes,sot_complex,\
3832
complex.olesimplestorage.OLESimpleStorageUnitTest \

svl/JunitTest_svl_complex.mk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,9 @@ $(eval $(call gb_JunitTest_set_defs,svl_complex,\
2424
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/svl/qa/complex/broken_document/test_documents \
2525
))
2626

27+
$(eval $(call gb_JunitTest_use_unoapi_jars,svl_complex))
28+
2729
$(eval $(call gb_JunitTest_use_jars,svl_complex,\
28-
OOoRunner \
29-
ridl \
30-
test \
31-
unoil \
32-
jurt \
33-
juh \
3430
ConnectivityTools \
3531
))
3632

sw/JunitTest_sw_complex.mk

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ $(eval $(call gb_JunitTest_add_sourcefiles,sw_complex,\
2323
sw/qa/complex/indeterminateState/CheckIndeterminateState \
2424
))
2525

26-
$(eval $(call gb_JunitTest_use_jars,sw_complex,\
27-
OOoRunner \
28-
ridl \
29-
test \
30-
unoil \
31-
jurt \
32-
))
33-
34-
$(eval $(call gb_JunitTest_add_classes,sw_complex,\
35-
))
26+
$(eval $(call gb_JunitTest_use_unoapi_jars,sw_complex))
3627

3728
# vim: set noet sw=4 ts=4:

toolkit/JunitTest_toolkit_complex.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $(eval $(call gb_JunitTest_JunitTest,toolkit_complex))
2020

2121
$(eval $(call gb_JunitTest_use_jars,toolkit_complex,\
2222
OOoRunner \
23+
juh \
2324
ridl \
2425
test \
2526
unoil \

ucb/JunitTest_ucb_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ $(eval $(call gb_JunitTest_set_defs,ucb_complex,\
1414
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/ucb/qa/complex/testdocuments \
1515
))
1616

17-
$(eval $(call gb_JunitTest_use_jars,ucb_complex,\
18-
OOoRunner \
19-
ridl \
20-
test \
21-
unoil \
22-
jurt \
23-
))
17+
$(eval $(call gb_JunitTest_use_unoapi_jars,ucb_complex))
2418

2519
$(eval $(call gb_JunitTest_add_sourcefiles,ucb_complex,\
2620
ucb/qa/complex/ucb/UCB \

unotools/JunitTest_unotools_complex.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99

1010
$(eval $(call gb_JunitTest_JunitTest,unotools_complex))
1111

12+
$(eval $(call gb_JunitTest_use_unoapi_jars,unotools_complex))
13+
1214
$(eval $(call gb_JunitTest_use_jars,unotools_complex,\
13-
OOoRunner \
14-
jurt \
15-
ridl \
1615
test-tools \
17-
test \
18-
unoil \
1916
))
2017

2118
$(eval $(call gb_JunitTest_set_defs,unotools_complex,\

unoxml/JunitTest_unordf_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ $(eval $(call gb_JunitTest_set_defs,unordf_complex,\
2424
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/unoxml/qa/complex/unoxml/testdocuments \
2525
))
2626

27-
$(eval $(call gb_JunitTest_use_jars,unordf_complex,\
28-
OOoRunner \
29-
ridl \
30-
test \
31-
unoil \
32-
jurt \
33-
))
27+
$(eval $(call gb_JunitTest_use_unoapi_jars,unordf_complex))
3428

3529
$(eval $(call gb_JunitTest_add_sourcefiles,unordf_complex,\
3630
unoxml/qa/complex/unoxml/RDFRepositoryTest \

unoxml/JunitTest_unoxml_complex.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ $(eval $(call gb_JunitTest_set_defs,unoxml_complex,\
2424
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/unoxml/qa/complex/unoxml/testdocuments \
2525
))
2626

27-
$(eval $(call gb_JunitTest_use_jars,unoxml_complex,\
28-
OOoRunner \
29-
ridl \
30-
test \
31-
unoil \
32-
jurt \
33-
))
27+
$(eval $(call gb_JunitTest_use_unoapi_jars,unoxml_complex))
3428

3529
$(eval $(call gb_JunitTest_add_sourcefiles,unoxml_complex,\
3630
unoxml/qa/complex/unoxml/DOMTest \

0 commit comments

Comments
 (0)