Mercurial > hg > graal-jvmci-8
annotate test/Makefile @ 3011:f00918f35c7f
inlining and runtime interface related changes:
added codeSize() and compilerStorage() to RiMethod
HotSpotMethodResolved uses reflective methods instead of vmIds and survives compilations
HotSpotResolvedType.isInitialized not represented as field (can change)
inlining stores graphs into method objects and reuses them
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 16 Jun 2011 20:36:17 +0200 |
parents | 0a8e0d4345b3 |
children | f08d439fab8c |
rev | line source |
---|---|
0 | 1 # |
2042
0a8e0d4345b3
7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass
trims
parents:
1901
diff
changeset
|
2 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 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 # | |
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 | 23 # |
24 | |
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 | 27 # |
28 | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
29 # Get OS/ARCH specifics |
0 | 30 OSNAME = $(shell uname -s) |
31 ifeq ($(OSNAME), SunOS) | |
32 PLATFORM = solaris | |
560
b79faa366fbd
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
328
diff
changeset
|
33 SLASH_JAVA = /java |
0 | 34 ARCH = $(shell uname -p) |
35 ifeq ($(ARCH), i386) | |
36 ARCH=i586 | |
37 endif | |
38 endif | |
39 ifeq ($(OSNAME), Linux) | |
40 PLATFORM = linux | |
560
b79faa366fbd
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
328
diff
changeset
|
41 SLASH_JAVA = /java |
0 | 42 ARCH = $(shell uname -m) |
43 ifeq ($(ARCH), i386) | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
44 ARCH = i586 |
0 | 45 endif |
46 endif | |
47 ifeq ($(OSNAME), Windows_NT) | |
48 PLATFORM = windows | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
49 SLASH_JAVA = J: |
0 | 50 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),ia64) |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
51 ARCH = ia64 |
0 | 52 else |
53 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),AMD64) | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
54 ARCH = x64 |
0 | 55 else |
56 ifeq ($(word 1, $(PROCESSOR_IDENTIFIER)),EM64T) | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
57 ARCH = x64 |
0 | 58 else |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
59 ARCH = i586 |
0 | 60 endif |
61 endif | |
62 endif | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
63 EXESUFFIX = .exe |
0 | 64 endif |
65 | |
560
b79faa366fbd
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
328
diff
changeset
|
66 ifdef ALT_SLASH_JAVA |
b79faa366fbd
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
328
diff
changeset
|
67 SLASH_JAVA = $(ALT_SLASH_JAVA) |
b79faa366fbd
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
328
diff
changeset
|
68 endif |
b79faa366fbd
6799452: HotSpot tests Makefile should take care of ALT_SLASH_JAVA
twisti
parents:
328
diff
changeset
|
69 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
70 # Utilities used |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
71 CD = cd |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
72 CP = cp |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
73 ECHO = echo |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
74 MKDIR = mkdir |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
75 ZIP = zip |
0 | 76 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
77 # 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
|
78 TEST_ROOT := $(shell pwd) |
0 | 79 |
80 # 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
|
81 ifdef ALT_OUTPUTDIR |
7aff5786cc02
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
1552
diff
changeset
|
82 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
|
83 else |
7aff5786cc02
6991596: JSR 292 unimplemented adapter_opt_i2i and adapter_opt_l2i on SPARC
twisti
parents:
1552
diff
changeset
|
84 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
|
85 endif |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
86 ABS_TEST_OUTPUT_DIR = $(ABS_BUILD_ROOT)/testoutput |
0 | 87 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
88 # 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
|
89 ifndef PRODUCT_HOME |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
90 # Try to use j2sdk-image if it exists |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
91 ABS_JDK_IMAGE = $(ABS_BUILD_ROOT)/j2sdk-image |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
92 PRODUCT_HOME := \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
93 $(shell \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
94 if [ -d $(ABS_JDK_IMAGE) ] ; then \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
95 $(ECHO) "$(ABS_JDK_IMAGE)"; \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
96 else \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
97 $(ECHO) "$(ABS_BUILD_ROOT)" ; \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
98 fi) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
99 endif |
0 | 100 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
101 # 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
|
102 JAVA_OPTIONS = |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
103 ifdef JAVA_ARGS |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
104 JAVA_OPTIONS = $(JAVA_ARGS) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
105 endif |
0 | 106 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
107 # 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
|
108 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
|
109 ifdef JPRT_ARCHIVE_BUNDLE |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
110 ARCHIVE_BUNDLE = $(JPRT_ARCHIVE_BUNDLE) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
111 endif |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
112 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
113 # 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
|
114 BUNDLE_UP = ( $(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
115 && $(CD) $(ABS_TEST_OUTPUT_DIR) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
116 && $(ZIP) -q -r $(ARCHIVE_BUNDLE) . ) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
117 BUNDLE_UP_FAILED = ( exitCode=$$? && $(BUNDLE_UP) && exit $${exitCode} ) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
118 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
119 ################################################################ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
120 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
121 # Default make rule (runs jtreg_tests) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
122 all: jtreg_tests |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
123 @$(ECHO) "Testing completed successfully" |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
124 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
125 # Prep for output |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
126 prep: clean |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
127 @$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
128 @$(MKDIR) -p `dirname $(ARCHIVE_BUNDLE)` |
0 | 129 |
130 # Cleanup | |
131 clean: | |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
132 $(RM) -r $(ABS_TEST_OUTPUT_DIR) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
133 $(RM) $(ARCHIVE_BUNDLE) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
134 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
135 ################################################################ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
136 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
137 # jtreg tests |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
138 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
139 # Expect JT_HOME to be set for jtreg tests. (home for jtreg) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
140 JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
141 ifdef JPRT_JTREG_HOME |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
142 JT_HOME = $(JPRT_JTREG_HOME) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
143 endif |
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 # 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
|
146 JTREG_TESTDIRS = demo/jvmti/gctest demo/jvmti/hprof |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
147 ifdef TESTDIRS |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
148 JTREG_TESTDIRS = $(TESTDIRS) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
149 endif |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
150 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
151 # 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
|
152 JTREG = $(JT_HOME)/win32/bin/jtreg |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
153 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
154 # 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
|
155 ifeq ($(PLATFORM), windows) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
156 JTREG_KEY_OPTION = -k:!ignore |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
157 else |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
158 JTREG_KEY_OPTION = -k:\!ignore |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
159 endif |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
160 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
161 #EXTRA_JTREG_OPTIONS = |
0 | 162 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
163 jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
164 $(JTREG) -a -v:fail,error \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
165 $(JTREG_KEY_OPTION) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
166 $(EXTRA_JTREG_OPTIONS) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
167 -r:$(ABS_TEST_OUTPUT_DIR)/JTreport \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
168 -w:$(ABS_TEST_OUTPUT_DIR)/JTwork \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
169 -jdk:$(PRODUCT_HOME) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
170 $(JAVA_OPTIONS:%=-vmoption:%) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
171 $(JTREG_TESTDIRS) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
172 || $(BUNDLE_UP_FAILED) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
173 $(BUNDLE_UP) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
174 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
175 PHONY_LIST += jtreg_tests |
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 ################################################################ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
178 |
781
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
179 # 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
|
180 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
181 clienttest: prep $(PRODUCT_HOME) |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
182 $(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
|
183 $(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
|
184 $(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
|
185 $(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
|
186 $(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes_g.jsa |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
187 $(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
|
188 $(RM) $(PRODUCT_HOME)/jre/bin/client/classes_g.jsa |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
189 $(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
|
190 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
191 PHONY_LIST += clienttest |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
192 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
193 ################################################################ |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
194 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
195 # 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
|
196 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
197 servertest: prep $(PRODUCT_HOME) |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
198 $(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
|
199 $(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
|
200 $(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
|
201 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
202 PHONY_LIST += servertest |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
203 |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
204 ################################################################ |
44ccd7a9065c
6839151: Add a JPRT default test of -Xshare:dump when new hotspot is built
ohair
parents:
579
diff
changeset
|
205 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
206 # packtest |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
207 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
208 # Expect JPRT to set JPRT_PACKTEST_HOME. |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
209 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
|
210 ifdef JPRT_PACKTEST_HOME |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
211 PACKTEST_HOME = $(JPRT_PACKTEST_HOME) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
212 endif |
0 | 213 |
328
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
214 #EXTRA_PACKTEST_OPTIONS = |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
215 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
216 packtest: prep $(PACKTEST_HOME)/ptest $(PRODUCT_HOME) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
217 ( $(CD) $(PACKTEST_HOME) && \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
218 $(PACKTEST_HOME)/ptest \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
219 -t "$(PRODUCT_HOME)" \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
220 $(PACKTEST_STRESS_OPTION) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
221 $(EXTRA_PACKTEST_OPTIONS) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
222 -W $(ABS_TEST_OUTPUT_DIR) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
223 $(JAVA_OPTIONS:%=-J %) \ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
224 ) || $(BUNDLE_UP_FAILED) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
225 $(BUNDLE_UP) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
226 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
227 packtest_stress: PACKTEST_STRESS_OPTION=-s |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
228 packtest_stress: packtest |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
229 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
230 PHONY_LIST += packtest packtest_stress |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
231 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
232 ################################################################ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
233 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
234 # Phony targets (e.g. these are not filenames) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
235 .PHONY: all clean prep $(PHONY_LIST) |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
236 |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
237 ################################################################ |
68e0443dfd9c
6745363: Add ability to run packtest to hotspot/test/makefile
ohair
parents:
0
diff
changeset
|
238 |