author | sla |
Mon, 24 Oct 2016 09:05:13 +0200 | |
changeset 42045 | b2f2a5b257f1 |
parent 41720 | 93c64aa0b62f |
child 42633 | 0c23e9d8fccf |
child 42144 | 01015af8278d |
permissions | -rw-r--r-- |
1 | 1 |
# |
40346
7a3fd6016780
8162670: make of jtreg_tests fails if no tests are run, causing jprt test runs to also fail
cjplummer
parents:
38317
diff
changeset
|
2 |
# Copyright (c) 1995, 2016, 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 |
# |
|
25628 | 26 |
# Makefile to run various hotspot tests |
1 | 27 |
# |
28 |
||
27695 | 29 |
ALT_MAKE ?= closed |
30 |
||
12225 | 31 |
GETMIXEDPATH=echo |
32 |
||
25628 | 33 |
# Utilities used |
34 |
AWK = awk |
|
35 |
CAT = cat |
|
36 |
CD = cd |
|
37 |
CHMOD = chmod |
|
38 |
CP = cp |
|
39 |
CUT = cut |
|
40 |
DIRNAME = dirname |
|
41 |
ECHO = echo |
|
42 |
EGREP = egrep |
|
43 |
EXPAND = expand |
|
44 |
FIND = find |
|
45 |
MKDIR = mkdir |
|
46 |
PWD = pwd |
|
47 |
SED = sed |
|
48 |
SORT = sort |
|
49 |
TEE = tee |
|
50 |
UNAME = uname |
|
51 |
UNIQ = uniq |
|
52 |
WC = wc |
|
53 |
ZIP = zip |
|
54 |
||
38255
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
55 |
define NEWLINE |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
56 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
57 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
58 |
endef |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
59 |
|
25628 | 60 |
# Get OS name from uname (Cygwin inexplicably adds _NT-5.1) |
61 |
UNAME_S := $(shell $(UNAME) -s | $(CUT) -f1 -d_) |
|
62 |
ifeq ($(UNAME_S), SunOS) |
|
1 | 63 |
PLATFORM = solaris |
2024
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
64 |
SLASH_JAVA = /java |
1 | 65 |
ARCH = $(shell uname -p) |
66 |
ifeq ($(ARCH), i386) |
|
67 |
ARCH=i586 |
|
68 |
endif |
|
41720
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
69 |
NUM_CORES := $(shell LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line) |
1 | 70 |
endif |
25628 | 71 |
ifeq ($(UNAME_S), Linux) |
1 | 72 |
PLATFORM = linux |
2024
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
73 |
SLASH_JAVA = /java |
1 | 74 |
ARCH = $(shell uname -m) |
75 |
ifeq ($(ARCH), i386) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
76 |
ARCH = i586 |
1 | 77 |
endif |
41720
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
78 |
NUM_CORES := $(shell cat /proc/cpuinfo | grep -c processor) |
1 | 79 |
endif |
25628 | 80 |
ifeq ($(UNAME_S), Darwin) |
10565 | 81 |
PLATFORM = bsd |
82 |
SLASH_JAVA = /java |
|
83 |
ARCH = $(shell uname -m) |
|
84 |
ifeq ($(ARCH), i386) |
|
85 |
ARCH = i586 |
|
86 |
endif |
|
41720
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
87 |
NUM_CORES := $(shell /usr/sbin/sysctl -n hw.ncpu) |
10565 | 88 |
endif |
25628 | 89 |
ifeq ($(findstring BSD,$(UNAME_S)), BSD) |
10565 | 90 |
PLATFORM = bsd |
91 |
SLASH_JAVA = /java |
|
92 |
ARCH = $(shell uname -m) |
|
93 |
ifeq ($(ARCH), i386) |
|
94 |
ARCH = i586 |
|
95 |
endif |
|
96 |
endif |
|
12225 | 97 |
ifeq ($(PLATFORM),) |
25628 | 98 |
# detect whether we're running in MKS or cygwin |
99 |
ifeq ($(UNAME_S), Windows_NT) # MKS |
|
12225 | 100 |
GETMIXEDPATH=dosname -s |
101 |
endif |
|
25628 | 102 |
ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN) |
103 |
GETMIXEDPATH=cygpath -m |
|
12225 | 104 |
endif |
1 | 105 |
PLATFORM = windows |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
106 |
SLASH_JAVA = J: |
1 | 107 |
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64) |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
108 |
ARCH = ia64 |
1 | 109 |
else |
110 |
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
111 |
ARCH = x64 |
1 | 112 |
else |
113 |
ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
114 |
ARCH = x64 |
1 | 115 |
else |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
116 |
ARCH = i586 |
1 | 117 |
endif |
118 |
endif |
|
119 |
endif |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
120 |
EXESUFFIX = .exe |
41720
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
121 |
ifneq ($(NUMBER_OF_PROCESSORS), ) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
122 |
NUM_CORES := $(NUMBER_OF_PROCESSORS) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
123 |
else |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
124 |
ifneq ($(HOTSPOT_BUILD_JOBS), ) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
125 |
NUM_CORES := $(HOTSPOT_BUILD_JOBS) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
126 |
endif |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
127 |
endif |
1 | 128 |
endif |
129 |
||
2024
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
130 |
ifdef ALT_SLASH_JAVA |
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
131 |
SLASH_JAVA = $(ALT_SLASH_JAVA) |
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
132 |
endif |
859d11cea3f8
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
1132
diff
changeset
|
133 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
134 |
# 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
|
135 |
TEST_ROOT := $(shell pwd) |
1 | 136 |
|
137 |
# Root of all test results |
|
37869 | 138 |
ifdef TEST_OUTPUT_DIR |
139 |
$(shell $(MKDIR) -p $(TEST_OUTPUT_DIR)/jtreg) |
|
140 |
ABS_TEST_OUTPUT_DIR := \ |
|
141 |
$(shell $(CD) $(TEST_OUTPUT_DIR)/jtreg && $(PWD)) |
|
7102
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
142 |
else |
37869 | 143 |
ifdef ALT_OUTPUTDIR |
144 |
ABS_OUTPUTDIR = $(shell $(CD) $(ALT_OUTPUTDIR) && $(PWD)) |
|
145 |
else |
|
146 |
ABS_OUTPUTDIR = $(shell $(CD) $(TEST_ROOT)/.. && $(PWD)) |
|
147 |
endif |
|
148 |
||
149 |
ABS_PLATFORM_BUILD_ROOT = $(ABS_OUTPUTDIR) |
|
150 |
ABS_TEST_OUTPUT_DIR := $(ABS_PLATFORM_BUILD_ROOT)/testoutput/$(UNIQUE_DIR) |
|
7102
a20be5bfcbee
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
5547
diff
changeset
|
151 |
endif |
1 | 152 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
153 |
# 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
|
154 |
ifndef PRODUCT_HOME |
37869 | 155 |
# Try to use images/jdk if it exists |
156 |
ABS_JDK_IMAGE = $(ABS_PLATFORM_BUILD_ROOT)/images/jdk |
|
157 |
PRODUCT_HOME := \ |
|
158 |
$(shell \ |
|
159 |
if [ -d $(ABS_JDK_IMAGE) ] ; then \ |
|
160 |
$(ECHO) "$(ABS_JDK_IMAGE)"; \ |
|
161 |
else \ |
|
162 |
$(ECHO) "$(ABS_PLATFORM_BUILD_ROOT)"; \ |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
163 |
fi) |
37869 | 164 |
PRODUCT_HOME := $(PRODUCT_HOME) |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
165 |
endif |
1 | 166 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
167 |
# Expect JPRT to set JAVA_ARGS (e.g. -server etc.) |
29179
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
168 |
JAVA_OPTIONS = |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
169 |
ifdef JAVA_ARGS |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
170 |
JAVA_OPTIONS = $(JAVA_ARGS) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
171 |
endif |
1 | 172 |
|
29179
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
173 |
# jtreg -nativepath <dir> |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
174 |
# |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
175 |
# Local make tests will be TEST_IMAGE_DIR and JPRT with jprt.use.reg.test.bundle=true |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
176 |
# should be JPRT_TESTNATIVE_PATH |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
177 |
ifdef TEST_IMAGE_DIR |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
178 |
TESTNATIVE_DIR = $(TEST_IMAGE_DIR) |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
179 |
else ifdef JPRT_TESTNATIVE_PATH |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
180 |
TESTNATIVE_DIR = $(JPRT_TESTNATIVE_PATH) |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
181 |
endif |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
182 |
ifdef TESTNATIVE_DIR |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
183 |
JTREG_NATIVE_PATH = -nativepath:$(shell $(GETMIXEDPATH) "$(TESTNATIVE_DIR)/hotspot/jtreg/native") |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
184 |
endif |
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
185 |
|
37299
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
186 |
# jtreg failure handler config |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
187 |
ifeq ($(FAILURE_HANDLER_DIR), ) |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
188 |
ifneq ($(TESTNATIVE_DIR), ) |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
189 |
FAILURE_HANDLER_DIR := $(TESTNATIVE_DIR)/failure_handler |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
190 |
endif |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
191 |
endif |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
192 |
ifneq ($(FAILURE_HANDLER_DIR), ) |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
193 |
FAILURE_HANDLER_DIR_MIXED := $(shell $(GETMIXEDPATH) "$(FAILURE_HANDLER_DIR)") |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
194 |
JTREG_FAILURE_HANDLER_OPTIONS := \ |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
195 |
-timeoutHandlerDir:$(FAILURE_HANDLER_DIR_MIXED)/jtregFailureHandler.jar \ |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
196 |
-observerDir:$(FAILURE_HANDLER_DIR_MIXED)/jtregFailureHandler.jar \ |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
197 |
-timeoutHandler:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \ |
42045 | 198 |
-observer:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \ |
199 |
-timeoutHandlerTimeout:0 |
|
37299
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
200 |
ifeq ($(PLATFORM), windows) |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
201 |
JTREG_FAILURE_HANDLER_OPTIONS += -J-Djava.library.path="$(FAILURE_HANDLER_DIR_MIXED)" |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
202 |
endif |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
203 |
endif |
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
204 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
205 |
# 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
|
206 |
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
|
207 |
ifdef JPRT_ARCHIVE_BUNDLE |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
208 |
ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
209 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
210 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
211 |
# How to create the test bundle (pass or fail, we want to create this) |
25628 | 212 |
# Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed. |
213 |
ZIP_UP_RESULTS = ( $(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` \ |
|
214 |
&& $(CD) $(ABS_TEST_OUTPUT_DIR) \ |
|
215 |
&& $(CHMOD) -R a+r . \ |
|
216 |
&& $(ZIP) -q -r $(ARCHIVE_BUNDLE) . ) |
|
217 |
||
218 |
# important results files |
|
219 |
SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport/text/summary.txt") |
|
220 |
STATS_TXT_NAME = Stats.txt |
|
221 |
STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/$(STATS_TXT_NAME)") |
|
222 |
RUNLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/runlist.txt") |
|
223 |
PASSLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/passlist.txt") |
|
224 |
FAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/faillist.txt") |
|
225 |
EXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/exitcode.txt") |
|
226 |
||
227 |
TESTEXIT = \ |
|
228 |
if [ ! -s $(EXITCODE) ] ; then \ |
|
229 |
$(ECHO) "ERROR: EXITCODE file not filled in."; \ |
|
230 |
$(ECHO) "1" > $(EXITCODE); \ |
|
231 |
fi ; \ |
|
232 |
testExitCode=`$(CAT) $(EXITCODE)`; \ |
|
233 |
$(ECHO) "EXIT CODE: $${testExitCode}"; \ |
|
234 |
exit $${testExitCode} |
|
235 |
||
236 |
BUNDLE_UP_AND_EXIT = \ |
|
237 |
( \ |
|
238 |
jtregExitCode=$$? && \ |
|
239 |
_summary="$(SUMMARY_TXT)"; \ |
|
40346
7a3fd6016780
8162670: make of jtreg_tests fails if no tests are run, causing jprt test runs to also fail
cjplummer
parents:
38317
diff
changeset
|
240 |
if [ $${jtregExitCode} = 1 ] ; then \ |
7a3fd6016780
8162670: make of jtreg_tests fails if no tests are run, causing jprt test runs to also fail
cjplummer
parents:
38317
diff
changeset
|
241 |
jtregExitCode=0; \ |
7a3fd6016780
8162670: make of jtreg_tests fails if no tests are run, causing jprt test runs to also fail
cjplummer
parents:
38317
diff
changeset
|
242 |
fi; \ |
25628 | 243 |
$(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \ |
244 |
$(ECHO) "$${jtregExitCode}" > $(EXITCODE); \ |
|
245 |
if [ -r "$${_summary}" ] ; then \ |
|
246 |
$(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \ |
|
247 |
$(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \ |
|
248 |
$(EGREP) ' Passed\.' $(RUNLIST) \ |
|
249 |
| $(EGREP) -v ' Error\.' \ |
|
250 |
| $(EGREP) -v ' Failed\.' > $(PASSLIST); \ |
|
251 |
( $(EGREP) ' Failed\.' $(RUNLIST); \ |
|
252 |
$(EGREP) ' Error\.' $(RUNLIST); \ |
|
253 |
$(EGREP) -v ' Passed\.' $(RUNLIST) ) \ |
|
254 |
| $(SORT) | $(UNIQ) > $(FAILLIST); \ |
|
255 |
if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \ |
|
256 |
$(EXPAND) $(FAILLIST) \ |
|
257 |
| $(CUT) -d' ' -f1 \ |
|
258 |
| $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \ |
|
259 |
if [ $${jtregExitCode} = 0 ] ; then \ |
|
260 |
jtregExitCode=1; \ |
|
261 |
fi; \ |
|
262 |
fi; \ |
|
263 |
runc="`$(CAT) $(RUNLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
|
264 |
passc="`$(CAT) $(PASSLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
|
265 |
failc="`$(CAT) $(FAILLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \ |
|
266 |
exclc="FIXME CODETOOLS-7900176"; \ |
|
267 |
$(ECHO) "TEST STATS: name=$(UNIQUE_DIR) run=$${runc} pass=$${passc} fail=$${failc}" \ |
|
268 |
>> $(STATS_TXT); \ |
|
269 |
else \ |
|
270 |
$(ECHO) "Missing file: $${_summary}" >> $(STATS_TXT); \ |
|
271 |
fi; \ |
|
272 |
if [ -f $(STATS_TXT) ] ; then \ |
|
273 |
$(CAT) $(STATS_TXT); \ |
|
274 |
fi; \ |
|
275 |
$(ZIP_UP_RESULTS) ; \ |
|
276 |
$(TESTEXIT) \ |
|
277 |
) |
|
1132
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 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
280 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
281 |
# Default make rule (runs jtreg_tests) |
25628 | 282 |
all: hotspot_all |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
283 |
@$(ECHO) "Testing completed successfully" |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
284 |
|
25628 | 285 |
# Support "hotspot_" prefixed test make targets (too) |
286 |
# The hotspot_% targets are used by the top level Makefile |
|
287 |
# Unless explicitly defined below, hotspot_<x> is interpreted as a jtreg test group name |
|
24433
492c1fb41098
8042804: Support invoking Hotspot tests from top level
mikael
parents:
22234
diff
changeset
|
288 |
hotspot_%: |
25628 | 289 |
$(ECHO) "Running tests: $@" |
290 |
$(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests; |
|
24433
492c1fb41098
8042804: Support invoking Hotspot tests from top level
mikael
parents:
22234
diff
changeset
|
291 |
|
33588
13edf132ffa0
8139256: Add Makefile target to run internal VM tests
ehelin
parents:
30595
diff
changeset
|
292 |
hotspot_internal: |
13edf132ffa0
8139256: Add Makefile target to run internal VM tests
ehelin
parents:
30595
diff
changeset
|
293 |
$(ALT_OUTPUTDIR)/jdk/bin/java -XX:+ExecuteInternalVMTests -XX:+ShowMessageBoxOnError -version |
13edf132ffa0
8139256: Add Makefile target to run internal VM tests
ehelin
parents:
30595
diff
changeset
|
294 |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
295 |
# Prep for output |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
296 |
prep: clean |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
297 |
@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
298 |
@$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` |
1 | 299 |
|
300 |
# Cleanup |
|
301 |
clean: |
|
35505
2babb060aaf2
8146871: Make the clean target silent in hotspot/test/Makefile
ehelin
parents:
33588
diff
changeset
|
302 |
@$(RM) -r $(ABS_TEST_OUTPUT_DIR) |
2babb060aaf2
8146871: Make the clean target silent in hotspot/test/Makefile
ehelin
parents:
33588
diff
changeset
|
303 |
@$(RM) $(ARCHIVE_BUNDLE) |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
304 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
305 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
306 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
307 |
# jtreg tests |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
308 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
309 |
# 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
|
310 |
ifndef JT_HOME |
25628 | 311 |
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg |
312 |
ifdef JPRT_JTREG_HOME |
|
313 |
JT_HOME = $(JPRT_JTREG_HOME) |
|
314 |
endif |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
315 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
316 |
|
25628 | 317 |
# When called from JPRT the TESTDIRS variable is set to the jtreg tests to run |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
318 |
ifdef TESTDIRS |
25628 | 319 |
TEST_SELECTION = $(TESTDIRS) |
320 |
endif |
|
321 |
||
41720
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
322 |
# Concurrency based on min(cores / 2, 12) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
323 |
ifdef NUM_CORES |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
324 |
CONCURRENCY := $(shell expr $(NUM_CORES) / 2) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
325 |
ifeq ($(CONCURRENCY), 0) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
326 |
CONCURRENCY := 1 |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
327 |
else ifeq ($(shell expr $(CONCURRENCY) \> 12), 1) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
328 |
CONCURRENCY := 12 |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
329 |
endif |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
330 |
else |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
331 |
CONCURRENCY := 1 |
38317
afc9c8149b19
8157605: Can't set both CONCURRENCY and EXTRA_JTREG_OPTIONS when running tests
sla
parents:
38303
diff
changeset
|
332 |
endif |
41720
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
333 |
JTREG_BASIC_OPTIONS += -concurrency:$(CONCURRENCY) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
334 |
|
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
335 |
# Make sure MaxRAMFraction is high enough to not cause OOM or swapping since we may end up with a lot of JVM's |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
336 |
JTREG_BASIC_OPTIONS += -vmoption:-XX:MaxRAMFraction=$(shell expr $(CONCURRENCY) \* 4) |
93c64aa0b62f
8166738: Enable concurrency in Hotspot jtreg testing
ctornqvi
parents:
40346
diff
changeset
|
337 |
|
38317
afc9c8149b19
8157605: Can't set both CONCURRENCY and EXTRA_JTREG_OPTIONS when running tests
sla
parents:
38303
diff
changeset
|
338 |
ifdef EXTRA_JTREG_OPTIONS |
afc9c8149b19
8157605: Can't set both CONCURRENCY and EXTRA_JTREG_OPTIONS when running tests
sla
parents:
38303
diff
changeset
|
339 |
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
340 |
endif |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
341 |
|
26922
8134a6d3fc02
8058936: hotspot/test/Makefile should use jtreg script from $JT_HOME/bin/jreg (instead of $JT_HOME/win32/bin/jtreg)
sla
parents:
26921
diff
changeset
|
342 |
# Default JTREG to run |
8134a6d3fc02
8058936: hotspot/test/Makefile should use jtreg script from $JT_HOME/bin/jreg (instead of $JT_HOME/win32/bin/jtreg)
sla
parents:
26921
diff
changeset
|
343 |
JTREG = $(JT_HOME)/bin/jtreg |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
344 |
|
30249
faf83ebbf040
8077608: [TESTBUG] Enable Hotspot jtreg tests to run in agentvm mode
ctornqvi
parents:
29179
diff
changeset
|
345 |
# Use agent mode |
faf83ebbf040
8077608: [TESTBUG] Enable Hotspot jtreg tests to run in agentvm mode
ctornqvi
parents:
29179
diff
changeset
|
346 |
JTREG_BASIC_OPTIONS += -agentvm |
25628 | 347 |
# Only run automatic tests |
348 |
JTREG_BASIC_OPTIONS += -a |
|
349 |
# Report details on all failed or error tests, times too |
|
350 |
JTREG_BASIC_OPTIONS += -v:fail,error,time |
|
351 |
# Retain all files for failing tests |
|
29075
ad5e1490d635
8073167: Undo change to -retain argument in hotspot/test/Makefile
cjplummer
parents:
29071
diff
changeset
|
352 |
JTREG_BASIC_OPTIONS += -retain:fail,error |
25628 | 353 |
# Ignore tests are not run and completely silent about it |
354 |
JTREG_IGNORE_OPTION = -ignore:quiet |
|
355 |
JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION) |
|
28021
e19f567fcac2
8066508: JTReg tests timeout on slow devices when run using JPRT
cjplummer
parents:
26922
diff
changeset
|
356 |
# Multiply by 4 the timeout factor |
e19f567fcac2
8066508: JTReg tests timeout on slow devices when run using JPRT
cjplummer
parents:
26922
diff
changeset
|
357 |
JTREG_TIMEOUT_OPTION = -timeoutFactor:4 |
e19f567fcac2
8066508: JTReg tests timeout on slow devices when run using JPRT
cjplummer
parents:
26922
diff
changeset
|
358 |
JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION) |
25628 | 359 |
# Set other vm and test options |
360 |
JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%) |
|
361 |
||
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
362 |
# 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
|
363 |
ifeq ($(PLATFORM), windows) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
364 |
JTREG_KEY_OPTION = -k:!ignore |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
365 |
else |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
366 |
JTREG_KEY_OPTION = -k:\!ignore |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
367 |
endif |
25628 | 368 |
JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION) |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
369 |
|
30569
28d0b4c56125
8074016: Add convenient way of adding custom test targets to hotspot's test makefile
iaberg
parents:
30560
diff
changeset
|
370 |
-include $(ALT_MAKE)/Makefile |
28d0b4c56125
8074016: Add convenient way of adding custom test targets to hotspot's test makefile
iaberg
parents:
30560
diff
changeset
|
371 |
|
25628 | 372 |
# Make sure jtreg exists |
373 |
$(JTREG): $(JT_HOME) |
|
1 | 374 |
|
25628 | 375 |
jtreg_tests: prep $(PRODUCT_HOME) $(JTREG) |
376 |
( \ |
|
377 |
( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \ |
|
378 |
export JT_HOME; \ |
|
379 |
$(shell $(GETMIXEDPATH) "$(JTREG)") \ |
|
380 |
$(JTREG_BASIC_OPTIONS) \ |
|
381 |
-r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport") \ |
|
382 |
-w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTwork") \ |
|
383 |
-jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \ |
|
29179
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
384 |
$(JTREG_NATIVE_PATH) \ |
37299
db3b0d4c3bda
8149777: Enable enhanced failure handler for "make test"
erikj
parents:
35526
diff
changeset
|
385 |
$(JTREG_FAILURE_HANDLER_OPTIONS) \ |
25628 | 386 |
$(JTREG_EXCLUSIONS) \ |
387 |
$(JTREG_TEST_OPTIONS) \ |
|
388 |
$(TEST_SELECTION) \ |
|
389 |
) ; \ |
|
390 |
$(BUNDLE_UP_AND_EXIT) \ |
|
391 |
) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT) |
|
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
392 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
393 |
PHONY_LIST += jtreg_tests |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
394 |
|
27695 | 395 |
# flags used to execute java in test targets |
29179
8836e3bd543b
8072842: Add support for building native JTReg tests
ihse
parents:
29075
diff
changeset
|
396 |
TEST_FLAGS += -version -Xinternalversion -X -help |
27695 | 397 |
|
398 |
sanitytest: prep $(PRODUCT_HOME) |
|
399 |
@for flag in $(TEST_FLAGS); \ |
|
400 |
do \ |
|
401 |
echo Executing java $(JAVA_OPTIONS) $$flag; \ |
|
402 |
$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) $$flag; \ |
|
403 |
res=$$?; \ |
|
404 |
if [ $$res -ne 0 ]; then \ |
|
405 |
exit $$res; \ |
|
406 |
fi; \ |
|
407 |
done |
|
408 |
||
409 |
PHONY_LIST += sanitytest |
|
410 |
||
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
411 |
################################################################ |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
412 |
|
30267 | 413 |
# basicvmtest (make sure various basic java options work) |
414 |
||
415 |
# Set up the directory in which the jvm directories live (client/, server/, etc.) |
|
416 |
ifeq ($(PLATFORM),windows) |
|
417 |
JVMS_DIR := $(PRODUCT_HOME)/bin |
|
418 |
else ifeq ($(PLATFORM),bsd) |
|
419 |
JVMS_DIR := $(PRODUCT_HOME)/lib |
|
420 |
else |
|
421 |
# The jvms live in the architecture directory (amd64, sparcv9, |
|
422 |
# etc.). By using a wildcard there's no need to figure out the exact |
|
423 |
# name of that directory. |
|
424 |
JVMS_DIR := $(PRODUCT_HOME)/lib/* |
|
425 |
endif |
|
426 |
||
427 |
# Use the existance of a directory as a sign that jvm variant is available |
|
428 |
CANDIDATE_JVM_VARIANTS := client minimal server |
|
429 |
JVM_VARIANTS := $(strip $(foreach x,$(CANDIDATE_JVM_VARIANTS),$(if $(wildcard $(JVMS_DIR)/$(x)),$(x)))) |
|
430 |
||
431 |
hotspot_basicvmtest: |
|
432 |
for variant in $(JVM_VARIANTS); \ |
|
433 |
do \ |
|
434 |
$(MAKE) JAVA_ARGS="$(JAVA_ARGS) -$$variant" hotspot_$${variant}test; \ |
|
30594
e1b420c520a0
8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents:
30280
diff
changeset
|
435 |
res=$$?; \ |
e1b420c520a0
8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents:
30280
diff
changeset
|
436 |
if [ $$res -ne 0 ]; then \ |
e1b420c520a0
8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents:
30280
diff
changeset
|
437 |
exit $$res; \ |
e1b420c520a0
8079545: [TESTBUG] hotspot_basicvmtest doesn't fail even if VM crashes
mikael
parents:
30280
diff
changeset
|
438 |
fi; \ |
30267 | 439 |
done |
440 |
||
441 |
PHONY_LIST += hotspot_basicvmtest |
|
442 |
||
443 |
################################################################ |
|
444 |
||
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
445 |
# 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
|
446 |
|
27695 | 447 |
hotspot_clienttest clienttest: sanitytest |
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
448 |
$(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
|
449 |
$(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
|
450 |
$(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
|
451 |
|
25628 | 452 |
PHONY_LIST += hotspot_clienttest clienttest |
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
453 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
454 |
################################################################ |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
455 |
|
26921
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
456 |
# minimaltest (make sure various basic java minimal options work) |
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
457 |
|
27695 | 458 |
hotspot_minimaltest minimaltest: sanitytest |
26921
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
459 |
|
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
460 |
PHONY_LIST += hotspot_minimaltest minimaltest |
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
461 |
|
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
462 |
################################################################ |
de18c35bc62d
8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents:
25628
diff
changeset
|
463 |
|
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
464 |
# 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
|
465 |
|
27695 | 466 |
hotspot_servertest servertest: sanitytest |
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
467 |
|
25628 | 468 |
PHONY_LIST += hotspot_servertest servertest |
2868
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
469 |
|
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
470 |
################################################################ |
051eb4af737f
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
2105
diff
changeset
|
471 |
|
38255
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
472 |
# Run the native gtest tests from the test image |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
473 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
474 |
hotspot_gtest: |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
475 |
$(foreach v, $(JVM_VARIANTS), \ |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
476 |
$(MAKE) hotspot_gtest$v $(NEWLINE) ) |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
477 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
478 |
hotspot_gtestserver hotspot_gtestclient hotspot_gtestminimal: hotspot_gtest%: |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
479 |
$(TESTNATIVE_DIR)/hotspot/gtest/$*/gtestLauncher \ |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
480 |
-jdk $(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
481 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
482 |
PHONY_LIST += hotspot_gtest hotspot_gtestserver hotspot_gtestclient \ |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
483 |
hotspot_gtestminimal |
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
484 |
|
5784bccf53b0
8148244: Finalize and integrate GTest implementation
iignatyev
parents:
37299
diff
changeset
|
485 |
################################################################ |
1132
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
486 |
# Phony targets (e.g. these are not filenames) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
487 |
.PHONY: all clean prep $(PHONY_LIST) |
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
488 |
|
915051915ce9
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
1
diff
changeset
|
489 |
################################################################ |