提交 b0955379 编写于 作者: W weijun

7092627: use agentvm mode instead of samevm in regtests

Reviewed-by: alanb, dsamersoff
上级 b5bf76e2
...@@ -342,7 +342,7 @@ clean: ...@@ -342,7 +342,7 @@ clean:
# Expect JT_HOME to be set for jtreg tests. (home for jtreg) # Expect JT_HOME to be set for jtreg tests. (home for jtreg)
ifndef JT_HOME ifndef JT_HOME
JT_HOME = $(SLASH_JAVA)/re/jtreg/4.0/promoted/latest/binaries/jtreg JT_HOME = $(SLASH_JAVA)/re/jtreg/4.1/promoted/latest/binaries/jtreg
ifdef JPRT_JTREG_HOME ifdef JPRT_JTREG_HOME
JT_HOME = $(JPRT_JTREG_HOME) JT_HOME = $(JPRT_JTREG_HOME)
endif endif
...@@ -353,19 +353,23 @@ ifndef TESTDIRS ...@@ -353,19 +353,23 @@ ifndef TESTDIRS
TESTDIRS = demo TESTDIRS = demo
endif endif
# Samevm settings (default is false) # Agentvm settings (default is false)
ifndef USE_JTREG_SAMEVM ifndef USE_JTREG_AGENTVM
USE_JTREG_SAMEVM=false USE_JTREG_AGENTVM=false
endif endif
# With samevm, you cannot use -javaoptions? # With agentvm, you cannot use -javaoptions?
ifeq ($(USE_JTREG_SAMEVM),true) ifeq ($(USE_JTREG_AGENTVM),true)
JTREG_SAMEVM_OPTION = -samevm JTREG_AGENTVM_OPTION = -agentvm
EXTRA_JTREG_OPTIONS += $(JTREG_SAMEVM_OPTION) $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%) EXTRA_JTREG_OPTIONS += $(JTREG_AGENTVM_OPTION) $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%)
JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%) JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%)
else else
JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%) JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
endif endif
ifdef CONCURRENCY
EXTRA_JTREG_OPTIONS += -concurrency:$(CONCURRENCY)
endif
# Some tests annoy me and fail frequently # Some tests annoy me and fail frequently
PROBLEM_LIST=ProblemList.txt PROBLEM_LIST=ProblemList.txt
PROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST)) PROBLEM_LISTS=$(PROBLEM_LIST) $(wildcard closed/$(PROBLEM_LIST))
...@@ -400,14 +404,14 @@ endif ...@@ -400,14 +404,14 @@ endif
define TestDirs define TestDirs
$(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i})) $(foreach i,$1,$(wildcard ${i})) $(foreach i,$1,$(wildcard closed/${i}))
endef endef
# Running batches of tests with or without samevm # Running batches of tests with or without agentvm
define RunSamevmBatch define RunAgentvmBatch
$(ECHO) "Running tests in samevm mode: $?" $(ECHO) "Running tests in agentvm mode: $?"
$(MAKE) TEST_DEPENDENCIES="$?" TESTDIRS="$?" USE_JTREG_SAMEVM=true UNIQUE_DIR=$@ jtreg_tests $(MAKE) TEST_DEPENDENCIES="$?" TESTDIRS="$?" USE_JTREG_AGENTVM=true UNIQUE_DIR=$@ jtreg_tests
endef endef
define RunOthervmBatch define RunOthervmBatch
$(ECHO) "Running tests in othervm mode: $?" $(ECHO) "Running tests in othervm mode: $?"
$(MAKE) TEST_DEPENDENCIES="$?" TESTDIRS="$?" USE_JTREG_SAMEVM=false UNIQUE_DIR=$@ jtreg_tests $(MAKE) TEST_DEPENDENCIES="$?" TESTDIRS="$?" USE_JTREG_AGENTVM=false UNIQUE_DIR=$@ jtreg_tests
endef endef
define SummaryInfo define SummaryInfo
$(ECHO) "########################################################" $(ECHO) "########################################################"
...@@ -421,22 +425,22 @@ endef ...@@ -421,22 +425,22 @@ endef
JDK_ALL_TARGETS = JDK_ALL_TARGETS =
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has problems, and doesn't help performance as much as others. # Using agentvm has problems, and doesn't help performance as much as others.
JDK_ALL_TARGETS += jdk_awt JDK_ALL_TARGETS += jdk_awt
jdk_awt: $(call TestDirs, com/sun/awt java/awt sun/awt \ jdk_awt: $(call TestDirs, com/sun/awt java/awt sun/awt \
javax/imageio javax/print sun/pisces) javax/imageio javax/print sun/pisces)
$(call RunOthervmBatch) $(call RunOthervmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_beans1 JDK_ALL_TARGETS += jdk_beans1
jdk_beans1: $(call TestDirs, \ jdk_beans1: $(call TestDirs, \
java/beans/beancontext java/beans/PropertyChangeSupport \ java/beans/beancontext java/beans/PropertyChangeSupport \
java/beans/Introspector java/beans/Performance \ java/beans/Introspector java/beans/Performance \
java/beans/VetoableChangeSupport java/beans/Statement) java/beans/VetoableChangeSupport java/beans/Statement)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has serious problems with these tests # Using agentvm has serious problems with these tests
JDK_ALL_TARGETS += jdk_beans2 JDK_ALL_TARGETS += jdk_beans2
jdk_beans2: $(call TestDirs, \ jdk_beans2: $(call TestDirs, \
java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \ java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder \
...@@ -444,7 +448,7 @@ jdk_beans2: $(call TestDirs, \ ...@@ -444,7 +448,7 @@ jdk_beans2: $(call TestDirs, \
$(call RunOthervmBatch) $(call RunOthervmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has serious problems with these tests # Using agentvm has serious problems with these tests
JDK_ALL_TARGETS += jdk_beans3 JDK_ALL_TARGETS += jdk_beans3
jdk_beans3: $(call TestDirs, java/beans/XMLEncoder) jdk_beans3: $(call TestDirs, java/beans/XMLEncoder)
$(call RunOthervmBatch) $(call RunOthervmBatch)
...@@ -453,24 +457,24 @@ jdk_beans3: $(call TestDirs, java/beans/XMLEncoder) ...@@ -453,24 +457,24 @@ jdk_beans3: $(call TestDirs, java/beans/XMLEncoder)
jdk_beans: jdk_beans1 jdk_beans2 jdk_beans3 jdk_beans: jdk_beans1 jdk_beans2 jdk_beans3
@$(SummaryInfo) @$(SummaryInfo)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_io JDK_ALL_TARGETS += jdk_io
jdk_io: $(call TestDirs, java/io) jdk_io: $(call TestDirs, java/io)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_lang JDK_ALL_TARGETS += jdk_lang
jdk_lang: $(call TestDirs, java/lang) jdk_lang: $(call TestDirs, java/lang)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has serious problems with these tests # Using agentvm has serious problems with these tests
JDK_ALL_TARGETS += jdk_management1 JDK_ALL_TARGETS += jdk_management1
jdk_management1: $(call TestDirs, javax/management) jdk_management1: $(call TestDirs, javax/management)
$(call RunOthervmBatch) $(call RunOthervmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has serious problems with these tests # Using agentvm has serious problems with these tests
JDK_ALL_TARGETS += jdk_management2 JDK_ALL_TARGETS += jdk_management2
jdk_management2: $(call TestDirs, com/sun/jmx com/sun/management sun/management) jdk_management2: $(call TestDirs, com/sun/jmx com/sun/management sun/management)
$(call RunOthervmBatch) $(call RunOthervmBatch)
...@@ -479,114 +483,114 @@ jdk_management2: $(call TestDirs, com/sun/jmx com/sun/management sun/management) ...@@ -479,114 +483,114 @@ jdk_management2: $(call TestDirs, com/sun/jmx com/sun/management sun/management)
jdk_management: jdk_management1 jdk_management2 jdk_management: jdk_management1 jdk_management2
@$(SummaryInfo) @$(SummaryInfo)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_math JDK_ALL_TARGETS += jdk_math
jdk_math: $(call TestDirs, java/math) jdk_math: $(call TestDirs, java/math)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_misc JDK_ALL_TARGETS += jdk_misc
jdk_misc: $(call TestDirs, \ jdk_misc: $(call TestDirs, \
demo/jvmti demo/zipfs javax/naming javax/script \ demo/jvmti demo/zipfs javax/naming javax/script \
javax/smartcardio com/sun/jndi com/sun/xml sun/misc) javax/smartcardio com/sun/jndi com/sun/xml sun/misc)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_net JDK_ALL_TARGETS += jdk_net
jdk_net: $(call TestDirs, com/sun/net java/net sun/net) jdk_net: $(call TestDirs, com/sun/net java/net sun/net)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_nio1 JDK_ALL_TARGETS += jdk_nio1
jdk_nio1: $(call TestDirs, java/nio/file) jdk_nio1: $(call TestDirs, java/nio/file)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_nio2 JDK_ALL_TARGETS += jdk_nio2
jdk_nio2: $(call TestDirs, java/nio/Buffer java/nio/ByteOrder \ jdk_nio2: $(call TestDirs, java/nio/Buffer java/nio/ByteOrder \
java/nio/channels java/nio/MappedByteBuffer) java/nio/channels java/nio/MappedByteBuffer)
$(call SharedLibraryPermissions,java/nio/channels) $(call SharedLibraryPermissions,java/nio/channels)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_nio3 JDK_ALL_TARGETS += jdk_nio3
jdk_nio3: $(call TestDirs, sun/nio) jdk_nio3: $(call TestDirs, sun/nio)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# All nio tests # All nio tests
jdk_nio: jdk_nio1 jdk_nio2 jdk_nio3 jdk_nio: jdk_nio1 jdk_nio2 jdk_nio3
@$(SummaryInfo) @$(SummaryInfo)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
jdk_sctp: $(call TestDirs, com/sun/nio/sctp) jdk_sctp: $(call TestDirs, com/sun/nio/sctp)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has serious problems with these tests # Using agentvm has serious problems with these tests
JDK_ALL_TARGETS += jdk_rmi JDK_ALL_TARGETS += jdk_rmi
jdk_rmi: $(call TestDirs, java/rmi javax/rmi sun/rmi) jdk_rmi: $(call TestDirs, java/rmi javax/rmi sun/rmi)
$(call RunOthervmBatch) $(call RunOthervmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_security1 JDK_ALL_TARGETS += jdk_security1
jdk_security1: $(call TestDirs, java/security) jdk_security1: $(call TestDirs, java/security)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_security2 JDK_ALL_TARGETS += jdk_security2
jdk_security2: $(call TestDirs, javax/crypto javax/xml/crypto com/sun/crypto) jdk_security2: $(call TestDirs, javax/crypto javax/xml/crypto com/sun/crypto)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_security3 JDK_ALL_TARGETS += jdk_security3
jdk_security3: $(call TestDirs, com/sun/security lib/security javax/security \ jdk_security3: $(call TestDirs, com/sun/security lib/security javax/security \
sun/security com/sun/org/apache/xml/internal/security) sun/security com/sun/org/apache/xml/internal/security)
$(call SharedLibraryPermissions,sun/security) $(call SharedLibraryPermissions,sun/security)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# All security tests # All security tests
jdk_security: jdk_security1 jdk_security2 jdk_security3 jdk_security: jdk_security1 jdk_security2 jdk_security3
@$(SummaryInfo) @$(SummaryInfo)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_sound JDK_ALL_TARGETS += jdk_sound
jdk_sound: $(call TestDirs, javax/sound) jdk_sound: $(call TestDirs, javax/sound)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has problems, and doesn't help performance as much as others. # Using agentvm has problems, and doesn't help performance as much as others.
JDK_ALL_TARGETS += jdk_swing JDK_ALL_TARGETS += jdk_swing
jdk_swing: $(call TestDirs, javax/swing sun/java2d \ jdk_swing: $(call TestDirs, javax/swing sun/java2d \
demo/jfc com/sun/java/swing) demo/jfc com/sun/java/swing)
$(call RunOthervmBatch) $(call RunOthervmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_text JDK_ALL_TARGETS += jdk_text
jdk_text: $(call TestDirs, java/text sun/text) jdk_text: $(call TestDirs, java/text sun/text)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_tools1 JDK_ALL_TARGETS += jdk_tools1
jdk_tools1: $(call TestDirs, com/sun/jdi) jdk_tools1: $(call TestDirs, com/sun/jdi)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# Stable othervm testruns (minus items from PROBLEM_LIST) # Stable othervm testruns (minus items from PROBLEM_LIST)
# Using samevm has serious problems with these tests # Using agentvm has serious problems with these tests
JDK_ALL_TARGETS += jdk_tools2 JDK_ALL_TARGETS += jdk_tools2
jdk_tools2: $(call TestDirs, \ jdk_tools2: $(call TestDirs, \
com/sun/tools sun/jvmstat sun/tools tools vm \ com/sun/tools sun/jvmstat sun/tools tools vm \
com/sun/servicetag com/sun/tracing) com/sun/servicetag com/sun/tracing)
$(call SharedLibraryPermissions,tools/launcher) $(call SharedLibraryPermissions,tools/launcher)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# All tools tests # All tools tests
jdk_tools: jdk_tools1 jdk_tools2 jdk_tools: jdk_tools1 jdk_tools2
@$(SummaryInfo) @$(SummaryInfo)
# Stable samevm testruns (minus items from PROBLEM_LIST) # Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS += jdk_util JDK_ALL_TARGETS += jdk_util
jdk_util: $(call TestDirs, java/util sun/util) jdk_util: $(call TestDirs, java/util sun/util)
$(call RunSamevmBatch) $(call RunAgentvmBatch)
# ------------------------------------------------------------------ # ------------------------------------------------------------------
...@@ -603,7 +607,7 @@ PHONY_LIST += $(JDK_ALL_TARGETS) ...@@ -603,7 +607,7 @@ PHONY_LIST += $(JDK_ALL_TARGETS)
# Default JTREG to run (win32 script works for everybody) # Default JTREG to run (win32 script works for everybody)
JTREG = $(JT_HOME)/win32/bin/jtreg JTREG = $(JT_HOME)/win32/bin/jtreg
# Add any extra options (samevm etc.) # Add any extra options (agentvm etc.)
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
# Only run automatic tests # Only run automatic tests
JTREG_BASIC_OPTIONS += -a JTREG_BASIC_OPTIONS += -a
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
* @run build TestScaffold VMConnection TargetListener TargetAdapter InstallSDE * @run build TestScaffold VMConnection TargetListener TargetAdapter InstallSDE
* @run compile MangleStepTest.java * @run compile MangleStepTest.java
* @run compile -g onion/pickle/Mangle.java * @run compile -g onion/pickle/Mangle.java
* @run main MangleStepTest unset * @run main/othervm MangleStepTest unset
* @run main MangleStepTest Java * @run main/othervm MangleStepTest Java
* @run main MangleStepTest XYZ * @run main/othervm MangleStepTest XYZ
* @run main MangleStepTest Rats * @run main/othervm MangleStepTest Rats
* @run main MangleStepTest bogus * @run main/othervm MangleStepTest bogus
*/ */
import com.sun.jdi.*; import com.sun.jdi.*;
import com.sun.jdi.event.*; import com.sun.jdi.event.*;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @author ss45998 * @author ss45998
* *
* @build ParentLoggersTest * @build ParentLoggersTest
* @run main ParentLoggersTest * @run main/othervm ParentLoggersTest
*/ */
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册