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