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