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