1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
29nothing .PHONY:
30.ELSE
31
32PRJ = ../../..
33PRJNAME = sc
34TARGET = qa_complex_calcpreview
35
36.IF "$(OOO_JUNIT_JAR)" != ""
37PACKAGE = complex/calcPreview
38JAVATESTFILES = \
39	TestDocument.java \
40    ViewForwarder.java
41
42JAVAFILES = $(JAVATESTFILES)
43JARFILES = OOoRunner.jar ridl.jar test.jar unoil.jar jurt.jar
44EXTRAJARFILES = $(OOO_JUNIT_JAR)
45.END
46
47.INCLUDE: settings.mk
48.INCLUDE: target.mk
49.INCLUDE: installationtest.mk
50
51ALLTAR : javatest
52
53.END
54
55
56
57
58# PRJ = ..$/..$/..
59# TARGET  = ViewForward
60# PRJNAME = $(TARGET)
61# PACKAGE = complex$/calcPreview
62#
63# # --- Settings -----------------------------------------------------
64# .INCLUDE: settings.mk
65#
66#
67# #----- compile .java files -----------------------------------------
68#
69# JARFILES = mysql.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar mysql.jar
70# JAVAFILES       = ViewForwarder.java
71# JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
72#
73# #----- make a jar from compiled files ------------------------------
74#
75# MAXLINELENGTH = 100000
76#
77# JARCLASSDIRS    = $(PACKAGE)
78# JARTARGET       = $(TARGET).jar
79# JARCOMPRESS 	= TRUE
80#
81# # --- Parameters for the test --------------------------------------
82#
83# # start an office if the parameter is set for the makefile
84# .IF "$(OFFICE)" == ""
85# CT_APPEXECCOMMAND =
86# .ELSE
87# CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
88# .ENDIF
89#
90# # test base is java complex
91# CT_TESTBASE = -TestBase java_complex
92#
93# # set test document path
94# CT_TESTDOCS = -tdoc $(PWD)$/test_documents
95#
96# # test looks something like the.full.package.TestName
97# CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
98#
99# # start the runner application
100# CT_APP      = org.openoffice.Runner
101#
102# # set the timeout to a bigger value
103# CT_TIMEOUT = -TimeOut 120000
104#
105# # --- Targets ------------------------------------------------------
106#
107# .IF "$(depend)" == ""
108# $(CLASSDIR)$/$(PACKAGE)$/$(JAVAFILES:b).props : ALLTAR
109# .ELSE
110# $(CLASSDIR)$/$(PACKAGE)$/$(JAVAFILES:b).props : ALLDEP
111# .ENDIF
112#
113# .INCLUDE :  target.mk
114#
115#
116# RUN:
117#     +java -cp "$(CLASSPATH)" $(CT_APP) $(CT_APPEXECCOMMAND) $(CT_TESTDOCS) $(CT_TESTBASE) $(CT_WORKDIR) $(CT_TIMEOUT) $(CT_TEST)
118#
119# run: RUN
120#
121# tst:
122# 	+@echo $(CT_TESTDOCS)
123#
124