mar: use OS version in User-Agent
[LibreOffice.git] / testtools / CustomTarget_uno_test.mk
blob04d600b17c64c178809312e6b5a6d663438957ea
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CustomTarget_CustomTarget,testtools/uno_test))
12 # this target is phony to run it every time
13 .PHONY : $(call gb_CustomTarget_get_target,testtools/uno_test)
15 $(call gb_CustomTarget_get_target,testtools/uno_test) : \
16 $(call gb_Executable_get_runtime_dependencies,uno) \
17 $(call gb_InternalUnoApi_get_target,bridgetest) \
18 $(call gb_Package_get_target,instsetoo_native_setup_ure) \
19 $(call gb_Rdb_get_target,uno_services) \
20 $(call gb_Rdb_get_target,ure/services) \
21 $(call gb_UnoApi_get_target,udkapi) \
22 $(if $(ENABLE_JAVA), \
23 $(call gb_Jar_get_target,java_uno) \
24 $(call gb_Jar_get_target,testComponent) \
25 $(call gb_Library_get_target,java_uno) \
26 $(call gb_Package_get_target,jvmfwk_javavendors) \
27 $(call gb_Package_get_target,jvmfwk_jreproperties) \
28 $(call gb_Package_get_target,jvmfwk_jvmfwk3_ini))
29 ifneq ($(gb_SUPPRESS_TESTS),)
30 @true
31 else
32 $(call gb_Helper_abbreviate_dirs,\
33 $(call gb_Executable_get_command,uno) \
34 -s com.sun.star.test.bridge.BridgeTest \
35 -- com.sun.star.test.bridge.CppTestObject \
36 -env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD)) \
37 -env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services)) \
38 -env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb) \
39 $(if $(ENABLE_JAVA), && \
40 $(call gb_Executable_get_command,uno) \
41 -s com.sun.star.test.bridge.BridgeTest \
42 -- com.sun.star.test.bridge.JavaTestObject noCurrentContext \
43 -env:LO_BUILD_LIB_DIR=$(call gb_Helper_make_url,$(gb_Library_WORKDIR_FOR_BUILD)) \
44 -env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target,uno_services)) \
45 -env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)))
46 endif
48 # vim:set shiftwidth=4 tabstop=4 noexpandtab: