author | aw |
Tue, 01 Sep 2015 18:19:29 +0200 | |
changeset 32437 | 153cb8aeb422 |
parent 29631 | deeb56c778ac |
child 37931 | 3b90f94b5d75 |
permissions | -rw-r--r-- |
28134
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
1 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
2 |
# Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
4 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
10 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
15 |
# accompanied this code). |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
16 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
20 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
23 |
# questions. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
24 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
25 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
26 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
27 |
# Makefile to run various JAXP tests |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
28 |
# |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
29 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
30 |
.DEFAULT : all |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
31 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
32 |
# Empty these to get rid of some default rules |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
33 |
.SUFFIXES: |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
34 |
.SUFFIXES: .java |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
35 |
CO= |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
36 |
GET= |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
37 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
38 |
# Utilities used |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
39 |
AWK = awk |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
40 |
CAT = cat |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
41 |
CD = cd |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
42 |
CHMOD = chmod |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
43 |
CP = cp |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
44 |
CUT = cut |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
45 |
DIRNAME = dirname |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
46 |
ECHO = echo |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
47 |
EGREP = egrep |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
48 |
EXPAND = expand |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
49 |
FIND = find |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
50 |
MKDIR = mkdir |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
51 |
PWD = pwd |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
52 |
SED = sed |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
53 |
SORT = sort |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
54 |
TEE = tee |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
55 |
UNAME = uname |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
56 |
UNIQ = uniq |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
57 |
WC = wc |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
58 |
ZIP = zip |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
59 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
60 |
# Get OS name from uname (Cygwin inexplicably adds _NT-5.1) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
61 |
UNAME_S := $(shell $(UNAME) -s | $(CUT) -f1 -d_) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
62 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
63 |
# Commands to run on paths to make mixed paths for java on windows |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
64 |
ifeq ($(UNAME_S), CYGWIN) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
65 |
# Location of developer shared files |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
66 |
SLASH_JAVA = J: |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
67 |
GETMIXEDPATH = cygpath -m |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
68 |
else |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
69 |
# Location of developer shared files |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
70 |
SLASH_JAVA = /java |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
71 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
72 |
GETMIXEDPATH=$(ECHO) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
73 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
74 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
75 |
# Root of this test area (important to use full paths in some places) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
76 |
TEST_ROOT := $(shell $(PWD)) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
77 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
78 |
# Root of all test results |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
79 |
ifdef ALT_OUTPUTDIR |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
80 |
ABS_OUTPUTDIR = $(shell $(CD) $(ALT_OUTPUTDIR) && $(PWD)) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
81 |
else |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
82 |
ABS_OUTPUTDIR = $(shell $(CD) $(TEST_ROOT)/.. && $(PWD)) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
83 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
84 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
85 |
ABS_PLATFORM_BUILD_ROOT = $(ABS_OUTPUTDIR) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
86 |
ABS_TEST_OUTPUT_DIR := $(ABS_PLATFORM_BUILD_ROOT)/testoutput/$(UNIQUE_DIR) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
87 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
88 |
# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
89 |
ifndef PRODUCT_HOME |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
90 |
# Try to use j2sdk-image if it exists |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
91 |
ABS_JDK_IMAGE = $(ABS_PLATFORM_BUILD_ROOT)/images/j2sdk-image |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
92 |
PRODUCT_HOME := \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
93 |
$(shell \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
94 |
if [ -d $(ABS_JDK_IMAGE) ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
95 |
$(ECHO) "$(ABS_JDK_IMAGE)"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
96 |
else \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
97 |
$(ECHO) "$(ABS_PLATFORM_BUILD_ROOT)"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
98 |
fi) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
99 |
PRODUCT_HOME := $(PRODUCT_HOME) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
100 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
101 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
102 |
# Expect JPRT to set JPRT_PRODUCT_ARGS (e.g. -server etc.) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
103 |
# Should be passed into 'java' only. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
104 |
# Could include: -d64 -server -client OR any java option |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
105 |
ifdef JPRT_PRODUCT_ARGS |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
106 |
JAVA_ARGS = $(JPRT_PRODUCT_ARGS) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
107 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
108 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
109 |
# Expect JPRT to set JPRT_PRODUCT_VM_ARGS (e.g. -Xcomp etc.) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
110 |
# Should be passed into anything running the vm (java, javac, javadoc, ...). |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
111 |
ifdef JPRT_PRODUCT_VM_ARGS |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
112 |
JAVA_VM_ARGS = $(JPRT_PRODUCT_VM_ARGS) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
113 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
114 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
115 |
# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
116 |
ifdef JPRT_ARCHIVE_BUNDLE |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
117 |
ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
118 |
else |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
119 |
ARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
120 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
121 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
122 |
# How to create the test bundle (pass or fail, we want to create this) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
123 |
# Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
124 |
ZIP_UP_RESULTS = ( $(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
125 |
&& $(CD) $(ABS_TEST_OUTPUT_DIR) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
126 |
&& $(CHMOD) -R a+r . \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
127 |
&& $(ZIP) -q -r $(ARCHIVE_BUNDLE) . ) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
128 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
129 |
# important results files |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
130 |
SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport/text/summary.txt") |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
131 |
STATS_TXT_NAME = Stats.txt |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
132 |
STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/$(STATS_TXT_NAME)") |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
133 |
RUNLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/runlist.txt") |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
134 |
PASSLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/passlist.txt") |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
135 |
FAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/faillist.txt") |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
136 |
EXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/exitcode.txt") |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
137 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
138 |
TESTEXIT = \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
139 |
if [ ! -s $(EXITCODE) ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
140 |
$(ECHO) "ERROR: EXITCODE file not filled in."; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
141 |
$(ECHO) "1" > $(EXITCODE); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
142 |
fi ; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
143 |
testExitCode=`$(CAT) $(EXITCODE)`; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
144 |
$(ECHO) "EXIT CODE: $${testExitCode}"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
145 |
exit $${testExitCode} |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
146 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
147 |
BUNDLE_UP_AND_EXIT = \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
148 |
( \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
149 |
jtregExitCode=$$? && \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
150 |
_summary="$(SUMMARY_TXT)"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
151 |
$(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
152 |
$(ECHO) "$${jtregExitCode}" > $(EXITCODE); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
153 |
if [ -r "$${_summary}" ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
154 |
$(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
155 |
$(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
156 |
$(EGREP) ' Passed\.' $(RUNLIST) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
157 |
| $(EGREP) -v ' Error\.' \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
158 |
| $(EGREP) -v ' Failed\.' > $(PASSLIST); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
159 |
( $(EGREP) ' Failed\.' $(RUNLIST); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
160 |
$(EGREP) ' Error\.' $(RUNLIST); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
161 |
$(EGREP) -v ' Passed\.' $(RUNLIST) ) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
162 |
| $(SORT) | $(UNIQ) > $(FAILLIST); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
163 |
if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
164 |
$(EXPAND) $(FAILLIST) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
165 |
| $(CUT) -d' ' -f1 \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
166 |
| $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
167 |
if [ $${jtregExitCode} = 0 ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
168 |
jtregExitCode=1; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
169 |
fi; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
170 |
fi; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
171 |
runc="`$(CAT) $(RUNLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
172 |
passc="`$(CAT) $(PASSLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
173 |
failc="`$(CAT) $(FAILLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
174 |
exclc="FIXME CODETOOLS-7900176"; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
175 |
$(ECHO) "TEST STATS: name=$(UNIQUE_DIR) run=$${runc} pass=$${passc} fail=$${failc}" \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
176 |
>> $(STATS_TXT); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
177 |
else \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
178 |
$(ECHO) "Missing file: $${_summary}" >> $(STATS_TXT); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
179 |
fi; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
180 |
if [ -f $(STATS_TXT) ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
181 |
$(CAT) $(STATS_TXT); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
182 |
fi; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
183 |
$(ZIP_UP_RESULTS) ; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
184 |
$(TESTEXIT) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
185 |
) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
186 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
187 |
################################################################ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
188 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
189 |
# Default make rule (runs default JAXP tests) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
190 |
all: jaxp_all |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
191 |
@$(ECHO) "Testing completed successfully" |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
192 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
193 |
# Prep for output |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
194 |
# Change execute permissions on shared library files. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
195 |
# Files in repositories should never have execute permissions, but |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
196 |
# there are some tests that have pre-built shared libraries, and these |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
197 |
# windows dll files must have execute permission. Adding execute |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
198 |
# permission may happen automatically on windows when using certain |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
199 |
# versions of mercurial but it cannot be guaranteed. And blindly |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
200 |
# adding execute permission might be seen as a mercurial 'change', so |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
201 |
# we avoid adding execute permission to repository files. But testing |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
202 |
# from a plain source tree needs the chmod a+rx. Applying the chmod to |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
203 |
# all shared libraries not just dll files. And with CYGWIN and sshd |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
204 |
# service, you may need CYGWIN=ntsec for this to work. |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
205 |
prep: |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
206 |
@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
207 |
@$(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
208 |
@if [ ! -d $(TEST_ROOT)/../.hg ] ; then \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
209 |
$(FIND) $(TEST_ROOT) \( -name \*.dll -o -name \*.DLL -o -name \*.so \) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
210 |
-exec $(CHMOD) a+rx {} \; ; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
211 |
fi |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
212 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
213 |
# Cleanup |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
214 |
clean: |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
215 |
@$(RM) -r $(ABS_TEST_OUTPUT_DIR) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
216 |
@$(RM) $(ARCHIVE_BUNDLE) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
217 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
218 |
################################################################ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
219 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
220 |
# jtreg tests |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
221 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
222 |
# Expect JT_HOME to be set for jtreg tests. (home for jtreg) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
223 |
ifndef JT_HOME |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
224 |
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
225 |
ifdef JPRT_JTREG_HOME |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
226 |
JT_HOME = $(JPRT_JTREG_HOME) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
227 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
228 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
229 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
230 |
# Problematic tests to be excluded |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
231 |
PROBLEM_LISTS=$(call MixedDirs,$(wildcard ProblemList.txt closed/ProblemList.txt)) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
232 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
233 |
# Create exclude list for this platform and arch |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
234 |
ifdef NO_EXCLUDES |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
235 |
JTREG_EXCLUSIONS = |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
236 |
else |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
237 |
JTREG_EXCLUSIONS = $(PROBLEM_LISTS:%=-exclude:%) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
238 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
239 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
240 |
# convert list of directories to dos paths |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
241 |
define MixedDirs |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
242 |
$(foreach i,$1,$(shell $(GETMIXEDPATH) "${i}")) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
243 |
endef |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
244 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
245 |
define SummaryInfo |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
246 |
$(ECHO) "########################################################" |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
247 |
$(CAT) $(?:%=$(ABS_TEST_OUTPUT_DIR)/%/$(STATS_TXT_NAME)) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
248 |
$(ECHO) "########################################################" |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
249 |
endef |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
250 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
251 |
# ------------------------------------------------------------------ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
252 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
253 |
jaxp_%: |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
254 |
$(ECHO) "Running tests: $@" |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
255 |
for each in $@; do \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
256 |
$(MAKE) -j 1 TEST_SELECTION=":$$each" UNIQUE_DIR=$$each jtreg_tests; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
257 |
done |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
258 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
259 |
# ------------------------------------------------------------------ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
260 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
261 |
ifdef CONCURRENCY |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
262 |
EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
263 |
endif |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
264 |
|
29631
deeb56c778ac
8075692: jaxp/test/Makefile reference of win32 directory no longer valid
joehw
parents:
28134
diff
changeset
|
265 |
# Default JTREG to run |
deeb56c778ac
8075692: jaxp/test/Makefile reference of win32 directory no longer valid
joehw
parents:
28134
diff
changeset
|
266 |
JTREG = $(JT_HOME)/bin/jtreg |
28134
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
267 |
# run in agentvm mode |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
268 |
JTREG_BASIC_OPTIONS += -agentvm |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
269 |
# Only run automatic tests |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
270 |
JTREG_BASIC_OPTIONS += -a |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
271 |
# Always turn on assertions |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
272 |
JTREG_ASSERT_OPTION = -ea -esa |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
273 |
JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
274 |
# Report details on all failed or error tests, times too |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
275 |
JTREG_BASIC_OPTIONS += -v:fail,error,time |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
276 |
# Retain all files for failing tests |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
277 |
JTREG_BASIC_OPTIONS += -retain:fail,error |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
278 |
# Ignore tests are not run and completely silent about it |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
279 |
JTREG_IGNORE_OPTION = -ignore:quiet |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
280 |
JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
281 |
# Multiple by 4 the timeout numbers |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
282 |
JTREG_TIMEOUT_OPTION = -timeoutFactor:4 |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
283 |
JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
284 |
# Set the max memory for jtreg control vm |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
285 |
JTREG_MEMORY_OPTION = -J-Xmx512m |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
286 |
JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
287 |
# Add any extra options |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
288 |
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
289 |
# Set other vm and test options |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
290 |
JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
291 |
# Set the GC options for test vms |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
292 |
#JTREG_GC_OPTION = -vmoption:-XX:+UseSerialGC |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
293 |
#JTREG_TEST_OPTIONS += $(JTREG_GC_OPTION) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
294 |
# Set the max memory for jtreg target test vms |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
295 |
JTREG_TESTVM_MEMORY_OPTION = -vmoption:-Xmx512m |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
296 |
JTREG_TEST_OPTIONS += $(JTREG_TESTVM_MEMORY_OPTION) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
297 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
298 |
# Make sure jtreg exists |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
299 |
$(JTREG): $(JT_HOME) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
300 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
301 |
# Run jtreg |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
302 |
jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
303 |
( \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
304 |
( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
305 |
export JT_HOME; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
306 |
$(shell $(GETMIXEDPATH) "$(JTREG)") \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
307 |
$(JTREG_BASIC_OPTIONS) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
308 |
-r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport") \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
309 |
-w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTwork") \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
310 |
-jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
311 |
$(JTREG_EXCLUSIONS) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
312 |
$(JTREG_TEST_OPTIONS) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
313 |
$(TEST_SELECTION) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
314 |
) ; \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
315 |
$(BUNDLE_UP_AND_EXIT) \ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
316 |
) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
317 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
318 |
PHONY_LIST += jtreg_tests |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
319 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
320 |
################################################################ |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
321 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
322 |
# Phony targets (e.g. these are not filenames) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
323 |
.PHONY: all clean prep $(PHONY_LIST) |
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
324 |
|
88558c1810b9
8065673: XML Test Colo: Add test build system for JAXP tests
joehw
parents:
diff
changeset
|
325 |
################################################################ |