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 24.IF "$(OOO_SUBSEQUENT_TESTS)" == "" 25nothing .PHONY: 26.ELSE 27 28PRJ := ../.. 29PRJNAME := stoc 30TARGET := test_uriproc 31 32ENABLE_EXCEPTIONS := TRUE 33 34my_components = stocservices 35 36.INCLUDE: settings.mk 37 38.IF "$(ENABLE_UNIT_TESTS)" != "YES" 39all: 40 @echo unit tests are disabled. Nothing to do. 41 42.ELSE 43 44DLLPRE = # no leading "lib" on .so files 45 46APP1TARGET = $(TARGET) 47APP1OBJS = $(SLO)/test_uriproc.obj 48APP1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(GTESTLIB) $(SALLIB) 49APP1RPATH = NONE 50# this is a custom test, can't use APP1TARGET_run so disable it here: 51APP1TEST = disabled 52 53SLOFILES = $(APP1OBJS) 54 55.INCLUDE: target.mk 56 57.IF "$(OS)" == "WNT" 58my_file = file:/// 59.ELSE 60my_file = file:// 61.END 62 63ALLTAR: test 64 65test .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb 66 $(COMMAND_ECHO) $(AUGMENT_LIBRARY_PATH_LOCAL) \ 67 UNO_TYPES=$(my_file)$(SOLARBINDIR)/udkapi.rdb \ 68 UNO_SERVICES=$(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb \ 69 URE_INTERNAL_LIB_DIR=$(my_file)$(PWD)/$(DLLDEST) \ 70 $(APP1TARGETN) --gtest_output="xml:$(BIN)/$(APP1TARGET)_result.xml" 71 72$(MISC)/$(TARGET)/services.rdb .ERRREMOVE: $(SOLARENV)/bin/packcomponents.xslt \ 73 $(MISC)/$(TARGET)/services.input \ 74 $(my_components:^"$(MISC)/":+".component") 75 $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/ -o $@ \ 76 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/$(TARGET)/services.input 77 78$(MISC)/$(TARGET)/services.input: 79 $(MKDIRHIER) $(@:d) 80 echo \ 81 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \ 82 > $@ 83 84.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES" 85 86.ENDIF # "$(OOO_SUBSEQUENT_TESTS)" == "" 87