Kaydet (Commit) d8a9d483 authored tarafından Matúš Kukan's avatar Matúš Kukan Kaydeden (comit) Matúš Kukan

Workaround strange sw test makefiles

Include ooxmlexport_setup.mk only once in Module_sw.mk,
so that gbuildtojson can properly set last included
makefile for test jsons.

Change-Id: Ie8ed3296ae97cf4a33d652599673f389b224993e
Reviewed-on: https://gerrit.libreoffice.org/32502Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMatúš Kukan <matus@libreoffice.org>
üst bd9009bd
...@@ -149,16 +149,8 @@ class GbuildParser: ...@@ -149,16 +149,8 @@ class GbuildParser:
@staticmethod @staticmethod
def __test_from_json(json): def __test_from_json(json):
(foundincludes, foundisystem) = GbuildParser.__split_includes(json['INCLUDE']) (foundincludes, foundisystem) = GbuildParser.__split_includes(json['INCLUDE'])
testname_match = GbuildParser.testpattern.match(os.path.basename(json['MAKEFILE']))
# Workaround strange writer test makefile setup
if testname_match is None:
testname = "StrangeWriterMakefiles"
else:
testname = testname_match.group(1)
return GbuildTest( return GbuildTest(
testname, GbuildParser.testpattern.match(os.path.basename(json['MAKEFILE'])).group(1),
os.path.dirname(json['MAKEFILE']), os.path.dirname(json['MAKEFILE']),
foundincludes, foundincludes,
foundisystem, foundisystem,
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
# empty second argument (i.e. no 1) # empty second argument (i.e. no 1)
$(eval $(call sw_ooxmlexport_test,)) $(eval $(call sw_ooxmlexport_test,))
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,2)) $(eval $(call sw_ooxmlexport_test,2))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,3)) $(eval $(call sw_ooxmlexport_test,3))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,4)) $(eval $(call sw_ooxmlexport_test,4))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,5)) $(eval $(call sw_ooxmlexport_test,5))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,6)) $(eval $(call sw_ooxmlexport_test,6))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,7)) $(eval $(call sw_ooxmlexport_test,7))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call sw_ooxmlexport_test,9)) $(eval $(call sw_ooxmlexport_test,9))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlfieldexport)) $(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlfieldexport))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlfieldexport, \ $(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlfieldexport, \
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
# #
#************************************************************************* #*************************************************************************
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlw14export)) $(eval $(call gb_CppunitTest_CppunitTest,sw_ooxmlw14export))
$(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlw14export, \ $(eval $(call gb_CppunitTest_add_exception_objects,sw_ooxmlw14export, \
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 . # the License at http://www.apache.org/licenses/LICENSE-2.0 .
# #
include $(SRCDIR)/sw/ooxmlexport_setup.mk
$(eval $(call gb_Module_Module,sw)) $(eval $(call gb_Module_Module,sw))
$(eval $(call gb_Module_add_targets,sw,\ $(eval $(call gb_Module_add_targets,sw,\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment