annotate test/Makefile @ 21113:0cf5897db25a

Better assertion message for NULL deference in graalJavaAccess
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 22 Apr 2015 16:42:05 -0700
parents 7848fc12602b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
2 # Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 781
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 781
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 781
diff changeset
21 # questions.
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
22 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 #
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
26 # Makefile to run various hotspot tests
0
a61af66fc99e Initial load
duke
parents:
diff changeset
27 #
a61af66fc99e Initial load
duke
parents:
diff changeset
28
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
29 GETMIXEDPATH=echo
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
30
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
31 # Utilities used
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
32 AWK = awk
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
33 CAT = cat
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
34 CD = cd
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
35 CHMOD = chmod
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
36 CP = cp
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
37 CUT = cut
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
38 DIRNAME = dirname
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
39 ECHO = echo
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
40 EGREP = egrep
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
41 EXPAND = expand
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
42 FIND = find
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
43 MKDIR = mkdir
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
44 PWD = pwd
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
45 SED = sed
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
46 SORT = sort
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
47 TEE = tee
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
48 UNAME = uname
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
49 UNIQ = uniq
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
50 WC = wc
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
51 ZIP = zip
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
52
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
53 # Get OS name from uname (Cygwin inexplicably adds _NT-5.1)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
54 UNAME_S := $(shell $(UNAME) -s | $(CUT) -f1 -d_)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
55 ifeq ($(UNAME_S), SunOS)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
56 PLATFORM = solaris
560
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
57 SLASH_JAVA = /java
0
a61af66fc99e Initial load
duke
parents:
diff changeset
58 ARCH = $(shell uname -p)
a61af66fc99e Initial load
duke
parents:
diff changeset
59 ifeq ($(ARCH), i386)
a61af66fc99e Initial load
duke
parents:
diff changeset
60 ARCH=i586
a61af66fc99e Initial load
duke
parents:
diff changeset
61 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
62 endif
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
63 ifeq ($(UNAME_S), Linux)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
64 PLATFORM = linux
560
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
65 SLASH_JAVA = /java
0
a61af66fc99e Initial load
duke
parents:
diff changeset
66 ARCH = $(shell uname -m)
a61af66fc99e Initial load
duke
parents:
diff changeset
67 ifeq ($(ARCH), i386)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
68 ARCH = i586
0
a61af66fc99e Initial load
duke
parents:
diff changeset
69 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
70 endif
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
71 ifeq ($(UNAME_S), Darwin)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
72 PLATFORM = bsd
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
73 SLASH_JAVA = /java
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
74 ARCH = $(shell uname -m)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
75 ifeq ($(ARCH), i386)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
76 ARCH = i586
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
77 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
78 endif
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
79 ifeq ($(findstring BSD,$(UNAME_S)), BSD)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
80 PLATFORM = bsd
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
81 SLASH_JAVA = /java
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
82 ARCH = $(shell uname -m)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
83 ifeq ($(ARCH), i386)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
84 ARCH = i586
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
85 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
86 endif
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
87 ifeq ($(PLATFORM),)
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
88 # detect whether we're running in MKS or cygwin
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
89 ifeq ($(UNAME_S), Windows_NT) # MKS
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
90 GETMIXEDPATH=dosname -s
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
91 endif
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
92 ifeq ($(findstring CYGWIN,$(UNAME_S)), CYGWIN)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
93 GETMIXEDPATH=cygpath -m
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
94 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
95 PLATFORM = windows
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
96 SLASH_JAVA = J:
0
a61af66fc99e Initial load
duke
parents:
diff changeset
97 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
98 ARCH = ia64
0
a61af66fc99e Initial load
duke
parents:
diff changeset
99 else
a61af66fc99e Initial load
duke
parents:
diff changeset
100 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
101 ARCH = x64
0
a61af66fc99e Initial load
duke
parents:
diff changeset
102 else
a61af66fc99e Initial load
duke
parents:
diff changeset
103 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
104 ARCH = x64
0
a61af66fc99e Initial load
duke
parents:
diff changeset
105 else
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
106 ARCH = i586
0
a61af66fc99e Initial load
duke
parents:
diff changeset
107 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
108 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
109 endif
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
110 EXESUFFIX = .exe
0
a61af66fc99e Initial load
duke
parents:
diff changeset
111 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
112
560
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
113 ifdef ALT_SLASH_JAVA
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
114 SLASH_JAVA = $(ALT_SLASH_JAVA)
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
115 endif
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
116
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
117 # Root of this test area (important to use full paths in some places)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
118 TEST_ROOT := $(shell pwd)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
119
a61af66fc99e Initial load
duke
parents:
diff changeset
120 # Root of all test results
1901
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
121 ifdef ALT_OUTPUTDIR
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
122 ABS_BUILD_ROOT = $(ALT_OUTPUTDIR)/$(PLATFORM)-$(ARCH)
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
123 else
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
124 ABS_BUILD_ROOT = $(TEST_ROOT)/../build/$(PLATFORM)-$(ARCH)
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
125 endif
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
126 ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput
0
a61af66fc99e Initial load
duke
parents:
diff changeset
127
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
128 # Expect JPRT to set PRODUCT_HOME (the product or jdk in this case to test)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
129 ifndef PRODUCT_HOME
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
130 # Try to use j2sdk-image if it exists
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
131 ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
132 PRODUCT_HOME := \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
133 $(shell \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
134 if [ -d $(ABS_JDK_IMAGE) ] ; then \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
135 $(ECHO) "$(ABS_JDK_IMAGE)"; \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
136 else \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
137 $(ECHO) "$(ABS_BUILD_ROOT)" ; \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
138 fi)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
139 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
140
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
141 # Expect JPRT to set JAVA_ARGS (e.g. -server etc.)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
142 JAVA_OPTIONS =
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
143 ifdef JAVA_ARGS
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
144 JAVA_OPTIONS = $(JAVA_ARGS)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
145 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
146
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
147 # Expect JPRT to set JPRT_ARCHIVE_BUNDLE (path to zip bundle for results)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
148 ARCHIVE_BUNDLE = $(ABS_TEST_OUTPUT_DIR)/ARCHIVE_BUNDLE.zip
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
149 ifdef JPRT_ARCHIVE_BUNDLE
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
150 ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
151 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
152
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
153 # How to create the test bundle (pass or fail, we want to create this)
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
154 # Follow command with ";$(BUNDLE_UP_AND_EXIT)", so it always gets executed.
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
155 ZIP_UP_RESULTS = ( $(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)` \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
156 && $(CD) $(ABS_TEST_OUTPUT_DIR) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
157 && $(CHMOD) -R a+r . \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
158 && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
159
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
160 # important results files
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
161 SUMMARY_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport/text/summary.txt")
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
162 STATS_TXT_NAME = Stats.txt
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
163 STATS_TXT = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/$(STATS_TXT_NAME)")
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
164 RUNLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/runlist.txt")
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
165 PASSLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/passlist.txt")
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
166 FAILLIST = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/faillist.txt")
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
167 EXITCODE = $(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/exitcode.txt")
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
168
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
169 TESTEXIT = \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
170 if [ ! -s $(EXITCODE) ] ; then \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
171 $(ECHO) "ERROR: EXITCODE file not filled in."; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
172 $(ECHO) "1" > $(EXITCODE); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
173 fi ; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
174 testExitCode=`$(CAT) $(EXITCODE)`; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
175 $(ECHO) "EXIT CODE: $${testExitCode}"; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
176 exit $${testExitCode}
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
177
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
178 BUNDLE_UP_AND_EXIT = \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
179 ( \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
180 jtregExitCode=$$? && \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
181 _summary="$(SUMMARY_TXT)"; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
182 $(RM) -f $(STATS_TXT) $(RUNLIST) $(PASSLIST) $(FAILLIST) $(EXITCODE); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
183 $(ECHO) "$${jtregExitCode}" > $(EXITCODE); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
184 if [ -r "$${_summary}" ] ; then \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
185 $(ECHO) "Summary: $(UNIQUE_DIR)" > $(STATS_TXT); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
186 $(EXPAND) $${_summary} | $(EGREP) -v ' Not run\.' > $(RUNLIST); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
187 $(EGREP) ' Passed\.' $(RUNLIST) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
188 | $(EGREP) -v ' Error\.' \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
189 | $(EGREP) -v ' Failed\.' > $(PASSLIST); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
190 ( $(EGREP) ' Failed\.' $(RUNLIST); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
191 $(EGREP) ' Error\.' $(RUNLIST); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
192 $(EGREP) -v ' Passed\.' $(RUNLIST) ) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
193 | $(SORT) | $(UNIQ) > $(FAILLIST); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
194 if [ $${jtregExitCode} != 0 -o -s $(FAILLIST) ] ; then \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
195 $(EXPAND) $(FAILLIST) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
196 | $(CUT) -d' ' -f1 \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
197 | $(SED) -e 's@^@FAILED: @' >> $(STATS_TXT); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
198 if [ $${jtregExitCode} = 0 ] ; then \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
199 jtregExitCode=1; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
200 fi; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
201 fi; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
202 runc="`$(CAT) $(RUNLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
203 passc="`$(CAT) $(PASSLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
204 failc="`$(CAT) $(FAILLIST) | $(WC) -l | $(AWK) '{print $$1;}'`"; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
205 exclc="FIXME CODETOOLS-7900176"; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
206 $(ECHO) "TEST STATS: name=$(UNIQUE_DIR) run=$${runc} pass=$${passc} fail=$${failc}" \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
207 >> $(STATS_TXT); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
208 else \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
209 $(ECHO) "Missing file: $${_summary}" >> $(STATS_TXT); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
210 fi; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
211 if [ -f $(STATS_TXT) ] ; then \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
212 $(CAT) $(STATS_TXT); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
213 fi; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
214 $(ZIP_UP_RESULTS) ; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
215 $(TESTEXIT) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
216 )
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
217
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
218 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
219
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
220 # Default make rule (runs jtreg_tests)
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
221 all: hotspot_all
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
222 @$(ECHO) "Testing completed successfully"
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
223
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
224 # Support "hotspot_" prefixed test make targets (too)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
225 # The hotspot_% targets are used by the top level Makefile
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
226 # Unless explicitly defined below, hotspot_<x> is interpreted as a jtreg test group name
20202
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 14223
diff changeset
227 hotspot_%:
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
228 $(ECHO) "Running tests: $@"
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
229 $(MAKE) -j 1 TEST_SELECTION=":$@" UNIQUE_DIR=$@ jtreg_tests;
20202
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 14223
diff changeset
230
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
231 # Prep for output
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
232 prep: clean
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
233 @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
234 @$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
0
a61af66fc99e Initial load
duke
parents:
diff changeset
235
a61af66fc99e Initial load
duke
parents:
diff changeset
236 # Cleanup
a61af66fc99e Initial load
duke
parents:
diff changeset
237 clean:
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
238 $(RM) -r $(ABS_TEST_OUTPUT_DIR)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
239 $(RM) $(ARCHIVE_BUNDLE)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
240
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
241 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
242
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
243 # jtreg tests
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
244
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
245 # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
9151
393fd4ef89c4 8011678: test/Makefile should pick up JT_HOME environment variable
twisti
parents: 7634
diff changeset
246 ifndef JT_HOME
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
247 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
248 ifdef JPRT_JTREG_HOME
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
249 JT_HOME = $(JPRT_JTREG_HOME)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
250 endif
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
251 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
252
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
253 # When called from JPRT the TESTDIRS variable is set to the jtreg tests to run
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
254 ifdef TESTDIRS
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
255 TEST_SELECTION = $(TESTDIRS)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
256 endif
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
257
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
258 ifdef CONCURRENCY
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
259 EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
260 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
261
20490
97ad90b2712c 8058936: hotspot/test/Makefile should use jtreg script from $JT_HOME/bin/jreg (instead of $JT_HOME/win32/bin/jtreg)
sla
parents: 20202
diff changeset
262 # Default JTREG to run
97ad90b2712c 8058936: hotspot/test/Makefile should use jtreg script from $JT_HOME/bin/jreg (instead of $JT_HOME/win32/bin/jtreg)
sla
parents: 20202
diff changeset
263 JTREG = $(JT_HOME)/bin/jtreg
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
264
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
265 # Only run automatic tests
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
266 JTREG_BASIC_OPTIONS += -a
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
267 # Report details on all failed or error tests, times too
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
268 JTREG_BASIC_OPTIONS += -v:fail,error,time
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
269 # Retain all files for failing tests
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
270 JTREG_BASIC_OPTIONS += -retain:fail,error
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
271 # Ignore tests are not run and completely silent about it
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
272 JTREG_IGNORE_OPTION = -ignore:quiet
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
273 JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
274 # Add any extra options
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
275 JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
276 # Set other vm and test options
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
277 JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_OPTIONS:%=-vmoption:%) $(JAVA_VM_ARGS:%=-vmoption:%)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
278
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
279 # Option to tell jtreg to not run tests marked with "ignore"
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
280 ifeq ($(PLATFORM), windows)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
281 JTREG_KEY_OPTION = -k:!ignore
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
282 else
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
283 JTREG_KEY_OPTION = -k:\!ignore
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
284 endif
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
285 JTREG_BASIC_OPTIONS += $(JTREG_KEY_OPTION)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
286
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
287 # Make sure jtreg exists
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
288 $(JTREG): $(JT_HOME)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
289
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
290 jtreg_tests: prep $(PRODUCT_HOME) $(JTREG)
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
291 ( \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
292 ( JT_HOME=$(shell $(GETMIXEDPATH) "$(JT_HOME)"); \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
293 export JT_HOME; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
294 $(shell $(GETMIXEDPATH) "$(JTREG)") \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
295 $(JTREG_BASIC_OPTIONS) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
296 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTreport") \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
297 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)/JTwork") \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
298 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
299 $(JTREG_EXCLUSIONS) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
300 $(JTREG_TEST_OPTIONS) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
301 $(TEST_SELECTION) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
302 ) ; \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
303 $(BUNDLE_UP_AND_EXIT) \
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
304 ) 2>&1 | $(TEE) $(ABS_TEST_OUTPUT_DIR)/output.txt ; $(TESTEXIT)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
305
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
306 PHONY_LIST += jtreg_tests
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
307
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
308 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
309
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
310 # clienttest (make sure various basic java client options work)
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
311
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
312 hotspot_clienttest clienttest: prep $(PRODUCT_HOME)
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
313 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
314 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
315 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
316 $(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
317 $(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
318 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
319
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
320 PHONY_LIST += hotspot_clienttest clienttest
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
321
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
322 ################################################################
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
323
20557
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
324 # minimaltest (make sure various basic java minimal options work)
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
325
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
326 hotspot_minimaltest minimaltest: prep $(PRODUCT_HOME)
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
327 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
328 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
329 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
330
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
331 PHONY_LIST += hotspot_minimaltest minimaltest
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
332
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
333 ################################################################
a477f1af1bac 8058919: Add sanity test for minimal VM in test/Makefile
dholmes
parents: 20556
diff changeset
334
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
335 # servertest (make sure various basic java server options work)
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
336
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
337 hotspot_servertest servertest: prep $(PRODUCT_HOME)
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
338 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
339 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
340 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
341
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
342 PHONY_LIST += hotspot_servertest servertest
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
343
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
344 ################################################################
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
345
4070
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
346 # internalvmtests (run internal unit tests inside the VM)
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
347
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
348 hotspot_internalvmtests internalvmtests: prep $(PRODUCT_HOME)
4070
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
349 $(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -XX:+ExecuteInternalVMTests -version
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
350
20556
8585e75970c7 8049071: Add jtreg jobs to JPRT for hotspot
mikael
parents: 20490
diff changeset
351 PHONY_LIST += hotspot_internalvmtests internalvmtests
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
352
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
353 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
354
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
355 # Phony targets (e.g. these are not filenames)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
356 .PHONY: all clean prep $(PHONY_LIST)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
357
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
358 ################################################################