xref: /aoo41x/main/bean/qa/complex/bean/makefile.mk (revision 7871dc3e)
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.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
24nothing .PHONY:
25.ELSE
26
27PRJ = ../../..
28PRJNAME = bean
29TARGET = qa_complex_bean
30
31.IF "$(OOO_JUNIT_JAR)" != ""
32PACKAGE = complex/bean
33
34# here store only Files which contain a @Test
35JAVATESTFILES = \
36    OOoBeanTest.java
37
38# put here all other files
39JAVAFILES = $(JAVATESTFILES) \
40     ScreenComparer.java \
41     WriterFrame.java
42
43JARFILES = OOoRunner.jar ridl.jar test.jar unoil.jar officebean.jar
44EXTRAJARFILES = $(OOO_JUNIT_JAR)
45
46# Sample how to debug
47# JAVAIFLAGS=-Xdebug  -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
48
49.END
50
51.INCLUDE: settings.mk
52.INCLUDE: target.mk
53.INCLUDE: installationtest.mk
54
55ALLTAR : javatest
56
57.END
58
59#
60#
61#
62#
63# PRJ := ..$/..
64# PRJNAME := bean
65# TARGET := test_bean
66# PACKAGE = complex
67#
68# .INCLUDE: settings.mk
69#
70# #----- compile .java files -----------------------------------------
71#
72# JARFILES = officebean.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
73# JAVAFILES       = OOoBeanTest.java ScreenComparer.java WriterFrame.java
74# JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
75#
76# #----- make a jar from compiled files ------------------------------
77#
78# MAXLINELENGTH = 100000
79#
80# JARCLASSDIRS    = $(PACKAGE)
81# JARTARGET       = $(TARGET).jar
82# JARCOMPRESS 	= TRUE
83#
84# # --- Parameters for the test --------------------------------------
85#
86# # test base is java complex
87# CT_TESTBASE = -TestBase java_complex
88#
89# # test looks something like the.full.package.TestName
90# CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
91#
92# # start the runner application
93# CT_APP      = org.openoffice.Runner
94#
95# CT_NOOFFICE = -NoOffice
96#
97#
98# OFFICE_CLASSPATH_TMP:=$(foreach,i,$(JARFILES) $(office)$/program$/classes$/$(i)$(PATH_SEPERATOR))
99#
100# OFFICE_CLASSPATH=$(OFFICE_CLASSPATH_TMP:t"")$(SOLARBINDIR)$/OOoRunner.jar$(PATH_SEPERATOR)$(CLASSDIR)
101#
102# OOOBEAN_OPTIONS=-Dcom.sun.star.officebean.Options=-norestore -DOOoBean.Images=$(MISC)
103#
104#
105# .INCLUDE: target.mk
106#
107# ALLTAR : RUNINSTRUCTIONS
108#
109# # --- Targets ------------------------------------------------------
110#
111# #The OOoBean uses the classpath to find the office installation.
112# #Therefore we must use the jar files from the office.
113# RUN:
114#     java -cp $(OFFICE_CLASSPATH) $(OOOBEAN_OPTIONS) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
115# run: RUN
116#
117# rund:
118#     java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8100 -cp $(OFFICE_CLASSPATH) $(OOOBEAN_OPTIONS) $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
119#
120#
121#
122# RUNINSTRUCTIONS :
123#     @echo .
124#     @echo ###########################   N O T E  ######################################
125#     @echo .
126#     @echo "To run the test you have to provide the office location."
127#     @echo Example:
128#     @echo dmake run office="d:/myOffice"
129#     @echo .
130#
131