17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweirPRJ=.. 25cdf0e10cSrcweir 26cdf0e10cSrcweirPRJNAME=unoxml 27cdf0e10cSrcweirTARGET=tests 28cdf0e10cSrcweir 29cdf0e10cSrcweirENABLE_EXCEPTIONS=TRUE 30cdf0e10cSrcweir 31cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 32cdf0e10cSrcweir 33cdf0e10cSrcweir.INCLUDE : settings.mk 34cdf0e10cSrcweir 35*af7e73e0SDamjan Jovanovic.IF "$(ENABLE_UNIT_TESTS)" != "YES" 36*af7e73e0SDamjan Jovanovicall: 37*af7e73e0SDamjan Jovanovic @echo unit tests are disabled. Nothing to do. 38*af7e73e0SDamjan Jovanovic 39*af7e73e0SDamjan Jovanovic.ELSE 40cdf0e10cSrcweir 41cdf0e10cSrcweir# --- Common ---------------------------------------------------------- 42cdf0e10cSrcweir 43cdf0e10cSrcweir# BEGIN ---------------------------------------------------------------- 44cdf0e10cSrcweir# auto generated Target:tests by codegen.pl 45*af7e73e0SDamjan JovanovicAPP1OBJS= \ 46*af7e73e0SDamjan Jovanovic $(SLO)$/domtest.obj $(SLO)$/documentbuilder.obj 47cdf0e10cSrcweir 48cdf0e10cSrcweir# the following three libs are a bit of a hack: cannot link against 49cdf0e10cSrcweir# unoxml here, because not yet delivered (and does not export 50cdf0e10cSrcweir# ~anything). Need the functionality to test, so we're linking it in 51cdf0e10cSrcweir# statically. Need to keep this in sync with 52cdf0e10cSrcweir# source/services/makefile.mk 53*af7e73e0SDamjan Jovanovic#APP1LIBS= \ 54*af7e73e0SDamjan Jovanovic #$(SLB)$/domimpl.lib \ 55*af7e73e0SDamjan Jovanovic #$(SLB)$/xpathimpl.lib \ 56*af7e73e0SDamjan Jovanovic #$(SLB)$/eventsimpl.lib 57cdf0e10cSrcweir 58*af7e73e0SDamjan JovanovicAPP1TARGET= tests 59*af7e73e0SDamjan JovanovicAPP1STDLIBS= \ 60cdf0e10cSrcweir $(UCBHELPERLIB) \ 61cdf0e10cSrcweir $(LIBXML2LIB) \ 62cdf0e10cSrcweir $(TOOLSLIB) \ 63cdf0e10cSrcweir $(COMPHELPERLIB) \ 64cdf0e10cSrcweir $(CPPUHELPERLIB) \ 65*af7e73e0SDamjan Jovanovic $(GTESTLIB) \ 66cdf0e10cSrcweir $(TESTSHL2LIB) \ 67cdf0e10cSrcweir $(CPPULIB) \ 68cdf0e10cSrcweir $(SAXLIB) \ 69cdf0e10cSrcweir $(SALLIB)\ 70*af7e73e0SDamjan Jovanovic $(EXPATASCII3RDLIB) \ 71*af7e73e0SDamjan Jovanovic -lunoxml 72cdf0e10cSrcweir 73*af7e73e0SDamjan JovanovicAPP1RPATH = NONE 74*af7e73e0SDamjan JovanovicAPP1TEST = disabled 75cdf0e10cSrcweir 76cdf0e10cSrcweir# END ------------------------------------------------------------------ 77cdf0e10cSrcweir 78cdf0e10cSrcweir#------------------------------- All object files ------------------------------- 79cdf0e10cSrcweir# do this here, so we get right dependencies 80*af7e73e0SDamjan JovanovicSLOFILES=$(APP1OBJS) 81cdf0e10cSrcweir 82cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 83cdf0e10cSrcweir 84cdf0e10cSrcweir.INCLUDE : target.mk 85cdf0e10cSrcweir 86cdf0e10cSrcweir# --- Fake uno bootstrap ------------------------ 87cdf0e10cSrcweir 88cdf0e10cSrcweir$(BIN)$/unoxml_unittest_test.ini : makefile.mk 89cdf0e10cSrcweir rm -f $@ 90cdf0e10cSrcweir @echo UNO_SERVICES= > $@ 91cdf0e10cSrcweir @echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@ 92cdf0e10cSrcweir 93cdf0e10cSrcweir# --- Enable testshl2 execution in normal build ------------------------ 94cdf0e10cSrcweir 95cdf0e10cSrcweir$(MISC)$/unoxml_unittest_succeeded : $(SHL1TARGETN) $(BIN)$/unoxml_unittest_test.ini 96cdf0e10cSrcweir @echo ---------------------------------------------------------- 97cdf0e10cSrcweir @echo - start unit test on library $(SHL1TARGETN) 98cdf0e10cSrcweir @echo ---------------------------------------------------------- 99*af7e73e0SDamjan Jovanovic $(COMMAND_ECHO) $(AUGMENT_LIBRARY_PATH_LOCAL) \ 100*af7e73e0SDamjan Jovanovic UNOXML_DOMTEST_FORWARD=$(BIN)$/ \ 101*af7e73e0SDamjan Jovanovic $(APP1TARGETN) --gtest_output="xml:$(BIN)/$(APP1TARGET)_result.xml" 102cdf0e10cSrcweir $(TOUCH) $@ 103cdf0e10cSrcweir 104cdf0e10cSrcweirALLTAR : $(MISC)$/unoxml_unittest_succeeded 105*af7e73e0SDamjan Jovanovic 106*af7e73e0SDamjan Jovanovic.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES" 107