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