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