xref: /aoo4110/main/vcl/qa/complex/memCheck/makefile.mk (revision b1cdbd2c)
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 = vcl
30TARGET = qa_complex_memCheck
31
32.IF "$(OOO_JUNIT_JAR)" != ""
33PACKAGE = complex/memCheck
34
35# here store only Files which contain a @Test
36JAVATESTFILES = \
37    CheckMemoryUsage.java
38
39# put here all other files
40JAVAFILES = $(JAVATESTFILES) \
41 FileHelper.java \
42 TestDocument.java
43
44
45JARFILES = OOoRunner.jar ridl.jar test.jar unoil.jar
46EXTRAJARFILES = $(OOO_JUNIT_JAR)
47
48# Sample how to debug
49# JAVAIFLAGS=-Xdebug  -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
50
51.END
52
53.INCLUDE: settings.mk
54.INCLUDE: target.mk
55.INCLUDE: installationtest.mk
56
57ALLTAR : javatest
58
59.END
60
61
62
63#
64#
65#
66# PRJ = ..$/..$/..
67# TARGET  = MemoryCheck
68# PRJNAME = $(TARGET)
69# PACKAGE = complex$/memCheck
70#
71# # --- Settings -----------------------------------------------------
72# .INCLUDE: settings.mk
73#
74#
75# #----- compile .java files -----------------------------------------
76#
77# JARFILES  = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
78# JAVAFILES = CheckMemoryUsage.java
79#
80# #----- make a jar from compiled files ------------------------------
81#
82# MAXLINELENGTH = 100000
83#
84# JARCLASSDIRS  = $(PACKAGE)
85# JARTARGET     = $(TARGET).jar
86# JARCOMPRESS   = TRUE
87#
88# # --- Parameters for the test --------------------------------------
89#
90# # start an office if the parameter is set for the makefile
91# .IF "$(OFFICE)" == ""
92# CT_APPEXECCOMMAND =
93# .ELSE
94# CT_APPEXECCOMMAND = -AppExecutionCommand \
95#             "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
96# .ENDIF
97#
98# # test base is java complex
99# CT_TESTBASE = -TestBase java_complex
100#
101# # replace $/ with . in package name
102# CT_PACKAGE  = -o $(PACKAGE:s\$/\.\)
103#
104# # start the runner application
105# CT_APP      = org.openoffice.Runner
106#
107# # --- Targets ------------------------------------------------------
108#
109# .IF "$(depend)" == ""
110# $(CLASSDIR)$/$(PACKAGE)$/CheckMemoryUsage.props : ALLTAR
111# .ELSE
112# $(CLASSDIR)$/$(PACKAGE)$/CheckMemoryUsage.props : ALLTAR
113# .ENDIF
114#
115# .INCLUDE :  target.mk
116#
117#
118#
119# $(CLASSDIR)$/$(PACKAGE)$/CheckMemoryUsage.props : CheckMemoryUsage.props
120#     cp $(@:f) $@
121#     jar uf $(CLASSDIR)$/$(JARTARGET) -C $(CLASSDIR) $(PACKAGE)$/$(@:f)
122#
123#
124# RUN: run
125#
126# run:
127#     java -cp $(CLASSPATH) $(CT_APP) $(CT_TESTBASE) $(CT_APPEXECCOMMAND) $(CT_PACKAGE).CheckMemoryUsage
128