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 = ..$/..$/..
25TARGET  = ExtensionsIntegrationTests
26PRJNAME = extensions
27PACKAGE = integration$/$(PRJNAME)
28
29# --- Settings -----------------------------------------------------
30.INCLUDE: settings.mk
31
32
33#----- compile .java files -----------------------------------------
34
35JARFILES        = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
36JAVAFILES       := $(shell @$(FIND) .$/*.java)
37JAVACLASSFILES	:= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
38
39#----- make a jar from compiled files ------------------------------
40
41MAXLINELENGTH = 100000
42
43JARCLASSDIRS    = $(PACKAGE)
44JARTARGET       = $(TARGET).jar
45JARCOMPRESS 	= TRUE
46
47# --- Runner Settings ----------------------------------------------
48
49# create connection string for OOoRunner
50.IF "$(RUNNER_CONNECTION_STRING)" == ""
51    .IF "$(OOO_RUNNER_PORT)" == ""
52        OOO_RUNNER_PORT=8100
53    .ENDIF
54    .IF "$(OOO_RUNNER_HOST)" == ""
55        OOO_RUNNER_HOST=localhost
56    .ENDIF
57    RUNNER_CONNECTION_STRING=socket,host=$(OOO_RUNNER_HOST),port=$(OOO_RUNNER_PORT)
58.ENDIF
59
60# classpath and argument list
61RUNNER_CLASSPATH = -cp $(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/OOoRunner.jar$(PATH_SEPERATOR)$(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/ConnectivityTools.jar
62RUNNER_ARGS = org.openoffice.Runner -TestBase java_complex -cs $(RUNNER_CONNECTION_STRING)
63
64# --- Targets ------------------------------------------------------
65
66.IF "$(depend)" == ""
67ALL :   ALLTAR
68.ELSE
69ALL: 	ALLDEP
70.ENDIF
71
72.INCLUDE :  target.mk
73
74run:
75    +java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -sce extensions_complex.sce
76
77run_%:
78    +java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -o integration.$(PRJNAME).$(@:s/run_//)
79
80