1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28
29# Builds the SpreadSheet examples of the Developers Guide.
30
31PRJ = ..$/..
32PRJNAME = cli_ure
33TARGET := qa_test_climaker
34PACKAGE = cliversion
35
36.INCLUDE: settings.mk
37
38#----- compile .java files -----------------------------------------
39
40JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
41JAVAFILES = VersionTestCase.java
42JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
43
44#----- make a jar from compiled files ------------------------------
45
46MAXLINELENGTH = 100000
47
48JARCLASSDIRS    = $(PACKAGE)
49JARTARGET       = $(TARGET).jar
50JARCOMPRESS 	= TRUE
51
52
53.INCLUDE: target.mk
54
55ALLTAR : \
56	echo
57
58echo :
59    @echo .
60    @echo ###########################   N O T E  ######################################
61    @echo .
62    @echo To run the test you have to provide the path to the  office location. It must
63    @echo contain the ure (d:\myOffice\OpenOffice.org\URE).
64    @echo Also an office must be installed with full system integration.
65    @echo Example:
66    @echo dmake run office="d:\myOffice"
67    @echo .
68    @echo To build a test library with a particular name run. The names must start with "version".
69    @echo For example:
70    @echo "dmake name=version_10_10_10.dll"
71    @echo ###########################   N O T E  ######################################
72    @echo .
73    @echo .
74
75# --- Parameters for the test --------------------------------------
76
77# test base is java complex
78CT_TESTBASE = -TestBase java_complex
79
80# test looks something like the.full.package.TestName
81CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
82
83# start the runner application
84CT_APP      = org.openoffice.Runner
85
86CT_NOOFFICE = -NoOffice
87# --- Targets ------------------------------------------------------
88
89RUN: $(MISC)$/copyassemblies.done
90    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)
91
92run: RUN
93
94