Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
b0955379
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b0955379
编写于
9月 22, 2011
作者:
W
weijun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7092627: use agentvm mode instead of samevm in regtests
Reviewed-by: alanb, dsamersoff
上级
b5bf76e2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
67 addition
and
63 deletion
+67
-63
test/Makefile
test/Makefile
+61
-57
test/com/sun/jdi/sde/MangleStepTest.java
test/com/sun/jdi/sde/MangleStepTest.java
+5
-5
test/java/util/logging/ParentLoggersTest.java
test/java/util/logging/ParentLoggersTest.java
+1
-1
未找到文件。
test/Makefile
浏览文件 @
b0955379
...
...
@@ -342,7 +342,7 @@ clean:
# Expect JT_HOME to be set for jtreg tests. (home for jtreg)
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
JT_HOME
=
$(JPRT_JTREG_HOME)
endif
...
...
@@ -353,19 +353,23 @@ ifndef TESTDIRS
TESTDIRS
=
demo
endif
#
Same
vm settings (default is false)
ifndef
USE_JTREG_
SAME
VM
USE_JTREG_
SAME
VM
=
false
#
Agent
vm settings (default is false)
ifndef
USE_JTREG_
AGENT
VM
USE_JTREG_
AGENT
VM
=
false
endif
# With
same
vm, you cannot use -javaoptions?
ifeq
($(USE_JTREG_
SAME
VM),true)
JTREG_
SAMEVM_OPTION
=
-same
vm
EXTRA_JTREG_OPTIONS
+=
$(JTREG_
SAME
VM_OPTION)
$(JAVA_ARGS)
$
(
JAVA_ARGS:%
=
-vmoption
:%
)
# With
agent
vm, you cannot use -javaoptions?
ifeq
($(USE_JTREG_
AGENT
VM),true)
JTREG_
AGENTVM_OPTION
=
-agent
vm
EXTRA_JTREG_OPTIONS
+=
$(JTREG_
AGENT
VM_OPTION)
$(JAVA_ARGS)
$
(
JAVA_ARGS:%
=
-vmoption
:%
)
JTREG_TEST_OPTIONS
=
$
(
JAVA_VM_ARGS:%
=
-vmoption
:%
)
else
JTREG_TEST_OPTIONS
=
$
(
JAVA_ARGS:%
=
-javaoptions
:%
)
$
(
JAVA_VM_ARGS:%
=
-vmoption
:%
)
endif
ifdef
CONCURRENCY
EXTRA_JTREG_OPTIONS
+=
-concurrency
:
$(CONCURRENCY)
endif
# Some tests annoy me and fail frequently
PROBLEM_LIST
=
ProblemList.txt
PROBLEM_LISTS
=
$(PROBLEM_LIST)
$(
wildcard
closed/
$(PROBLEM_LIST)
)
...
...
@@ -400,14 +404,14 @@ endif
define
TestDirs
$(foreach
i,$1,$(wildcard
${i}))
$(foreach
i,$1,$(wildcard
closed/${i}))
endef
# Running batches of tests with or without
same
vm
define
Run
Same
vmBatch
$(ECHO) "Running tests in
same
vm mode
:
$?"
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
USE_JTREG_
SAME
VM
=
true
UNIQUE_DIR
=
$@
jtreg_tests
# Running batches of tests with or without
agent
vm
define
Run
Agent
vmBatch
$(ECHO) "Running tests in
agent
vm mode
:
$?"
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
USE_JTREG_
AGENT
VM
=
true
UNIQUE_DIR
=
$@
jtreg_tests
endef
define
RunOthervmBatch
$(ECHO) "Running tests in othervm mode
:
$?"
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
USE_JTREG_
SAME
VM
=
false
UNIQUE_DIR
=
$@
jtreg_tests
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
USE_JTREG_
AGENT
VM
=
false
UNIQUE_DIR
=
$@
jtreg_tests
endef
define
SummaryInfo
$(ECHO)
"########################################################"
...
...
@@ -421,22 +425,22 @@ endef
JDK_ALL_TARGETS
=
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has problems, and doesn't help performance as much as others.
# Using
agent
vm has problems, and doesn't help performance as much as others.
JDK_ALL_TARGETS
+=
jdk_awt
jdk_awt
:
$(call TestDirs
,
com/sun/awt java/awt sun/awt
\
javax/imageio javax/print sun/pisces)
$(
call
RunOthervmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_beans1
jdk_beans1
:
$(call TestDirs
,
\
java/beans/beancontext java/beans/PropertyChangeSupport
\
java/beans/Introspector java/beans/Performance
\
java/beans/VetoableChangeSupport java/beans/Statement)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has serious problems with these tests
# Using
agent
vm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_beans2
jdk_beans2
:
$(call TestDirs
,
\
java/beans/Beans java/beans/EventHandler java/beans/XMLDecoder
\
...
...
@@ -444,7 +448,7 @@ jdk_beans2: $(call TestDirs, \
$(
call
RunOthervmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has serious problems with these tests
# Using
agent
vm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_beans3
jdk_beans3
:
$(call TestDirs
,
java/beans/XMLEncoder)
$(
call
RunOthervmBatch
)
...
...
@@ -453,24 +457,24 @@ jdk_beans3: $(call TestDirs, java/beans/XMLEncoder)
jdk_beans
:
jdk_beans1 jdk_beans2 jdk_beans3
@
$(SummaryInfo)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_io
jdk_io
:
$(call TestDirs
,
java/io)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_lang
jdk_lang
:
$(call TestDirs
,
java/lang)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has serious problems with these tests
# Using
agent
vm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_management1
jdk_management1
:
$(call TestDirs
,
javax/management)
$(
call
RunOthervmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has serious problems with these tests
# Using
agent
vm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_management2
jdk_management2
:
$(call TestDirs
,
com/sun/jmx com/sun/management sun/management)
$(
call
RunOthervmBatch
)
...
...
@@ -479,114 +483,114 @@ jdk_management2: $(call TestDirs, com/sun/jmx com/sun/management sun/management)
jdk_management
:
jdk_management1 jdk_management2
@
$(SummaryInfo)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_math
jdk_math
:
$(call TestDirs
,
java/math)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_misc
jdk_misc
:
$(call TestDirs
,
\
demo/jvmti demo/zipfs javax/naming javax/script
\
javax/smartcardio com/sun/jndi com/sun/xml sun/misc)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_net
jdk_net
:
$(call TestDirs
,
com/sun/net java/net sun/net)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_nio1
jdk_nio1
:
$(call TestDirs
,
java/nio/file)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_nio2
jdk_nio2
:
$(call TestDirs
,
java/nio/Buffer java/nio/ByteOrder
\
java/nio/channels java/nio/MappedByteBuffer)
$(
call
SharedLibraryPermissions,java/nio/channels
)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_nio3
jdk_nio3
:
$(call TestDirs
,
sun/nio)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# All nio tests
jdk_nio
:
jdk_nio1 jdk_nio2 jdk_nio3
@
$(SummaryInfo)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
jdk_sctp
:
$(call TestDirs
,
com/sun/nio/sctp)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has serious problems with these tests
# Using
agent
vm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_rmi
jdk_rmi
:
$(call TestDirs
,
java/rmi javax/rmi sun/rmi)
$(
call
RunOthervmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_security1
jdk_security1
:
$(call TestDirs
,
java/security)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_security2
jdk_security2
:
$(call TestDirs
,
javax/crypto javax/xml/crypto com/sun/crypto)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_security3
jdk_security3
:
$(call TestDirs
,
com/sun/security lib/security javax/security
\
sun/security com/sun/org/apache/xml/internal/security)
$(
call
SharedLibraryPermissions,sun/security
)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# All security tests
jdk_security
:
jdk_security1 jdk_security2 jdk_security3
@
$(SummaryInfo)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_sound
jdk_sound
:
$(call TestDirs
,
javax/sound)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has problems, and doesn't help performance as much as others.
# Using
agent
vm has problems, and doesn't help performance as much as others.
JDK_ALL_TARGETS
+=
jdk_swing
jdk_swing
:
$(call TestDirs
,
javax/swing sun/java2d
\
demo/jfc com/sun/java/swing)
$(
call
RunOthervmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_text
jdk_text
:
$(call TestDirs
,
java/text sun/text)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_tools1
jdk_tools1
:
$(call TestDirs
,
com/sun/jdi)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using
same
vm has serious problems with these tests
# Using
agent
vm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_tools2
jdk_tools2
:
$(call TestDirs
,
\
com/sun/tools sun/jvmstat sun/tools tools vm
\
com/sun/servicetag com/sun/tracing)
$(
call
SharedLibraryPermissions,tools/launcher
)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# All tools tests
jdk_tools
:
jdk_tools1 jdk_tools2
@
$(SummaryInfo)
# Stable
same
vm testruns (minus items from PROBLEM_LIST)
# Stable
agent
vm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_util
jdk_util
:
$(call TestDirs
,
java/util sun/util)
$(
call
Run
Same
vmBatch
)
$(
call
Run
Agent
vmBatch
)
# ------------------------------------------------------------------
...
...
@@ -603,7 +607,7 @@ PHONY_LIST += $(JDK_ALL_TARGETS)
# Default JTREG to run (win32 script works for everybody)
JTREG
=
$(JT_HOME)
/win32/bin/jtreg
# Add any extra options (
same
vm etc.)
# Add any extra options (
agent
vm etc.)
JTREG_BASIC_OPTIONS
+=
$(EXTRA_JTREG_OPTIONS)
# Only run automatic tests
JTREG_BASIC_OPTIONS
+=
-a
...
...
test/com/sun/jdi/sde/MangleStepTest.java
浏览文件 @
b0955379
...
...
@@ -10,11 +10,11 @@
* @run build TestScaffold VMConnection TargetListener TargetAdapter InstallSDE
* @run compile MangleStepTest.java
* @run compile -g onion/pickle/Mangle.java
* @run main MangleStepTest unset
* @run main MangleStepTest Java
* @run main MangleStepTest XYZ
* @run main MangleStepTest Rats
* @run main MangleStepTest bogus
* @run main
/othervm
MangleStepTest unset
* @run main
/othervm
MangleStepTest Java
* @run main
/othervm
MangleStepTest XYZ
* @run main
/othervm
MangleStepTest Rats
* @run main
/othervm
MangleStepTest bogus
*/
import
com.sun.jdi.*
;
import
com.sun.jdi.event.*
;
...
...
test/java/util/logging/ParentLoggersTest.java
浏览文件 @
b0955379
...
...
@@ -6,7 +6,7 @@
* @author ss45998
*
* @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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录