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
24.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
25nothing .PHONY:
26.ELSE
27
28PRJ = ../../..
29PRJNAME = sc
30TARGET = qa_complex_calcpreview
31
32.IF "$(OOO_JUNIT_JAR)" != ""
33PACKAGE = complex/calcPreview
34JAVATESTFILES = \
35	TestDocument.java \
36    ViewForwarder.java
37
38JAVAFILES = $(JAVATESTFILES)
39JARFILES = OOoRunner.jar ridl.jar test.jar unoil.jar jurt.jar
40EXTRAJARFILES = $(OOO_JUNIT_JAR)
41.END
42
43.INCLUDE: settings.mk
44.INCLUDE: target.mk
45.INCLUDE: installationtest.mk
46
47ALLTAR : javatest
48
49.END
50
51
52
53
54# PRJ = ..$/..$/..
55# TARGET  = ViewForward
56# PRJNAME = $(TARGET)
57# PACKAGE = complex$/calcPreview
58#
59# # --- Settings -----------------------------------------------------
60# .INCLUDE: settings.mk
61#
62#
63# #----- compile .java files -----------------------------------------
64#
65# JARFILES = mysql.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar mysql.jar
66# JAVAFILES       = ViewForwarder.java
67# JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
68#
69# #----- make a jar from compiled files ------------------------------
70#
71# MAXLINELENGTH = 100000
72#
73# JARCLASSDIRS    = $(PACKAGE)
74# JARTARGET       = $(TARGET).jar
75# JARCOMPRESS 	= TRUE
76#
77# # --- Parameters for the test --------------------------------------
78#
79# # start an office if the parameter is set for the makefile
80# .IF "$(OFFICE)" == ""
81# CT_APPEXECCOMMAND =
82# .ELSE
83# CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
84# .ENDIF
85#
86# # test base is java complex
87# CT_TESTBASE = -TestBase java_complex
88#
89# # set test document path
90# CT_TESTDOCS = -tdoc $(PWD)$/test_documents
91#
92# # test looks something like the.full.package.TestName
93# CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
94#
95# # start the runner application
96# CT_APP      = org.openoffice.Runner
97#
98# # set the timeout to a bigger value
99# CT_TIMEOUT = -TimeOut 120000
100#
101# # --- Targets ------------------------------------------------------
102#
103# .IF "$(depend)" == ""
104# $(CLASSDIR)$/$(PACKAGE)$/$(JAVAFILES:b).props : ALLTAR
105# .ELSE
106# $(CLASSDIR)$/$(PACKAGE)$/$(JAVAFILES:b).props : ALLDEP
107# .ENDIF
108#
109# .INCLUDE :  target.mk
110#
111#
112# RUN:
113#     +java -cp "$(CLASSPATH)" $(CT_APP) $(CT_APPEXECCOMMAND) $(CT_TESTDOCS) $(CT_TESTBASE) $(CT_WORKDIR) $(CT_TIMEOUT) $(CT_TEST)
114#
115# run: RUN
116#
117# tst:
118# 	+@echo $(CT_TESTDOCS)
119#
120