update credits
[LibreOffice.git] / smoketest / CppunitTest_smoketest.mk
blobd245290cc6a604e928f782bcf37608893f3805a9
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 $(eval $(call gb_CppunitTest_CppunitTest,smoketest))
13 $(eval $(call gb_CppunitTest_add_exception_objects,smoketest,\
14 smoketest/smoketest_too \
17 $(eval $(call gb_CppunitTest_use_external,smoketest,boost_headers))
19 $(eval $(call gb_CppunitTest_use_api,smoketest,\
20 offapi \
21 udkapi \
24 $(eval $(call gb_CppunitTest_use_libraries,smoketest,\
25 cppu \
26 cppuhelper \
27 sal \
28 unotest \
31 $(eval $(call gb_CppunitTest_use_ure,smoketest))
33 ifeq ($(ENABLE_MACOSX_SANDBOX),TRUE)
34 userinstallation=$(shell $(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice --nstemporarydirectory)
35 else
36 userinstallation=$(WORKDIR)/CustomTarget/smoketest
37 endif
39 $(eval $(call gb_CppunitTest_add_arguments,smoketest,\
40 -env:arg-soffice=$(gb_JunitTest_SOFFICEARG) \
41 -env:arg-user=$(userinstallation) \
42 -env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
43 -env:arg-testarg.smoketest.doc=$(WORKDIR)/Zip/smoketestdoc.sxw \
46 $(call gb_CppunitTest_get_target,smoketest): \
47 clean_CustomTarget_smoketest \
48 $(WORKDIR)/Zip/smoketestdoc.sxw
50 clean_CustomTarget_smoketest:
51 rm -rf $(WORKDIR)/CustomTarget/smoketest
52 mkdir -p $(WORKDIR)/CustomTarget/smoketest
54 $(WORKDIR)/Zip/smoketestdoc.sxw: $(call gb_Zip_get_target,smoketestdoc)
55 cp $< $@
57 # vim: set noet sw=4 ts=4: