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