diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-01-22 17:38:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-22 18:39:27 +0100 |
commit | 147b7f0df3af28fbe6df36a2b25408fbe69cb876 (patch) | |
tree | 3f83745f5c252c595d74927ac3da891d986003af /idlc | |
parent | 4ceba05995b9fafdc00896e3253f405299ff1066 (diff) |
Adapt idlc/test/parser/ to gbuild
Change-Id: If57ab37dd4d062e3f6bbf5b75a0cde2524b635bd
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/CustomTarget_parser_test.mk | 74 | ||||
-rw-r--r-- | idlc/Module_idlc.mk | 1 | ||||
-rw-r--r-- | idlc/test/parser/makefile.mk | 46 |
3 files changed, 75 insertions, 46 deletions
diff --git a/idlc/CustomTarget_parser_test.mk b/idlc/CustomTarget_parser_test.mk new file mode 100644 index 000000000000..e0521b2033d5 --- /dev/null +++ b/idlc/CustomTarget_parser_test.mk @@ -0,0 +1,74 @@ +# -*- 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_CustomTarget_CustomTarget,idlc/parser_test)) + +# this target is phony to run it every time +.PHONY : $(call gb_CustomTarget_get_target,idlc/parser_test) + +$(call gb_CustomTarget_get_target,idlc/parser_test) : \ + $(call gb_Executable_get_runtime_dependencies,idlc) \ + $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/attribute.tests \ + $(SRCDIR)/idlc/test/parser/constant.tests \ + $(SRCDIR)/idlc/test/parser/constructor.tests \ + $(SRCDIR)/idlc/test/parser/interfaceinheritance.tests \ + $(SRCDIR)/idlc/test/parser/methodoverload.tests \ + $(SRCDIR)/idlc/test/parser/polystruct.tests \ + $(SRCDIR)/idlc/test/parser/published.tests \ + $(SRCDIR)/idlc/test/parser/struct.tests \ + $(SRCDIR)/idlc/test/parser/typedef.tests + $(call gb_Helper_abbreviate_dirs, \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/attribute.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/constant.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/constructor.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/interfaceinheritance.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/methodoverload.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/polystruct.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/published.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/struct.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin && \ + $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ + $(SRCDIR)/idlc/test/parser/typedef.tests \ + $(call gb_Executable_get_command,idlc) \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ + -stdin) + +# vim: set noet sw=4 ts=4: diff --git a/idlc/Module_idlc.mk b/idlc/Module_idlc.mk index bd82e2b641da..28113f1121be 100644 --- a/idlc/Module_idlc.mk +++ b/idlc/Module_idlc.mk @@ -11,6 +11,7 @@ $(eval $(call gb_Module_Module,idlc)) ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) $(eval $(call gb_Module_add_targets,idlc,Executable_idlc)) +$(eval $(call gb_Module_add_check_targets,idlc,CustomTarget_parser_test)) endif # vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/idlc/test/parser/makefile.mk b/idlc/test/parser/makefile.mk deleted file mode 100644 index d81eb208b9fa..000000000000 --- a/idlc/test/parser/makefile.mk +++ /dev/null @@ -1,46 +0,0 @@ -# -# 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/. -# -# This file incorporates work covered by the following license notice: -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed -# with this work for additional information regarding copyright -# ownership. The ASF licenses this file to you under the Apache -# License, Version 2.0 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.apache.org/licenses/LICENSE-2.0 . -# - -PRJ := ..$/.. -PRJNAME := idlc -TARGET := test_parser - -.INCLUDE: settings.mk -.INCLUDE: target.mk - -ALLTAR: test - -test .PHONY: - $(EXECTEST) attribute.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) constant.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) constructor.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) interfaceinheritance.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) methodoverload.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) polystruct.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) published.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) struct.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin - $(EXECTEST) typedef.tests $(BIN)/idlc$(EXECPOST) \ - -O $(MISC)/$(TARGET) -stdin |