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 = forms 30TARGET = qa_complex_forms 31 32.IF "$(OOO_JUNIT_JAR)" != "" 33PACKAGE = complex/forms 34 35# here store only Files which contain a @Test 36JAVATESTFILES = \ 37 CheckOGroupBoxModel.java 38 39# put here all other files 40JAVAFILES = $(JAVATESTFILES) 41 42 43JARFILES = OOoRunner.jar ridl.jar test.jar unoil.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# TARGET = CheckOGroupBoxModel 65# PRJNAME = $(TARGET) 66# PACKAGE = complex$/forms 67# 68# # --- Settings ----------------------------------------------------- 69# .INCLUDE: settings.mk 70# 71# 72# #----- compile .java files ----------------------------------------- 73# 74# JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar mysql.jar 75# JAVAFILES = CheckOGroupBoxModel.java 76# JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class) 77# 78# #----- make a jar from compiled files ------------------------------ 79# 80# MAXLINELENGTH = 100000 81# 82# JARCLASSDIRS = $(PACKAGE) 83# 84# # --- Parameters for the test -------------------------------------- 85# 86# # start an office if the parameter is set for the makefile 87# .IF "$(OFFICE)" == "" 88# CT_APPEXECCOMMAND = 89# .ELSE 90# CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;" 91# .ENDIF 92# 93# # test base is java complex 94# CT_TESTBASE = -TestBase java_complex 95# 96# # build up package name with "." instead of $/ 97# CT_PACKAGE = -o $(PACKAGE:s\$/\.\) 98# 99# # start the runner application 100# CT_APP = org.openoffice.Runner 101# 102# # --- Targets ------------------------------------------------------ 103# 104# .IF "$(depend)" == "" 105# run : ALLTAR 106# .ELSE 107# run : ALLDEP 108# .ENDIF 109# 110# .INCLUDE : target.mk 111# 112# run: 113# +java -cp $(CLASSPATH) $(CT_APP) $(CT_APPEXECCOMMAND) $(CT_TESTBASE) $(CT_PACKAGE).$(JAVAFILES:b) 114