xref: /aoo4110/main/package/qa/storages/makefile.mk (revision b1cdbd2c)
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
24PRJ = ..$/..
25TARGET  = StorageUnitTest
26PRJNAME = package
27PACKAGE = complex$/storages
28
29# --- Settings -----------------------------------------------------
30.INCLUDE: settings.mk
31
32
33#----- compile .java files -----------------------------------------
34
35JARFILES        = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
36
37JAVAFILES       =\
38				StorageUnitTest.java\
39				StorageTest.java\
40				TestHelper.java\
41				BorderedStream.java\
42				Test01.java\
43				Test02.java\
44				Test03.java\
45				Test04.java\
46				Test05.java\
47				Test06.java\
48				Test07.java\
49				Test08.java\
50				Test09.java\
51				Test10.java\
52				Test11.java\
53				Test12.java\
54				Test13.java\
55				Test14.java\
56				Test15.java\
57				Test16.java\
58				Test17.java\
59				Test18.java\
60				RegressionTest_114358.java\
61				RegressionTest_i29169.java\
62				RegressionTest_i30400.java\
63				RegressionTest_i29321.java\
64				RegressionTest_i30677.java\
65				RegressionTest_i27773.java\
66				RegressionTest_i46848.java\
67				RegressionTest_i55821.java\
68				RegressionTest_i35095.java\
69				RegressionTest_i49755.java\
70				RegressionTest_i59886.java\
71				RegressionTest_i61909.java\
72				RegressionTest_i84234.java\
73				RegressionTest_125919.java
74
75JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
76
77#----- make a jar from compiled files ------------------------------
78
79MAXLINELENGTH = 100000
80
81JARCLASSDIRS    = $(PACKAGE)
82JARTARGET       = $(TARGET).jar
83JARCOMPRESS 	= TRUE
84
85# --- Parameters for the test --------------------------------------
86
87# start an office if the parameter is set for the makefile
88.IF "$(OFFICE)" == ""
89CT_APPEXECCOMMAND =
90.ELSE
91CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
92.ENDIF
93
94# test base is java complex
95CT_TESTBASE = -TestBase java_complex
96
97# test looks something like the.full.package.TestName
98CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
99
100# start the runner application
101CT_APP      = org.openoffice.Runner
102
103# --- Targets ------------------------------------------------------
104
105.INCLUDE: target.mk
106
107RUN: run
108
109run:
110    java -cp $(CLASSPATH) $(CT_APP) $(CT_TESTBASE) $(CT_APPEXECCOMMAND) $(CT_TEST)
111
112
113