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