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 23*d55f601aSDamjan Jovanovic.IF "$(OOO_SUBSEQUENT_TESTS)" == "" 24*d55f601aSDamjan Jovanovicnothing .PHONY: 25*d55f601aSDamjan Jovanovic.ELSE 26cdf0e10cSrcweir 27cdf0e10cSrcweirPRJ = ..$/.. 28cdf0e10cSrcweirPRJNAME = cli_ure 29cdf0e10cSrcweirTARGET := qa_test_climaker 30*d55f601aSDamjan Jovanovic 31*d55f601aSDamjan Jovanovic.IF "$(OOO_JUNIT_JAR)" != "" 32cdf0e10cSrcweirPACKAGE = cliversion 33cdf0e10cSrcweir 34*d55f601aSDamjan Jovanovic# here store only Files which contain a @Test 35*d55f601aSDamjan JovanovicJAVATESTFILES = \ 36*d55f601aSDamjan Jovanovic VersionTestCase.java 37cdf0e10cSrcweir 38*d55f601aSDamjan Jovanovic# put here all other files 39*d55f601aSDamjan JovanovicJAVAFILES = $(JAVATESTFILES) 40cdf0e10cSrcweir 41cdf0e10cSrcweirJARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar 42*d55f601aSDamjan JovanovicEXTRAJARFILES = $(OOO_JUNIT_JAR) 43cdf0e10cSrcweir 44*d55f601aSDamjan JovanovicJAVAIFLAGS =\ 45*d55f601aSDamjan Jovanovic -DSystemRoot=$(SystemRoot) \ 46*d55f601aSDamjan Jovanovic -Dcli_test_program=$(BIN)$/runtests.exe \ 47*d55f601aSDamjan Jovanovic -Dpath="$(office)"\OpenOffice.org\URE\bin 48cdf0e10cSrcweir 49cdf0e10cSrcweir 50*d55f601aSDamjan Jovanovic# Sample how to debug 51*d55f601aSDamjan Jovanovic# JAVAIFLAGS+=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y 52cdf0e10cSrcweir 53*d55f601aSDamjan Jovanovic.END 54cdf0e10cSrcweir 55*d55f601aSDamjan Jovanovic.IF "$(office)" != "" 56cdf0e10cSrcweir 57*d55f601aSDamjan Jovanovic.INCLUDE: settings.mk 58*d55f601aSDamjan Jovanovic.INCLUDE: target.mk 59*d55f601aSDamjan Jovanovic.INCLUDE: installationtest.mk 60*d55f601aSDamjan Jovanovic 61*d55f601aSDamjan JovanovicALLTAR : javatest 62*d55f601aSDamjan Jovanovic 63*d55f601aSDamjan Jovanovic.ELSE 64*d55f601aSDamjan JovanovicALLTAR : 65*d55f601aSDamjan Jovanovic @echo . 66*d55f601aSDamjan Jovanovic @echo ########################### N O T E ###################################### 67*d55f601aSDamjan Jovanovic @echo . 68*d55f601aSDamjan Jovanovic @echo To run the test you have to provide the path to the office location. It must 69*d55f601aSDamjan Jovanovic @echo "contain the ure (d:\myOffice\OpenOffice.org\URE)." 70*d55f601aSDamjan Jovanovic @echo Also an office must be installed with full system integration. 71*d55f601aSDamjan Jovanovic @echo Example: 72*d55f601aSDamjan Jovanovic @echo "dmake office="d:\myOffice"" 73*d55f601aSDamjan Jovanovic @echo . 74*d55f601aSDamjan Jovanovic @echo ########################### N O T E ###################################### 75*d55f601aSDamjan Jovanovic exit 1 76*d55f601aSDamjan Jovanovic.ENDIF 77*d55f601aSDamjan Jovanovic 78*d55f601aSDamjan Jovanovic.END 79