Cleanup: Move unit tests to ridljar

Follow-up cleanup for ae855bf481

Change-Id: Ibec2fe89d70d6001af7d75c5eb4081b5b2af30e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88073
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Samuel Mehrbrodt 2020-02-06 08:40:43 +01:00
parent 57eee86bab
commit faa59a82ce
39 changed files with 127 additions and 176 deletions

View file

@ -1,37 +0,0 @@
# -*- 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_JunitTest_JunitTest,jurt_remote))
$(eval $(call gb_Jar_use_customtargets,jurt_remote, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_remote,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_remote,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_remote,\
jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test \
jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test \
jurt/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt \
jurt/test/com/sun/star/lib/uno/environments/remote/TestReceiver \
jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt \
jurt/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test \
jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_remote,\
com.sun.star.lib.uno.environments.remote.JavaThreadPoolFactory_Test \
com.sun.star.lib.uno.environments.remote.JobQueue_Test \
com.sun.star.lib.uno.environments.remote.ThreadId_Test \
com.sun.star.lib.uno.environments.remote.ThreadPool_Test \
))
# vim:set noet sw=4 ts=4:

View file

@ -1,29 +0,0 @@
# -*- 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_JunitTest_JunitTest,jurt_uno))
$(eval $(call gb_JunitTest_use_jars,jurt_uno,\
OOoRunner \
ridl \
))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_uno,\
jurt/test/com/sun/star/uno/AnyConverter_Test \
jurt/test/com/sun/star/uno/UnoRuntime_EnvironmentTest \
jurt/test/com/sun/star/uno/WeakReference_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_uno,\
com.sun.star.uno.AnyConverter_Test \
com.sun.star.uno.UnoRuntime_EnvironmentTest \
com.sun.star.uno.WeakReference_Test \
))
# vim:set noet sw=4 ts=4:

View file

@ -1,35 +0,0 @@
# -*- 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_JunitTest_JunitTest,jurt_urp))
$(eval $(call gb_JunitTest_use_customtargets,jurt_urp,\
jurt/test/com/sun/star/lib/uno/protocols/urp \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_urp,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_urp,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_urp,\
jurt/test/com/sun/star/lib/uno/protocols/urp/Cache_Test \
jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test \
jurt/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test \
jurt/test/com/sun/star/lib/uno/protocols/urp/TestBridge \
jurt/test/com/sun/star/lib/uno/protocols/urp/TestObject \
))
$(eval $(call gb_JunitTest_add_classes,jurt_urp,\
com.sun.star.lib.uno.protocols.urp.Cache_Test \
com.sun.star.lib.uno.protocols.urp.Marshaling_Test \
com.sun.star.lib.uno.protocols.urp.Protocol_Test \
))
# vim:set noet sw=4 ts=4:

View file

@ -1,24 +0,0 @@
# -*- 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_JunitTest_JunitTest,jurt_util))
$(eval $(call gb_JunitTest_use_jars,jurt_util,\
ridl \
))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_util,\
jurt/test/com/sun/star/lib/util/NativeLibraryLoader_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_util,\
com.sun.star.lib.util.NativeLibraryLoader_Test \
))
# vim:set noet sw=4 ts=4:

View file

@ -22,19 +22,6 @@ $(eval $(call gb_Module_add_targets,jurt,\
))
endif
$(eval $(call gb_Module_add_subsequentcheck_targets,jurt,\
CustomTarget_test_urp \
InternalUnoApi_test_urp \
JunitTest_bridgefactory \
JunitTest_connections \
JunitTest_java \
JunitTest_java_remote \
JunitTest_remote \
JunitTest_uno \
JunitTest_urp \
JunitTest_util \
))
endif
# vim:set noet sw=4 ts=4:

View file

