From 8d0ec440e2c2bf51d2969ecb47a2039975a80ae1 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 25 Dec 2011 13:05:26 +0100 Subject: convert jurt/urp unit test --- .../com/sun/star/lib/uno/protocols/urp/Makefile | 48 ++++++++++++++++++++ .../com/sun/star/lib/uno/protocols/urp/makefile.mk | 51 ---------------------- 2 files changed, 48 insertions(+), 51 deletions(-) create mode 100644 jurt/test/com/sun/star/lib/uno/protocols/urp/Makefile delete mode 100644 jurt/test/com/sun/star/lib/uno/protocols/urp/makefile.mk (limited to 'jurt/test/com/sun/star/lib') diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Makefile b/jurt/test/com/sun/star/lib/uno/protocols/urp/Makefile new file mode 100644 index 000000000000..ffc0cd8c73dd --- /dev/null +++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Makefile @@ -0,0 +1,48 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# Major Contributor(s): +# Copyright (C) 2010 Red Hat, Inc., David Tardon +# (initial developer) +# +# All Rights Reserved. +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +gb_PARTIALBUILD := T +include $(GBUILDDIR)/gbuild_simple.mk + +done : registry.rdb + $(call gb_Helper_execute,javamaker -BUCR -O$(dir .) -nD $< -X$(OUTDIR)/bin/types.rdb) && \ + touch $@ + +# TODO: would it be possible to reuse UnoApiTarget for this? +registry.rdb : interfaces.urd + rm -f $@ && \ + $(call gb_Helper_execute,regmerge $@ /UCR $<) + +interfaces.urd : $(SRCDIR)/jurt/test/com/sun/star/lib/uno/protocols/urp/interfaces.idl + mkdir urd && \ + $(call gb_Helper_execute,idlc -O$(dir ./urd) -I$(OUTDIR)/idl -cid -we $<) + +.DEFAULT_GOAL := all +.PHONY : all +all : done + +# vim:set shiftwidth=4 tabstop=4 noexpandtab: diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/makefile.mk b/jurt/test/com/sun/star/lib/uno/protocols/urp/makefile.mk deleted file mode 100644 index 8403b2bd71ed..000000000000 --- a/jurt/test/com/sun/star/lib/uno/protocols/urp/makefile.mk +++ /dev/null @@ -1,51 +0,0 @@ -#************************************************************************* -# -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# -# Copyright 2000, 2010 Oracle and/or its affiliates. -# -# OpenOffice.org - a multi-platform office productivity suite -# -# This file is part of OpenOffice.org. -# -# OpenOffice.org is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License version 3 -# only, as published by the Free Software Foundation. -# -# OpenOffice.org is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License version 3 for more details -# (a copy is included in the LICENSE file that accompanied this code). -# -# You should have received a copy of the GNU Lesser General Public License -# version 3 along with OpenOffice.org. If not, see -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -.IF "$(OOO_SUBSEQUENT_TESTS)" == "" -nothing .PHONY: -.ELSE - -PRJ := ..$/..$/..$/..$/..$/..$/..$/.. -PRJNAME := jurt -TARGET := test_com_sun_star_lib_uno_protocols_urp - -.IF "$(OOO_JUNIT_JAR)" != "" -PACKAGE := com$/sun$/star$/lib$/uno$/protocols$/urp -JAVATESTFILES := \ - Cache_Test.java \ - Marshaling_Test.java \ - Protocol_Test.java -JAVAFILES := \ - TestBridge.java \ - TestObject.java -JARFILES := ridl.jar -IDLTESTFILES := interfaces.idl -.END - -.INCLUDE: javaunittest.mk - -.END -- cgit