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
25# Builds the SpreadSheet examples of the Developers Guide.
26
27PRJ = ..$/..
28PRJNAME = cli_ure
29TARGET := qa_test_climaker
30PACKAGE = cliversion
31
32.INCLUDE: settings.mk
33
34#----- compile .java files -----------------------------------------
35
36JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
37JAVAFILES = VersionTestCase.java
38JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
39
40#----- make a jar from compiled files ------------------------------
41
42MAXLINELENGTH = 100000
43
44JARCLASSDIRS    = $(PACKAGE)
45JARTARGET       = $(TARGET).jar
46JARCOMPRESS 	= TRUE
47
48
49.INCLUDE: target.mk
50
51ALLTAR : \
52	echo
53
54echo :
55    @echo .
56    @echo ###########################   N O T E  ######################################
57    @echo .
58    @echo To run the test you have to provide the path to the  office location. It must
59    @echo contain the ure (d:\myOffice\OpenOffice.org\URE).
60    @echo Also an office must be installed with full system integration.
61    @echo Example:
62    @echo dmake run office="d:\myOffice"
63    @echo .
64    @echo To build a test library with a particular name run. The names must start with "version".
65    @echo For example:
66    @echo "dmake name=version_10_10_10.dll"
67    @echo ###########################   N O T E  ######################################
68    @echo .
69    @echo .
70
71# --- Parameters for the test --------------------------------------
72
73# test base is java complex
74CT_TESTBASE = -TestBase java_complex
75
76# test looks something like the.full.package.TestName
77CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
78
79# start the runner application
80CT_APP      = org.openoffice.Runner
81
82CT_NOOFFICE = -NoOffice
83# --- Targets ------------------------------------------------------
84
85RUN: $(MISC)$/copyassemblies.done
86    java -cp $(CLASSPATH) -DSystemRoot=$(SystemRoot) -Dcli_test_program=$(BIN)$/runtests.exe -Dpath="$(office)"\OpenOffice.org\URE\bin $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
87
88run: RUN
89
90