@ -7,19 +7,19 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CustomTarget_CustomTarget,jurt/test/com/sun/star/lib/uno/protocols/urp))
$(eval $(call gb_CustomTarget_CustomTarget,ridljar/test/com/sun/star/lib/uno/protocols/urp))
jurt_TESTURP := $(call gb_CustomTarget_get_workdir,jurt/test/com/sun/star/lib/uno/protocols/urp)
ridljar_TESTURP := $(call gb_CustomTarget_get_workdir,ridljar/test/com/sun/star/lib/uno/protocols/urp)
$(call gb_CustomTarget_get_target,jurt/test/com/sun/star/lib/uno/protocols/urp) : $(jurt_TESTURP)/done
$(call gb_CustomTarget_get_target,ridljar/test/com/sun/star/lib/uno/protocols/urp) : $(ridljar_TESTURP)/done
$(jurt_TESTURP)/done : \
$(ridljar_TESTURP)/done : \
$(call gb_UnoApiTarget_get_target,test_urp) \
$(call gb_UnoApi_get_target,udkapi) \
$(call gb_Executable_get_runtime_dependencies,javamaker)
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),JVM,1)
rm -rf $(jurt_TESTURP) && \
$(call gb_Helper_execute,javamaker -O$(jurt_TESTURP) -nD $< \
rm -rf $(ridljar_TESTURP) && \
$(call gb_Helper_execute,javamaker -O$(ridljar_TESTURP) -nD $< \
-X$(call gb_UnoApi_get_target,udkapi)) && \
touch $@

View file

@ -7,7 +7,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_InternalUnoApi_InternalUnoApi,test_urp,jurt/test/com/sun/star/lib/uno/protocols/urp/interfaces.idl))
$(eval $(call gb_InternalUnoApi_InternalUnoApi,test_urp,ridljar/test/com/sun/star/lib/uno/protocols/urp/interfaces.idl))
$(eval $(call gb_InternalUnoApi_use_api,test_urp,\
udkapi \

View file

@ -7,21 +7,21 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_JunitTest_JunitTest,jurt_bridgefactory))
$(eval $(call gb_JunitTest_JunitTest,ridl_bridgefactory))
$(eval $(call gb_Jar_use_customtargets,jurt_bridgefactory, \
$(eval $(call gb_Jar_use_customtargets,ridl_bridgefactory, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_bridgefactory,ridl))
$(eval $(call gb_JunitTest_use_jar_classset,ridl_bridgefactory,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_bridgefactory,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_classpath,ridl_bridgefactory,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_bridgefactory,\
jurt/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test \
$(eval $(call gb_JunitTest_add_sourcefiles,ridl_bridgefactory,\
ridljar/test/com/sun/star/comp/bridgefactory/BridgeFactory_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_bridgefactory,\
$(eval $(call gb_JunitTest_add_classes,ridl_bridgefactory,\
com.sun.star.comp.bridgefactory.BridgeFactory_Test \
))

View file

@ -7,21 +7,21 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_JunitTest_JunitTest,jurt_connections))
$(eval $(call gb_JunitTest_JunitTest,ridl_connections))
$(eval $(call gb_Jar_use_customtargets,jurt_connections, \
$(eval $(call gb_Jar_use_customtargets,ridl_connections, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_connections,ridl))
$(eval $(call gb_JunitTest_use_jar_classset,ridl_connections,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_connections,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_classpath,ridl_connections,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_connections,\
jurt/test/com/sun/star/comp/connections/PipedConnection_Test \
$(eval $(call gb_JunitTest_add_sourcefiles,ridl_connections,\
ridljar/test/com/sun/star/comp/connections/PipedConnection_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_connections,\
$(eval $(call gb_JunitTest_add_classes,ridl_connections,\
com.sun.star.comp.connections.PipedConnection_Test \
))

View file

@ -7,21 +7,21 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_JunitTest_JunitTest,jurt_java))
$(eval $(call gb_JunitTest_JunitTest,ridl_java))
$(eval $(call gb_Jar_use_customtargets,jurt_java, \
$(eval $(call gb_Jar_use_customtargets,ridl_java, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_java,ridl))
$(eval $(call gb_JunitTest_use_jar_classset,ridl_java,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_java,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_classpath,ridl_java,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_java,\
jurt/test/com/sun/star/lib/uno/environments/java/java_environment_Test \
$(eval $(call gb_JunitTest_add_sourcefiles,ridl_java,\
ridljar/test/com/sun/star/lib/uno/environments/java/java_environment_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_java,\
$(eval $(call gb_JunitTest_add_classes,ridl_java,\
com.sun.star.lib.uno.environments.java.java_environment_Test \
))

View file

@ -7,27 +7,27 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_JunitTest_JunitTest,jurt_java_remote))
$(eval $(call gb_JunitTest_JunitTest,ridl_java_remote))
$(eval $(call gb_JunitTest_use_jars,jurt_java_remote,\
$(eval $(call gb_JunitTest_use_jars,ridl_java_remote,\
OOoRunner \
))
$(eval $(call gb_Jar_use_customtargets,jurt_java_remote, \
$(eval $(call gb_Jar_use_customtargets,ridl_java_remote, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,jurt_java_remote,ridl))
$(eval $(call gb_JunitTest_use_jar_classset,ridl_java_remote,ridl))
$(eval $(call gb_JunitTest_add_classpath,jurt_java_remote,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_classpath,ridl_java_remote,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,jurt_java_remote,\
jurt/test/com/sun/star/lib/uno/bridges/java_remote/BridgedObject_Test \
jurt/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test \
jurt/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test \
$(eval $(call gb_JunitTest_add_sourcefiles,ridl_java_remote,\
ridljar/test/com/sun/star/lib/uno/bridges/java_remote/BridgedObject_Test \
ridljar/test/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory_Test \
ridljar/test/com/sun/star/lib/uno/bridges/java_remote/java_remote_bridge_Test \
))
$(eval $(call gb_JunitTest_add_classes,jurt_java_remote,\
$(eval $(call gb_JunitTest_add_classes,ridl_java_remote,\
com.sun.star.lib.uno.bridges.java_remote.BridgedObject_Test \
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory_Test \
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge_Test \

View file

@ -0,0 +1,37 @@
# -*- 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_JunitTest_JunitTest,ridl_remote))
$(eval $(call gb_Jar_use_customtargets,ridl_remote, \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,ridl_remote,ridl))
$(eval $(call gb_JunitTest_add_classpath,ridl_remote,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,ridl_remote,\
ridljar/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test \
ridljar/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test \
ridljar/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt \
ridljar/test/com/sun/star/lib/uno/environments/remote/TestReceiver \
ridljar/test/com/sun/star/lib/uno/environments/remote/TestWorkAt \
ridljar/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test \
ridljar/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test \
))
$(eval $(call gb_JunitTest_add_classes,ridl_remote,\
com.sun.star.lib.uno.environments.remote.JavaThreadPoolFactory_Test \
com.sun.star.lib.uno.environments.remote.JobQueue_Test \
com.sun.star.lib.uno.environments.remote.ThreadId_Test \
com.sun.star.lib.uno.environments.remote.ThreadPool_Test \
))
# vim:set noet sw=4 ts=4:

View file

@ -10,19 +10,26 @@
$(eval $(call gb_JunitTest_JunitTest,ridljar_uno))
$(eval $(call gb_JunitTest_use_jars,ridljar_uno,\
OOoRunner \
ridl \
))
$(eval $(call gb_JunitTest_add_sourcefiles,ridljar_uno,\
ridljar/test/com/sun/star/uno/AnyConverter_Test \
ridljar/test/com/sun/star/uno/Any_Test \
ridljar/test/com/sun/star/uno/Type_Test \
ridljar/test/com/sun/star/uno/UnoRuntime_EnvironmentTest \
ridljar/test/com/sun/star/uno/UnoRuntime_Test \
ridljar/test/com/sun/star/uno/WeakReference_Test \
))
$(eval $(call gb_JunitTest_add_classes,ridljar_uno,\
com.sun.star.uno.AnyConverter_Test \
com.sun.star.uno.Any_Test \
com.sun.star.uno.Type_Test \
com.sun.star.uno.UnoRuntime_EnvironmentTest \
com.sun.star.uno.UnoRuntime_Test \
com.sun.star.uno.WeakReference_Test \
))
# vim:set noet sw=4 ts=4:

35
ridljar/JunitTest_urp.mk Normal file
View file

@ -0,0 +1,35 @@
# -*- 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_JunitTest_JunitTest,ridl_urp))
$(eval $(call gb_JunitTest_use_customtargets,ridl_urp,\
ridljar/test/com/sun/star/lib/uno/protocols/urp \
ridljar/javamaker \
))
$(eval $(call gb_JunitTest_use_jar_classset,ridl_urp,ridl))
$(eval $(call gb_JunitTest_add_classpath,ridl_urp,$(call gb_CustomTarget_get_workdir,ridljar/javamaker)))
$(eval $(call gb_JunitTest_add_sourcefiles,ridl_urp,\
ridljar/test/com/sun/star/lib/uno/protocols/urp/Cache_Test \
ridljar/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test \
ridljar/test/com/sun/star/lib/uno/protocols/urp/Protocol_Test \
ridljar/test/com/sun/star/lib/uno/protocols/urp/TestBridge \
ridljar/test/com/sun/star/lib/uno/protocols/urp/TestObject \
))
$(eval $(call gb_JunitTest_add_classes,ridl_urp,\
com.sun.star.lib.uno.protocols.urp.Cache_Test \
com.sun.star.lib.uno.protocols.urp.Marshaling_Test \
com.sun.star.lib.uno.protocols.urp.Protocol_Test \
))
# vim:set noet sw=4 ts=4:

View file

@ -15,10 +15,12 @@ $(eval $(call gb_JunitTest_use_jars,ridljar_util,\
))
$(eval $(call gb_JunitTest_add_sourcefiles,ridljar_util,\
ridljar/test/com/sun/star/lib/util/NativeLibraryLoader_Test \
ridljar/test/com/sun/star/lib/util/WeakMap_Test \
))
$(eval $(call gb_JunitTest_add_classes,ridljar_util,\
com.sun.star.lib.util.NativeLibraryLoader_Test \
com.sun.star.lib.util.WeakMap_Test \
))

View file

@ -17,8 +17,16 @@ $(eval $(call gb_Module_add_targets,ridljar,\
))
$(eval $(call gb_Module_add_check_targets,ridljar,\
CustomTarget_test_urp \
InternalUnoApi_test_urp \
JunitTest_bridgefactory \
JunitTest_connections \
JunitTest_java \
JunitTest_java_remote \
JunitTest_remote \
JunitTest_typedesc \
JunitTest_uno \
JunitTest_urp \
JunitTest_util \
))
endif