xref: /aoo41x/main/testtools/qa/cli/makefile.mk (revision cdf0e10c)
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
28PRJ := ..$/..
29PRJNAME := testtools
30TARGET := test_cli
31PACKAGE = clitest
32
33.INCLUDE: settings.mk
34
35#----- compile .java files -----------------------------------------
36
37JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
38JAVAFILES       = CLITest.java
39JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
40
41#----- make a jar from compiled files ------------------------------
42
43MAXLINELENGTH = 100000
44
45JARCLASSDIRS    = $(PACKAGE)
46JARTARGET       = $(TARGET).jar
47JARCOMPRESS 	= TRUE
48
49ALLTAR:
50
51EXETARGET = $(BIN)$/cli_bridgetest_inprocess.exe
52EXEARG_WIN= $(BIN)$/cli_bridgetest_inprocess.ini
53
54EXEARG= $(strip $(subst,$/,/ $(EXEARG_WIN)))
55
56.IF "$(depend)" == ""
57ALL: ALLTAR
58.ELSE
59ALL: ALLDEP
60.ENDIF
61
62.INCLUDE: target.mk
63
64# --- Parameters for the test --------------------------------------
65
66# test base is java complex
67CT_TESTBASE = -TestBase java_complex
68
69# test looks something like the.full.package.TestName
70CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
71
72# start the runner application
73CT_APP      = org.openoffice.Runner
74
75CT_NOOFFICE = -NoOffice
76# --- Targets ------------------------------------------------------
77
78RUN:
79.IF "$(GUI)"=="WNT"
80    java -cp $(CLASSPATH) -Dcli_test=$(EXETARGET) -Dcli_test_arg=$(EXEARG) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
81.ENDIF
82run: RUN
83