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