United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6839151 Add a JPRT default test of -Xshare:dump when new hotspot is built
JDK-6839151 : Add a JPRT default test of -Xshare:dump when new hotspot is built

Details
Type:
Enhancement
Submit Date:
2009-05-08
Status:
Closed
Updated Date:
2011-05-17
Project Name:
JDK
Resolved Date:
2011-05-17
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports

Sub Tasks

Description
An additional test target for basic client/server vm tests is proposed here. Adding two make targets to the test/Makefile for doing basic client or server tests, and then configuring JPRT to run these tests on all platforms, build flavors, and vms. These clienttest and servertest targets can be adjusted over time to do other basic verifications or regression checking. Pass/Fail is determined by the process exit status.

Test can be manually run with: cd test && make PRODUCT_HOME=jdkhome servertest clienttest


diff --git a/make/jprt.properties b/make/jprt.properties
--- a/make/jprt.properties
+++ b/make/jprt.properties
@@ -335,7 +335,19 @@ jprt.test.targets = \
 
 # The default test/Makefile targets that should be run
 
-# Example:
-#   jprt.make.rule.test.targets=*-*-*-packtest
 #jprt.make.rule.test.targets=*-product-*-packtest
 
+jprt.make.rule.test.targets = \
+  ${jprt.my.solaris.sparc}-*-c1-clienttest, \
+  ${jprt.my.solaris.i586}-*-c1-clienttest, \
+  ${jprt.my.linux.i586}-*-c1-clienttest, \
+  ${jprt.my.windows.i586}-*-c1-clienttest, \
+  ${jprt.my.solaris.sparc}-*-c2-servertest, \
+  ${jprt.my.solaris.sparcv9}-*-c2-servertest, \
+  ${jprt.my.solaris.i586}-*-c2-servertest, \
+  ${jprt.my.solaris.x64}-*-c2-servertest, \
+  ${jprt.my.linux.i586}-*-c2-servertest, \
+  ${jprt.my.linux.x64}-*-c2-servertest, \
+  ${jprt.my.windows.i586}-*-c2-servertest, \
+  ${jprt.my.windows.x64}-*-c2-servertest
+
diff --git a/test/Makefile b/test/Makefile
--- a/test/Makefile
+++ b/test/Makefile
@@ -172,6 +172,33 @@ PHONY_LIST += jtreg_tests
 
 ################################################################
 
+# clienttest (make sure various basic java client options work)
+
+clienttest: prep $(PRODUCT_HOME)
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
+	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes.jsa
+	$(RM) $(PRODUCT_HOME)/jre/lib/*/client/classes_g.jsa
+	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes.jsa
+	$(RM) $(PRODUCT_HOME)/jre/bin/client/classes_g.jsa
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -Xshare:dump
+
+PHONY_LIST += clienttest
+
+################################################################
+
+# servertest (make sure various basic java server options work)
+
+servertest: prep $(PRODUCT_HOME)
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -version
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -help
+	$(PRODUCT_HOME)/bin/java $(JAVA_OPTIONS) -X
+
+PHONY_LIST += servertest
+
+################################################################
+
 # packtest
 
 # Expect JPRT to set JPRT_PACKTEST_HOME.

                                    

Comments
EVALUATION

See description.
                                     
2009-05-08
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/44ccd7a9065c
                                     
2009-05-09



Hardware and Software, Engineered to Work Together