author | rriggs |
Fri, 10 Jan 2014 10:45:56 -0500 | |
changeset 22258 | db80f864ed8f |
parent 19318 | 7425be18f6f4 |
child 22234 | da823d78ad65 |
permissions | -rw-r--r-- |
1 | 1 |
# |
12095 | 2 |
# Copyright (c) 1995, 2012, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
2868
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
2868
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
2868
diff
changeset
|
21 |
# questions. |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
22 |
# |
1 | 23 |
# |
24 |
||
25 |
# |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
26 |
# Makefile to run various jdk tests |
1 | 27 |
# |
28 |
||
12225 | 29 |
GETMIXEDPATH=echo |
30 |
||
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
31 |
# Get OS/ARCH specifics |
1 | 32 |
OSNAME = $(shell uname -s) |
33 |
ifeq ($(OSNAME), SunOS) |
|
34 |
PLATFORM = solaris |
|
2024
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
35 |
SLASH_JAVA = /java |
1 | 36 |
ARCH = $(shell uname -p) |
37 |
ifeq ($(ARCH), i386) |
|
38 |
ARCH=i586 |
|
39 |
endif |
|
40 |
endif |
|
41 |
ifeq ($(OSNAME), Linux) |
|
42 |
PLATFORM = linux |
|
2024
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
43 |
SLASH_JAVA = /java |
1 | 44 |
ARCH = $(shell uname -m) |
45 |
ifeq ($(ARCH), i386) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
46 |
ARCH = i586 |
1 | 47 |
endif |
48 |
endif |
|
10565 | 49 |
ifeq ($(OSNAME), Darwin) |
50 |
PLATFORM = bsd |
|
51 |
SLASH_JAVA = /java |
|
52 |
ARCH = $(shell uname -m) |
|
53 |
ifeq ($(ARCH), i386) |
|
54 |
ARCH = i586 |
|
55 |
endif |
|
56 |
endif |
|
57 |
ifeq ($(findstring BSD,$(OSNAME)), BSD) |
|
58 |
PLATFORM = bsd |
|
59 |
SLASH_JAVA = /java |
|
60 |
ARCH = $(shell uname -m) |
|
61 |
ifeq ($(ARCH), i386) |
|
62 |
ARCH = i586 |
|
63 |
endif |
|
64 |
endif |
|
12225 | 65 |
ifeq ($(PLATFORM),) |
66 |
# detect wether we're running in MKS or cygwin |
|
67 |
ifeq ($(OSNAME), Windows_NT) # MKS |
|
68 |
GETMIXEDPATH=dosname -s |
|
69 |
endif |
|
70 |
ifeq ($(findstring CYGWIN,$(OSNAME)), CYGWIN) |
|
71 |
GETMIXEDPATH=cygpath -m -s |
|
72 |
endif |
|
1 | 73 |
PLATFORM = windows |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
74 |
SLASH_JAVA = J: |
1 | 75 |
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64) |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
76 |
ARCH = ia64 |
1 | 77 |
else |
78 |
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
79 |
ARCH = x64 |
1 | 80 |
else |
81 |
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
82 |
ARCH = x64 |
1 | 83 |
else |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
84 |
ARCH = i586 |
1 | 85 |
endif |
86 |
endif |
|
87 |
endif |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
88 |
EXESUFFIX = .exe |
1 | 89 |
endif |
90 |
||
2024
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
91 |
ifdef ALT_SLASH_JAVA |
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
92 |
SLASH_JAVA = $(ALT_SLASH_JAVA) |
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
93 |
endif |
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
94 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
95 |
# Utilities used |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
96 |
CD = cd |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
97 |
CP = cp |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
98 |
ECHO = echo |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
99 |
MKDIR = mkdir |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
100 |
ZIP = zip |
1 | 101 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
102 |
# Root of this test area (important to use full paths in some places) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
103 |
TEST_ROOT := $(shell pwd) |
1 | 104 |
|
105 |
# Root of all test results |
|
7102
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
106 |
ifdef ALT_OUTPUTDIR |
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
107 |
ABS_BUILD_ROOT = $(ALT_OUTPUTDIR)/$(PLATFORM)-$(ARCH) |
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
108 |
else |
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
109 |
ABS_BUILD_ROOT = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH) |
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
110 |
endif |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
111 |
ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput |
1 | 112 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
113 |
# Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
114 |
ifndef PRODUCT_HOME |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
115 |
# Try to use j2sdk-image if it exists |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
116 |
ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
117 |
PRODUCT_HOME := \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
118 |
$(shell \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
119 |
if [ -d $(ABS_JDK_IMAGE) ] ; then \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
120 |
$(ECHO) "$(ABS_JDK_IMAGE)"; \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
121 |
else \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
122 |
$(ECHO) "$(ABS_BUILD_ROOT)" ; \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
123 |
fi) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
124 |
endif |
1 | 125 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
126 |
# Expect JPRT to set JAVA_ARGS (e.g. -server etc.) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
127 |
JAVA_OPTIONS = |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
128 |
ifdef JAVA_ARGS |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
129 |
JAVA_OPTIONS = $(JAVA_ARGS) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
130 |
endif |
1 | 131 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
132 |
# Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
133 |
ARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
134 |
ifdef JPRT_ARCHIVE_BUNDLE |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
135 |
ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
136 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
137 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
138 |
# How to create the test bundle (pass or fail, we want to create this) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
139 |
BUNDLE_UP = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
140 |
&& $(CD) $(ABS_TEST_OUTPUT_DIR) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
141 |
&& $(ZIP) -q -r $(ARCHIVE_BUNDLE) . ) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
142 |
BUNDLE_UP_FAILED = ( exitCode=$$? && $(BUNDLE_UP) && exit $${exitCode} ) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
143 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
144 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
145 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
146 |
# Default make rule (runs jtreg_tests) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
147 |
all: jtreg_tests |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
148 |
@$(ECHO) "Testing completed successfully" |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
149 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
150 |
# Prep for output |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
151 |
prep: clean |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
152 |
@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
153 |
@$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` |
1 | 154 |
|
155 |
# Cleanup |
|
156 |
clean: |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
157 |
$(RM) -r $(ABS_TEST_OUTPUT_DIR) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
158 |
$(RM) $(ARCHIVE_BUNDLE) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
159 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
160 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
161 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
162 |
# jtreg tests |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
163 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
164 |
# Expect JT_HOME to be set for jtreg tests. (home for jtreg) |
17005
f7ab7c9c3784
8011678: test/Makefile should pick up JT_HOME environment variable
twisti
parents:
15239
diff
changeset
|
165 |
ifndef JT_HOME |
f7ab7c9c3784
8011678: test/Makefile should pick up JT_HOME environment variable
twisti
parents:
15239
diff
changeset
|
166 |
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg |
f7ab7c9c3784
8011678: test/Makefile should pick up JT_HOME environment variable
twisti
parents:
15239
diff
changeset
|
167 |
endif |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
168 |
ifdef JPRT_JTREG_HOME |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
169 |
JT_HOME = $(JPRT_JTREG_HOME) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
170 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
171 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
172 |
# Expect JPRT to set TESTDIRS to the jtreg test dirs |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
173 |
JTREG_TESTDIRS = demo/jvmti/gctest demo/jvmti/hprof |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
174 |
ifdef TESTDIRS |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
175 |
JTREG_TESTDIRS = $(TESTDIRS) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
176 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
177 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
178 |
# Default JTREG to run (win32 script works for everybody) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
179 |
JTREG = $(JT_HOME)/win32/bin/jtreg |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
180 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
181 |
# Option to tell jtreg to not run tests marked with "ignore" |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
182 |
ifeq ($(PLATFORM), windows) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
183 |
JTREG_KEY_OPTION = -k:!ignore |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
184 |
else |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
185 |
JTREG_KEY_OPTION = -k:\!ignore |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
186 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
187 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
188 |
#EXTRA_JTREG_OPTIONS = |
1 | 189 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
190 |
jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
191 |
$(JTREG) -a -v:fail,error \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
192 |
$(JTREG_KEY_OPTION) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
193 |
$(EXTRA_JTREG_OPTIONS) \ |
15239
154bc4bda370
8004147: test/Makefile jtreg_tests target does not work with cygwin
mgerdin
parents:
12225
diff
changeset
|
194 |
-r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \ |
154bc4bda370
8004147: test/Makefile jtreg_tests target does not work with cygwin
mgerdin
parents:
12225
diff
changeset
|
195 |
-w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \ |
154bc4bda370
8004147: test/Makefile jtreg_tests target does not work with cygwin
mgerdin
parents:
12225
diff
changeset
|
196 |
-jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
197 |
$(JAVA_OPTIONS:%=-vmoption:%) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
198 |
$(JTREG_TESTDIRS) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
199 |
|| $(BUNDLE_UP_FAILED) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
200 |
$(BUNDLE_UP) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
201 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
202 |
PHONY_LIST += jtreg_tests |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
203 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
204 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
205 |
|
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
206 |
# clienttest (make sure various basic java client options work) |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
207 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
208 |
clienttest: prep $(PRODUCT_HOME) |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
209 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
210 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
211 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
212 |
$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
213 |
$(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
214 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
215 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
216 |
PHONY_LIST += clienttest |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
217 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
218 |
################################################################ |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
219 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
220 |
# servertest (make sure various basic java server options work) |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
221 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
222 |
servertest: prep $(PRODUCT_HOME) |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
223 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
224 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
225 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
226 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
227 |
PHONY_LIST += servertest |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
228 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
229 |
################################################################ |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
230 |
|
10994
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
231 |
# internalvmtests (run internal unit tests inside the VM) |
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
232 |
|
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
233 |
internalvmtests: prep $(PRODUCT_HOME) |
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
234 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -XX:+ExecuteInternalVMTests -version |
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
235 |
|
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
236 |
PHONY_LIST += internalvmtests |
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
237 |
|
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
238 |
################################################################ |
fc93bca9c720
7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents:
10565
diff
changeset
|
239 |
|
12095 | 240 |
# wbapitest (make sure the whitebox testing api classes work |
241 |
||
242 |
wbapitest: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG) |
|
243 |
$(JTREG) -a -v:fail,error \ |
|
244 |
$(JTREG_KEY_OPTION) \ |
|
245 |
$(EXTRA_JTREG_OPTIONS) \ |
|
12225 | 246 |
-r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \ |
247 |
-w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \ |
|
248 |
-jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ |
|
12095 | 249 |
$(JAVA_OPTIONS:%=-vmoption:%) \ |
12225 | 250 |
$(shell $(GETMIXEDPATH) "$(TEST_ROOT)")/sanity \ |
12095 | 251 |
|| $(BUNDLE_UP_FAILED) |
252 |
$(BUNDLE_UP) |
|
253 |
||
254 |
PHONY_LIST += wbapitest |
|
255 |
||
256 |
################################################################ |
|
257 |
||
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
258 |
# packtest |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
259 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
260 |
# Expect JPRT to set JPRT_PACKTEST_HOME. |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
261 |
PACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
262 |
ifdef JPRT_PACKTEST_HOME |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
263 |
PACKTEST_HOME = $(JPRT_PACKTEST_HOME) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
264 |
endif |
1 | 265 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
266 |
#EXTRA_PACKTEST_OPTIONS = |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
267 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
268 |
packtest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
269 |
( $(CD) $(PACKTEST_HOME) && \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
270 |
$(PACKTEST_HOME)/ptest \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
271 |
-t "$(PRODUCT_HOME)" \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
272 |
$(PACKTEST_STRESS_OPTION) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
273 |
$(EXTRA_PACKTEST_OPTIONS) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
274 |
-W $(ABS_TEST_OUTPUT_DIR) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
275 |
$(JAVA_OPTIONS:%=-J %) \ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
276 |
) || $(BUNDLE_UP_FAILED) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
277 |
$(BUNDLE_UP) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
278 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
279 |
packtest_stress: PACKTEST_STRESS_OPTION=-s |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
280 |
packtest_stress: packtest |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
281 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
282 |
PHONY_LIST += packtest packtest_stress |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
283 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
284 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
285 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
286 |
# Phony targets (e.g. these are not filenames) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
287 |
.PHONY: all clean prep $(PHONY_LIST) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
288 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
289 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
290 |