xref: /AOO42X/main/testtools/qa/cli/makefile.mk (revision 23169c6bc9271e8609a70b80385a7d6fcb20e682)
1*23169c6bSmseidel#**************************************************************
2*23169c6bSmseidel#
3*23169c6bSmseidel#  Licensed to the Apache Software Foundation (ASF) under one
4*23169c6bSmseidel#  or more contributor license agreements.  See the NOTICE file
5*23169c6bSmseidel#  distributed with this work for additional information
6*23169c6bSmseidel#  regarding copyright ownership.  The ASF licenses this file
7*23169c6bSmseidel#  to you under the Apache License, Version 2.0 (the
8*23169c6bSmseidel#  "License"); you may not use this file except in compliance
9*23169c6bSmseidel#  with the License.  You may obtain a copy of the License at
10*23169c6bSmseidel#
11*23169c6bSmseidel#    http://www.apache.org/licenses/LICENSE-2.0
12*23169c6bSmseidel#
13*23169c6bSmseidel#  Unless required by applicable law or agreed to in writing,
14*23169c6bSmseidel#  software distributed under the License is distributed on an
15*23169c6bSmseidel#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*23169c6bSmseidel#  KIND, either express or implied.  See the License for the
17*23169c6bSmseidel#  specific language governing permissions and limitations
18*23169c6bSmseidel#  under the License.
19*23169c6bSmseidel#
20*23169c6bSmseidel#**************************************************************
21*23169c6bSmseidel
22*23169c6bSmseidelPRJ := ..$/..
23*23169c6bSmseidelPRJNAME := testtools
24*23169c6bSmseidelTARGET := test_cli
25*23169c6bSmseidelPACKAGE = clitest
26*23169c6bSmseidel
27*23169c6bSmseidel.INCLUDE: settings.mk
28*23169c6bSmseidel
29*23169c6bSmseidel#----- compile .java files -----------------------------------------
30*23169c6bSmseidel
31*23169c6bSmseidelJARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
32*23169c6bSmseidelJAVAFILES       = CLITest.java
33*23169c6bSmseidelJAVACLASSFILES  = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
34*23169c6bSmseidel
35*23169c6bSmseidel#----- make a jar from compiled files ------------------------------
36*23169c6bSmseidel
37*23169c6bSmseidelMAXLINELENGTH = 100000
38*23169c6bSmseidel
39*23169c6bSmseidelJARCLASSDIRS    = $(PACKAGE)
40*23169c6bSmseidelJARTARGET       = $(TARGET).jar
41*23169c6bSmseidelJARCOMPRESS     = TRUE
42*23169c6bSmseidel
43*23169c6bSmseidelALLTAR:
44*23169c6bSmseidel
45*23169c6bSmseidelEXETARGET = $(BIN)$/cli_bridgetest_inprocess.exe
46*23169c6bSmseidelEXEARG_WIN= $(BIN)$/cli_bridgetest_inprocess.ini
47*23169c6bSmseidel
48*23169c6bSmseidelEXEARG= $(strip $(subst,$/,/ $(EXEARG_WIN)))
49*23169c6bSmseidel
50*23169c6bSmseidel.IF "$(depend)" == ""
51*23169c6bSmseidelALL: ALLTAR
52*23169c6bSmseidel.ELSE
53*23169c6bSmseidelALL: ALLDEP
54*23169c6bSmseidel.ENDIF
55*23169c6bSmseidel
56*23169c6bSmseidel.INCLUDE: target.mk
57*23169c6bSmseidel
58*23169c6bSmseidel# --- Parameters for the test --------------------------------------
59*23169c6bSmseidel
60*23169c6bSmseidel# test base is java complex
61*23169c6bSmseidelCT_TESTBASE = -TestBase java_complex
62*23169c6bSmseidel
63*23169c6bSmseidel# test looks something like the.full.package.TestName
64*23169c6bSmseidelCT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
65*23169c6bSmseidel
66*23169c6bSmseidel# start the runner application
67*23169c6bSmseidelCT_APP      = org.openoffice.Runner
68*23169c6bSmseidel
69*23169c6bSmseidelCT_NOOFFICE = -NoOffice
70*23169c6bSmseidel# --- Targets ------------------------------------------------------
71*23169c6bSmseidel
72*23169c6bSmseidelRUN:
73*23169c6bSmseidel.IF "$(GUI)"=="WNT"
74*23169c6bSmseidel    java -cp $(CLASSPATH) -Dcli_test=$(EXETARGET) -Dcli_test_arg=$(EXEARG) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
75*23169c6bSmseidel.ENDIF
76*23169c6bSmseidelrun: RUN
77