annotate test/Makefile @ 20338:8d5f66b42c53

8055525: Bigapp weblogic+medrec fails to startup after JDK-8038423 Summary: If large pages are enabled and configured in Linux, the VM always pre-commits the entire space. The VM fails verification of the commit of the initial heap because some internal data structure marked all memory pages of the heap as committed during initialization. This makes the code think that we attempted a double-commit during first allocation of the heap. Remove the initial marking of memory pages of the heap to committed. Reviewed-by: mgerdin
author tschatzl
date Wed, 20 Aug 2014 14:34:40 +0200
parents 637e659fb097
children 97ad90b2712c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
17467
55fb97c4c58d 8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents: 12055
diff changeset
2 # Copyright (c) 1995, 2013, 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 #
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
26 # Makefile to run various jdk 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
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
31 # Get OS/ARCH specifics
0
a61af66fc99e Initial load
duke
parents:
diff changeset
32 OSNAME = $(shell uname -s)
a61af66fc99e Initial load
duke
parents:
diff changeset
33 ifeq ($(OSNAME), SunOS)
a61af66fc99e Initial load
duke
parents:
diff changeset
34 PLATFORM = solaris
560
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
35 SLASH_JAVA = /java
0
a61af66fc99e Initial load
duke
parents:
diff changeset
36 ARCH = $(shell uname -p)
a61af66fc99e Initial load
duke
parents:
diff changeset
37 ifeq ($(ARCH), i386)
a61af66fc99e Initial load
duke
parents:
diff changeset
38 ARCH=i586
a61af66fc99e Initial load
duke
parents:
diff changeset
39 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
40 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
41 ifeq ($(OSNAME), Linux)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 PLATFORM = linux
560
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
43 SLASH_JAVA = /java
0
a61af66fc99e Initial load
duke
parents:
diff changeset
44 ARCH = $(shell uname -m)
a61af66fc99e Initial load
duke
parents:
diff changeset
45 ifeq ($(ARCH), i386)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
46 ARCH = i586
0
a61af66fc99e Initial load
duke
parents:
diff changeset
47 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
48 endif
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
49 ifeq ($(OSNAME), Darwin)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
50 PLATFORM = bsd
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
51 SLASH_JAVA = /java
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
52 ARCH = $(shell uname -m)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
53 ifeq ($(ARCH), i386)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
54 ARCH = i586
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
55 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
56 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
57 ifeq ($(findstring BSD,$(OSNAME)), BSD)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
58 PLATFORM = bsd
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
59 SLASH_JAVA = /java
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
60 ARCH = $(shell uname -m)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
61 ifeq ($(ARCH), i386)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
62 ARCH = i586
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
63 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 2042
diff changeset
64 endif
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
65 ifeq ($(PLATFORM),)
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
66 # detect wether we're running in MKS or cygwin
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
67 ifeq ($(OSNAME), Windows_NT) # MKS
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
68 GETMIXEDPATH=dosname -s
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
69 endif
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
70 ifeq ($(findstring CYGWIN,$(OSNAME)), CYGWIN)
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
71 GETMIXEDPATH=cygpath -m -s
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
72 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
73 PLATFORM = windows
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
74 SLASH_JAVA = J:
0
a61af66fc99e Initial load
duke
parents:
diff changeset
75 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
76 ARCH = ia64
0
a61af66fc99e Initial load
duke
parents:
diff changeset
77 else
a61af66fc99e Initial load
duke
parents:
diff changeset
78 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
79 ARCH = x64
0
a61af66fc99e Initial load
duke
parents:
diff changeset
80 else
a61af66fc99e Initial load
duke
parents:
diff changeset
81 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T)
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
82 ARCH = x64
0
a61af66fc99e Initial load
duke
parents:
diff changeset
83 else
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
84 ARCH = i586
0
a61af66fc99e Initial load
duke
parents:
diff changeset
85 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
86 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
87 endif
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
88 EXESUFFIX = .exe
0
a61af66fc99e Initial load
duke
parents:
diff changeset
89 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
90
560
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
91 ifdef ALT_SLASH_JAVA
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
92 SLASH_JAVA = $(ALT_SLASH_JAVA)
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
93 endif
b79faa366fbd 6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents: 328
diff changeset
94
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
95 # Utilities used
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
96 CD = cd
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
97 CP = cp
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
98 ECHO = echo
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
99 MKDIR = mkdir
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
100 ZIP = zip
0
a61af66fc99e Initial load
duke
parents:
diff changeset
101
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
102 # 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
103 TEST_ROOT := $(shell pwd)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
104
a61af66fc99e Initial load
duke
parents:
diff changeset
105 # 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
106 ifdef ALT_OUTPUTDIR
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
107 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
108 else
7aff5786cc02 6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents: 1552
diff changeset
109 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
110 endif
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
111 ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput
0
a61af66fc99e Initial load
duke
parents:
diff changeset
112
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
113 # 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
114 ifndef PRODUCT_HOME
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
115 # Try to use j2sdk-image if it exists
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
116 ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
117 PRODUCT_HOME := \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
118 $(shell \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
119 if [ -d $(ABS_JDK_IMAGE) ] ; then \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
120 $(ECHO) "$(ABS_JDK_IMAGE)"; \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
121 else \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
122 $(ECHO) "$(ABS_BUILD_ROOT)" ; \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
123 fi)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
124 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
125
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
126 # 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
127 JAVA_OPTIONS =
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
128 ifdef JAVA_ARGS
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
129 JAVA_OPTIONS = $(JAVA_ARGS)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
130 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
131
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
132 # 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
133 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
134 ifdef JPRT_ARCHIVE_BUNDLE
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
135 ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
136 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
137
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
138 # How to create the test bundle (pass or fail, we want to create this)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
139 BUNDLE_UP = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
140 && $(CD) $(ABS_TEST_OUTPUT_DIR) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
141 && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . )
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
142 BUNDLE_UP_FAILED = ( exitCode=$$? && $(BUNDLE_UP) && exit $${exitCode} )
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
143
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
144 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
145
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
146 # Default make rule (runs jtreg_tests)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
147 all: jtreg_tests
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
148 @$(ECHO) "Testing completed successfully"
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
149
20202
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 17467
diff changeset
150 # Support "hotspot_" prefixed test make targets too
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 17467
diff changeset
151 # The hotspot_% targets are for example invoked by the top level Makefile
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 17467
diff changeset
152 hotspot_%:
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 17467
diff changeset
153 $(MAKE) $*
637e659fb097 8042804: Support invoking Hotspot tests from top level
mikael
parents: 17467
diff changeset
154
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
155 # Prep for output
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
156 prep: clean
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
157 @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
158 @$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)`
0
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 # Cleanup
a61af66fc99e Initial load
duke
parents:
diff changeset
161 clean:
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
162 $(RM) -r $(ABS_TEST_OUTPUT_DIR)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
163 $(RM) $(ARCHIVE_BUNDLE)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
164
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
165 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
166
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
167 # jtreg tests
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
168
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
169 # 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
170 ifndef JT_HOME
393fd4ef89c4 8011678: test/Makefile should pick up JT_HOME environment variable
twisti
parents: 7634
diff changeset
171 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg
393fd4ef89c4 8011678: test/Makefile should pick up JT_HOME environment variable
twisti
parents: 7634
diff changeset
172 endif
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
173 ifdef JPRT_JTREG_HOME
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
174 JT_HOME = $(JPRT_JTREG_HOME)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
175 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
176
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
177 # Expect JPRT to set TESTDIRS to the jtreg test dirs
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
178 JTREG_TESTDIRS = demo/jvmti/gctest demo/jvmti/hprof
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
179 ifdef TESTDIRS
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
180 JTREG_TESTDIRS = $(TESTDIRS)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
181 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
182
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
183 # Default JTREG to run (win32 script works for everybody)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
184 JTREG = $(JT_HOME)/win32/bin/jtreg
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
185
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
186 # 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
187 ifeq ($(PLATFORM), windows)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
188 JTREG_KEY_OPTION = -k:!ignore
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
189 else
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
190 JTREG_KEY_OPTION = -k:\!ignore
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
191 endif
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
192
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
193 #EXTRA_JTREG_OPTIONS =
0
a61af66fc99e Initial load
duke
parents:
diff changeset
194
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
195 jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
196 $(JTREG) -a -v:fail,error \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
197 $(JTREG_KEY_OPTION) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
198 $(EXTRA_JTREG_OPTIONS) \
7634
bf8c2b2c8cfa 8004147: test/Makefile jtreg_tests target does not work with cygwin
mgerdin
parents: 5961
diff changeset
199 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
bf8c2b2c8cfa 8004147: test/Makefile jtreg_tests target does not work with cygwin
mgerdin
parents: 5961
diff changeset
200 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
bf8c2b2c8cfa 8004147: test/Makefile jtreg_tests target does not work with cygwin
mgerdin
parents: 5961
diff changeset
201 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
202 $(JAVA_OPTIONS:%=-vmoption:%) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
203 $(JTREG_TESTDIRS) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
204 || $(BUNDLE_UP_FAILED)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
205 $(BUNDLE_UP)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
206
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
207 PHONY_LIST += jtreg_tests
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
208
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
209 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
210
781
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
211 # 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
212
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
213 clienttest: prep $(PRODUCT_HOME)
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
214 $(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
215 $(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
216 $(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
217 $(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
218 $(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
219 $(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
220
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
221 PHONY_LIST += clienttest
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
222
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
223 ################################################################
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
224
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
225 # 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
226
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
227 servertest: prep $(PRODUCT_HOME)
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
228 $(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
229 $(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
230 $(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
231
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
232 PHONY_LIST += servertest
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
233
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
234 ################################################################
44ccd7a9065c 6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents: 579
diff changeset
235
4070
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
236 # 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
237
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
238 internalvmtests: prep $(PRODUCT_HOME)
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
239 $(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
240
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
241 PHONY_LIST += internalvmtests
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
242
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
243 ################################################################
6fd81579526f 7102044: G1: VM crashes with assert(old_end != new_end) failed: don't call this otherwise
brutisso
parents: 3960
diff changeset
244
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
245 # wbapitest (make sure the whitebox testing api classes work
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
246
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
247 wbapitest: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG)
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
248 $(JTREG) -a -v:fail,error \
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
249 $(JTREG_KEY_OPTION) \
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
250 $(EXTRA_JTREG_OPTIONS) \
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
251 -r:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTreport \
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
252 -w:$(shell $(GETMIXEDPATH) "$(ABS_TEST_OUTPUT_DIR)")/JTwork \
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
253 -jdk:$(shell $(GETMIXEDPATH) "$(PRODUCT_HOME)") \
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
254 $(JAVA_OPTIONS:%=-vmoption:%) \
5961
0e9e3cecdc81 7152791: wbapi tests fail on cygwin
mgerdin
parents: 5915
diff changeset
255 $(shell $(GETMIXEDPATH) "$(TEST_ROOT)")/sanity \
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
256 || $(BUNDLE_UP_FAILED)
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
257 $(BUNDLE_UP)
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
258
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
259 PHONY_LIST += wbapitest
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
260
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
261 ################################################################
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4070
diff changeset
262
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
263 # packtest
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
264
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
265 # Expect JPRT to set JPRT_PACKTEST_HOME.
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
266 PACKTEST_HOME = /net/jprt-web.sfbay.sun.com/jprt/allproducts/packtest
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
267 ifdef JPRT_PACKTEST_HOME
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
268 PACKTEST_HOME = $(JPRT_PACKTEST_HOME)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
269 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
270
328
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
271 #EXTRA_PACKTEST_OPTIONS =
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
272
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
273 packtest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
274 ( $(CD) $(PACKTEST_HOME) && \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
275 $(PACKTEST_HOME)/ptest \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
276 -t "$(PRODUCT_HOME)" \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
277 $(PACKTEST_STRESS_OPTION) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
278 $(EXTRA_PACKTEST_OPTIONS) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
279 -W $(ABS_TEST_OUTPUT_DIR) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
280 $(JAVA_OPTIONS:%=-J %) \
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
281 ) || $(BUNDLE_UP_FAILED)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
282 $(BUNDLE_UP)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
283
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
284 packtest_stress: PACKTEST_STRESS_OPTION=-s
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
285 packtest_stress: packtest
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
286
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
287 PHONY_LIST += packtest packtest_stress
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
288
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
289 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
290
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
291 # Phony targets (e.g. these are not filenames)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
292 .PHONY: all clean prep $(PHONY_LIST)
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
293
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
294 ################################################################
68e0443dfd9c 6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents: 0
diff changeset
295