bump product version to 4.1.6.2
[LibreOffice.git] / testtools / CustomTarget_bridgetest.mk
blobd461850ede461d4a0aac467da44bf70ae690d7de
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/bridgetest))
12 testtools_BRIDGEDIR := $(call gb_CustomTarget_get_workdir,testtools/bridgetest)
14 ifeq ($(OS),WNT)
15 testtools_BATCHSUFFIX := .bat
16 else
17 testtools_BATCHSUFFIX :=
18 endif
20 $(call gb_CustomTarget_get_target,testtools/bridgetest) : \
21 $(testtools_BRIDGEDIR)/bridgetest_server$(testtools_BATCHSUFFIX) \
22 $(testtools_BRIDGEDIR)/bridgetest_client$(testtools_BATCHSUFFIX) \
23 $(if $(SOLAR_JAVA),\
24 $(testtools_BRIDGEDIR)/bridgetest_javaserver$(testtools_BATCHSUFFIX) \
25 $(testtools_BRIDGEDIR)/bridgetest_inprocess_java$(testtools_BATCHSUFFIX))
27 $(testtools_BRIDGEDIR)/bridgetest_server$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
28 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
29 $(call gb_Helper_abbreviate_dirs,\
30 echo "$(call gb_Executable_get_target_for_build,uno)" \
31 "-s com.sun.star.test.bridge.CppTestObject" \
32 "-u 'uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test'" \
33 "--singleaccept" \
34 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
35 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
36 > $@)
37 $(if $(filter-out WNT,$(OS)),chmod +x $@)
40 testtools_MY_CLASSPATH := $(OUTDIR)/bin/ridl.jar$(gb_CLASSPATHSEP)$(OUTDIR)/bin/java_uno.jar$(gb_CLASSPATHSEP)$(OUTDIR)/bin/jurt.jar$(gb_CLASSPATHSEP)$(OUTDIR)/bin/juh.jar
42 $(testtools_BRIDGEDIR)/bridgetest_javaserver$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
43 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
44 $(call gb_Helper_abbreviate_dirs,\
45 echo \
46 "URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
47 "URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
48 "java" \
49 "-classpath $(testtools_MY_CLASSPATH)$(gb_CLASSPATHSEP)$(OUTDIR)/bin/testComponent.jar" \
50 "com.sun.star.comp.bridge.TestComponentMain" \
51 \""uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test"\" \
52 "singleaccept" \
53 > $@)
54 $(if $(filter-out WNT,$(OS)),chmod +x $@)
56 $(testtools_BRIDGEDIR)/bridgetest_inprocess_java$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
57 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
58 $(call gb_Helper_abbreviate_dirs,\
59 echo "JAVA_HOME=$(JAVA_HOME)" \
60 "LD_LIBRARY_PATH=$(OUTDIR)/lib" \
61 "$(call gb_Executable_get_target_for_build,uno)" \
62 "-s com.sun.star.test.bridge.BridgeTest" \
63 "-env:URE_INTERNAL_JAVA_DIR=file://$(OUTDIR)/bin" \
64 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
65 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
66 "-- com.sun.star.test.bridge.JavaTestObject noCurrentContext" \
67 > $@)
68 $(if $(filter-out WNT,$(OS)),chmod +x $@)
70 $(testtools_BRIDGEDIR)/bridgetest_client$(testtools_BATCHSUFFIX) :| $(testtools_BRIDGEDIR)/.dir
71 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
72 $(call gb_Helper_abbreviate_dirs,\
73 echo "$(call gb_Executable_get_target_for_build,uno)" \
74 "-s com.sun.star.test.bridge.BridgeTest --" \
75 "-u 'uno:socket$(COMMA)host=127.0.0.1$(COMMA)port=2002;urp;test'" \
76 "-env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_outdir_target,uno_services))" \
77 "-env:URE_MORE_TYPES=$(call gb_Helper_make_url,$(WORKDIR)/UnoApiTarget/bridgetest.rdb)" \
78 > $@)
79 $(if $(filter-out WNT,$(OS)),chmod +x $@)
81 # vim: set noet sw=4 ts=4: