1*b1cdbd2cSJim Jagielski#************************************************************** 2*b1cdbd2cSJim Jagielski# 3*b1cdbd2cSJim Jagielski# Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski# or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski# distributed with this work for additional information 6*b1cdbd2cSJim Jagielski# regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski# to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski# "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski# with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski# 11*b1cdbd2cSJim Jagielski# http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski# 13*b1cdbd2cSJim Jagielski# Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski# software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski# KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski# specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski# under the License. 19*b1cdbd2cSJim Jagielski# 20*b1cdbd2cSJim Jagielski#************************************************************** 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski.IF "$(OOO_SUBSEQUENT_TESTS)" == "" 25*b1cdbd2cSJim Jagielskinothing .PHONY: 26*b1cdbd2cSJim Jagielski.ELSE 27*b1cdbd2cSJim Jagielski 28*b1cdbd2cSJim JagielskiPRJ = ../../.. 29*b1cdbd2cSJim JagielskiPRJNAME = svl 30*b1cdbd2cSJim JagielskiTARGET = qa_complex_passwordcontainer 31*b1cdbd2cSJim Jagielski 32*b1cdbd2cSJim Jagielski.IF "$(OOO_JUNIT_JAR)" != "" 33*b1cdbd2cSJim JagielskiPACKAGE = complex/passwordcontainer 34*b1cdbd2cSJim Jagielski 35*b1cdbd2cSJim Jagielski# here store only Files which contain a @Test 36*b1cdbd2cSJim JagielskiJAVATESTFILES = \ 37*b1cdbd2cSJim Jagielski PasswordContainerUnitTest.java 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski 40*b1cdbd2cSJim Jagielski# put here all other files 41*b1cdbd2cSJim JagielskiJAVAFILES = $(JAVATESTFILES) \ 42*b1cdbd2cSJim Jagielski PasswordContainerTest.java\ 43*b1cdbd2cSJim Jagielski Test01.java\ 44*b1cdbd2cSJim Jagielski Test02.java\ 45*b1cdbd2cSJim Jagielski Test03.java\ 46*b1cdbd2cSJim Jagielski TestHelper.java\ 47*b1cdbd2cSJim Jagielski MasterPasswdHandler.java 48*b1cdbd2cSJim Jagielski 49*b1cdbd2cSJim Jagielski 50*b1cdbd2cSJim JagielskiJARFILES = OOoRunner.jar ridl.jar test.jar unoil.jar 51*b1cdbd2cSJim JagielskiEXTRAJARFILES = $(OOO_JUNIT_JAR) 52*b1cdbd2cSJim Jagielski 53*b1cdbd2cSJim Jagielski# Sample how to debug 54*b1cdbd2cSJim Jagielski# JAVAIFLAGS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y 55*b1cdbd2cSJim Jagielski 56*b1cdbd2cSJim Jagielski.END 57*b1cdbd2cSJim Jagielski 58*b1cdbd2cSJim Jagielski.INCLUDE: settings.mk 59*b1cdbd2cSJim Jagielski.INCLUDE: target.mk 60*b1cdbd2cSJim Jagielski.INCLUDE: installationtest.mk 61*b1cdbd2cSJim Jagielski 62*b1cdbd2cSJim JagielskiALLTAR : javatest 63*b1cdbd2cSJim Jagielski 64*b1cdbd2cSJim Jagielski.END 65*b1cdbd2cSJim Jagielski 66*b1cdbd2cSJim Jagielski 67*b1cdbd2cSJim Jagielski# 68*b1cdbd2cSJim Jagielski# 69*b1cdbd2cSJim Jagielski# 70*b1cdbd2cSJim Jagielski# 71*b1cdbd2cSJim Jagielski# PRJ = ..$/..$/.. 72*b1cdbd2cSJim Jagielski# TARGET = PasswordContainerUnitTest 73*b1cdbd2cSJim Jagielski# PRJNAME=svl 74*b1cdbd2cSJim Jagielski# PACKAGE = complex$/passwordcontainer 75*b1cdbd2cSJim Jagielski# 76*b1cdbd2cSJim Jagielski# # --- Settings ----------------------------------------------------- 77*b1cdbd2cSJim Jagielski# .INCLUDE: settings.mk 78*b1cdbd2cSJim Jagielski# 79*b1cdbd2cSJim Jagielski# 80*b1cdbd2cSJim Jagielski# #----- compile .java files ----------------------------------------- 81*b1cdbd2cSJim Jagielski# 82*b1cdbd2cSJim Jagielski# JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar 83*b1cdbd2cSJim Jagielski# 84*b1cdbd2cSJim Jagielski# JAVAFILES =\ 85*b1cdbd2cSJim Jagielski# PasswordContainerUnitTest.java\ 86*b1cdbd2cSJim Jagielski# PasswordContainerTest.java\ 87*b1cdbd2cSJim Jagielski# TestHelper.java\ 88*b1cdbd2cSJim Jagielski# Test01.java\ 89*b1cdbd2cSJim Jagielski# Test02.java\ 90*b1cdbd2cSJim Jagielski# Test03.java\ 91*b1cdbd2cSJim Jagielski# MasterPasswdHandler.java 92*b1cdbd2cSJim Jagielski# 93*b1cdbd2cSJim Jagielski# JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class) 94*b1cdbd2cSJim Jagielski# 95*b1cdbd2cSJim Jagielski# #----- make a jar from compiled files ------------------------------ 96*b1cdbd2cSJim Jagielski# 97*b1cdbd2cSJim Jagielski# MAXLINELENGTH = 100000 98*b1cdbd2cSJim Jagielski# 99*b1cdbd2cSJim Jagielski# JARCLASSDIRS = $(PACKAGE) 100*b1cdbd2cSJim Jagielski# JARTARGET = $(TARGET).jar 101*b1cdbd2cSJim Jagielski# JARCOMPRESS = TRUE 102*b1cdbd2cSJim Jagielski# 103*b1cdbd2cSJim Jagielski# # --- Parameters for the test -------------------------------------- 104*b1cdbd2cSJim Jagielski# 105*b1cdbd2cSJim Jagielski# # start an office if the parameter is set for the makefile 106*b1cdbd2cSJim Jagielski# .IF "$(OFFICE)" == "" 107*b1cdbd2cSJim Jagielski# CT_APPEXECCOMMAND = 108*b1cdbd2cSJim Jagielski# .ELSE 109*b1cdbd2cSJim Jagielski# CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;" 110*b1cdbd2cSJim Jagielski# .ENDIF 111*b1cdbd2cSJim Jagielski# 112*b1cdbd2cSJim Jagielski# # test base is java complex 113*b1cdbd2cSJim Jagielski# CT_TESTBASE = -TestBase java_complex 114*b1cdbd2cSJim Jagielski# 115*b1cdbd2cSJim Jagielski# # test looks something like the.full.package.TestName 116*b1cdbd2cSJim Jagielski# CT_TEST = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b) 117*b1cdbd2cSJim Jagielski# 118*b1cdbd2cSJim Jagielski# # start the runner application 119*b1cdbd2cSJim Jagielski# CT_APP = org.openoffice.Runner 120*b1cdbd2cSJim Jagielski# 121*b1cdbd2cSJim Jagielski# # --- Targets ------------------------------------------------------ 122*b1cdbd2cSJim Jagielski# 123*b1cdbd2cSJim Jagielski# .INCLUDE: target.mk 124*b1cdbd2cSJim Jagielski# 125*b1cdbd2cSJim Jagielski# RUN: run 126*b1cdbd2cSJim Jagielski# 127*b1cdbd2cSJim Jagielski# run: 128*b1cdbd2cSJim Jagielski# +java -cp $(CLASSPATH) $(CT_APP) $(CT_TESTBASE) $(CT_APPEXECCOMMAND) $(CT_TEST) 129*b1cdbd2cSJim Jagielski# 130*b1cdbd2cSJim Jagielski# 131