Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7facfcba
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看板
提交
7facfcba
编写于
7月 27, 2013
作者:
M
mduigou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8021588: Remove explicit othervm execution from jdk/test/Makefile
Reviewed-by: alanb
上级
700c308b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
41 addition
and
85 deletion
+41
-85
test/Makefile
test/Makefile
+41
-85
未找到文件。
test/Makefile
浏览文件 @
7facfcba
...
@@ -362,23 +362,6 @@ ifndef TESTDIRS
...
@@ -362,23 +362,6 @@ ifndef TESTDIRS
TESTDIRS
=
demo
TESTDIRS
=
demo
endif
endif
# Agentvm settings (default is false)
ifndef
USE_JTREG_AGENTVM
USE_JTREG_AGENTVM
=
false
endif
# With agentvm, you cannot use -javaoptions?
ifeq
($(USE_JTREG_AGENTVM),true)
JTREG_AGENTVM_OPTION
=
-agentvm
EXTRA_JTREG_OPTIONS
+=
$(JTREG_AGENTVM_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
# 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)
)
...
@@ -414,13 +397,9 @@ define TestDirs
...
@@ -414,13 +397,9 @@ 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 agentvm
# Running batches of tests with or without agentvm
define
RunAgentvmBatch
define
RunBatch
$(ECHO) "Running tests in agentvm mode
:
$?"
$(ECHO) "Running tests
:
$?"
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
USE_JTREG_AGENTVM
=
true
UNIQUE_DIR
=
$@
jtreg_tests
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
UNIQUE_DIR
=
$@
jtreg_tests
endef
define
RunOthervmBatch
$(ECHO) "Running tests in othervm mode
:
$?"
$(MAKE)
TEST_DEPENDENCIES
=
"
$?
"
TESTDIRS
=
"
$?
"
USE_JTREG_AGENTVM
=
false
UNIQUE_DIR
=
$@
jtreg_tests
endef
endef
define
SummaryInfo
define
SummaryInfo
$(ECHO)
"########################################################"
$(ECHO)
"########################################################"
...
@@ -435,76 +414,60 @@ endef
...
@@ -435,76 +414,60 @@ endef
JDK_DEFAULT_TARGETS
=
JDK_DEFAULT_TARGETS
=
JDK_ALL_TARGETS
=
JDK_ALL_TARGETS
=
# Stable othervm testruns (minus items from PROBLEM_LIST)
# 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
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_beans1
JDK_ALL_TARGETS
+=
jdk_beans1
JDK_DEFAULT_TARGETS
+=
jdk_beans1
JDK_DEFAULT_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
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# 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
\
java/beans/PropertyEditor)
java/beans/PropertyEditor)
$(
call
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# 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
Run
Othervm
Batch
)
$(
call
RunBatch
)
# All beans tests
# All beans tests
jdk_beans
:
jdk_beans1 jdk_beans2 jdk_beans3
jdk_beans
:
jdk_beans1 jdk_beans2 jdk_beans3
@
$(SummaryInfo)
@
$(SummaryInfo)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_io
JDK_ALL_TARGETS
+=
jdk_io
JDK_DEFAULT_TARGETS
+=
jdk_io
JDK_DEFAULT_TARGETS
+=
jdk_io
jdk_io
:
$(call TestDirs
,
java/io)
jdk_io
:
$(call TestDirs
,
java/io)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_lang
JDK_ALL_TARGETS
+=
jdk_lang
JDK_DEFAULT_TARGETS
+=
jdk_lang
JDK_DEFAULT_TARGETS
+=
jdk_lang
jdk_lang
:
$(call TestDirs
,
java/lang sun/invoke sun/misc sun/reflect vm)
jdk_lang
:
$(call TestDirs
,
java/lang sun/invoke sun/misc sun/reflect vm)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using agentvm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_jmx
JDK_ALL_TARGETS
+=
jdk_jmx
jdk_jmx
:
$(call TestDirs
,
javax/management com/sun/jmx)
jdk_jmx
:
$(call TestDirs
,
javax/management com/sun/jmx)
$(
call
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using agentvm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_management
JDK_ALL_TARGETS
+=
jdk_management
jdk_management
:
$(call TestDirs
,
com/sun/management sun/management)
jdk_management
:
$(call TestDirs
,
com/sun/management sun/management)
$(
call
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_math
JDK_ALL_TARGETS
+=
jdk_math
JDK_DEFAULT_TARGETS
+=
jdk_math
JDK_DEFAULT_TARGETS
+=
jdk_math
jdk_math
:
$(call TestDirs
,
java/math)
jdk_math
:
$(call TestDirs
,
java/math)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (TestNG)
JDK_DEFAULT_TARGETS
+=
jdk_time
JDK_DEFAULT_TARGETS
+=
jdk_time
jdk_time
:
$(call TestDirs
,
java/time)
jdk_time
:
$(call TestDirs
,
java/time)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_other
JDK_ALL_TARGETS
+=
jdk_other
JDK_DEFAULT_TARGETS
+=
jdk_other
JDK_DEFAULT_TARGETS
+=
jdk_other
jdk_other
:
$(call TestDirs
,
\
jdk_other
:
$(call TestDirs
,
\
...
@@ -522,97 +485,79 @@ jdk_other: $(call TestDirs, \
...
@@ -522,97 +485,79 @@ jdk_other: $(call TestDirs, \
com/sun/corba
\
com/sun/corba
\
com/sun/tracing
\
com/sun/tracing
\
sun/usagetracker)
sun/usagetracker)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_net
JDK_ALL_TARGETS
+=
jdk_net
JDK_DEFAULT_TARGETS
+=
jdk_net
JDK_DEFAULT_TARGETS
+=
jdk_net
jdk_net
:
$(call TestDirs
,
com/sun/net java/net sun/net com/oracle/net)
jdk_net
:
$(call TestDirs
,
com/sun/net java/net sun/net com/oracle/net)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
jdk_nio
:
$(call TestDirs
,
java/nio sun/nio com/oracle/nio)
jdk_nio
:
$(call TestDirs
,
java/nio sun/nio com/oracle/nio)
$(
call
SharedLibraryPermissions,java/nio/channels
)
$(
call
SharedLibraryPermissions,java/nio/channels
)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# 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
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using agentvm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_rmi
JDK_ALL_TARGETS
+=
jdk_rmi
jdk_rmi
:
$(call TestDirs
,
java/rmi sun/rmi javax/rmi/ssl)
jdk_rmi
:
$(call TestDirs
,
java/rmi sun/rmi javax/rmi/ssl)
$(
call
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_security1
JDK_ALL_TARGETS
+=
jdk_security1
JDK_DEFAULT_TARGETS
+=
jdk_security1
JDK_DEFAULT_TARGETS
+=
jdk_security1
jdk_security1
:
$(call TestDirs
,
java/security)
jdk_security1
:
$(call TestDirs
,
java/security)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# 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
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# 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
\
com/oracle/security)
com/oracle/security)
$(
call
SharedLibraryPermissions,sun/security
)
$(
call
SharedLibraryPermissions,sun/security
)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# 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 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
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# 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
Run
Othervm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_text
JDK_ALL_TARGETS
+=
jdk_text
JDK_DEFAULT_TARGETS
+=
jdk_text
JDK_DEFAULT_TARGETS
+=
jdk_text
jdk_text
:
$(call TestDirs
,
java/text sun/text)
jdk_text
:
$(call TestDirs
,
java/text sun/text)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_jdi
JDK_ALL_TARGETS
+=
jdk_jdi
jdk_jdi
:
$(call TestDirs
,
com/sun/jdi)
jdk_jdi
:
$(call TestDirs
,
com/sun/jdi)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using agentvm has serious problems with these tests
JDK_ALL_TARGETS
+=
jdk_tools
JDK_ALL_TARGETS
+=
jdk_tools
jdk_tools
:
$(call TestDirs
,
com/sun/tools sun/jvmstat sun/tools tools)
jdk_tools
:
$(call TestDirs
,
com/sun/tools sun/jvmstat sun/tools tools)
$(
call
SharedLibraryPermissions,tools/launcher
)
$(
call
SharedLibraryPermissions,tools/launcher
)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# Stable othervm testruns (minus items from PROBLEM_LIST)
# Using agentvm has serious problems with these tests
ifdef
OPENJDK
ifdef
OPENJDK
jdk_jfr
:
jdk_jfr
:
else
else
JDK_ALL_TARGETS
+=
jdk_jfr
JDK_ALL_TARGETS
+=
jdk_jfr
jdk_jfr
:
$(call TestDirs
,
com/oracle/jfr)
jdk_jfr
:
$(call TestDirs
,
com/oracle/jfr)
$(
call
Run
Othervm
Batch
)
$(
call
RunBatch
)
endif
endif
# Stable agentvm testruns (minus items from PROBLEM_LIST)
JDK_ALL_TARGETS
+=
jdk_util
JDK_ALL_TARGETS
+=
jdk_util
JDK_DEFAULT_TARGETS
+=
jdk_util
JDK_DEFAULT_TARGETS
+=
jdk_util
jdk_util
:
$(call TestDirs
,
java/util sun/util)
jdk_util
:
$(call TestDirs
,
java/util sun/util)
$(
call
Run
Agentvm
Batch
)
$(
call
RunBatch
)
# ------------------------------------------------------------------
# ------------------------------------------------------------------
...
@@ -638,10 +583,14 @@ PHONY_LIST += $(JDK_ALL_TARGETS) jdk_default jdk_core jdk_all
...
@@ -638,10 +583,14 @@ PHONY_LIST += $(JDK_ALL_TARGETS) jdk_default jdk_core jdk_all
# ------------------------------------------------------------------
# ------------------------------------------------------------------
ifdef
CONCURRENCY
EXTRA_JTREG_OPTIONS
+=
-concurrency
:
$(CONCURRENCY)
endif
# 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 (agentvm etc.)
#
run in agentvm mode
JTREG_BASIC_OPTIONS
+=
$(EXTRA_JTREG_OPTIONS)
JTREG_BASIC_OPTIONS
+=
-agentvm
# Only run automatic tests
# Only run automatic tests
JTREG_BASIC_OPTIONS
+=
-a
JTREG_BASIC_OPTIONS
+=
-a
# Always turn on assertions
# Always turn on assertions
...
@@ -660,6 +609,13 @@ JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
...
@@ -660,6 +609,13 @@ JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
# Set the max memory for jtreg control vm
# Set the max memory for jtreg control vm
JTREG_MEMORY_OPTION
=
-J-Xmx512m
JTREG_MEMORY_OPTION
=
-J-Xmx512m
JTREG_BASIC_OPTIONS
+=
$(JTREG_MEMORY_OPTION)
JTREG_BASIC_OPTIONS
+=
$(JTREG_MEMORY_OPTION)
# Add any extra options
JTREG_BASIC_OPTIONS
+=
$(EXTRA_JTREG_OPTIONS)
# Set other vm and test options
JTREG_TEST_OPTIONS
=
$
(
JAVA_ARGS:%
=
-javaoptions
:%
)
$
(
JAVA_VM_ARGS:%
=
-vmoption
:%
)
# Set the GC options for test vms
#JTREG_GC_OPTION = -vmoption:-XX:+UseSerialGC
#JTREG_TEST_OPTIONS += $(JTREG_GC_OPTION)
# Set the max memory for jtreg target test vms
# Set the max memory for jtreg target test vms
JTREG_TESTVM_MEMORY_OPTION
=
-vmoption
:-Xmx512m
JTREG_TESTVM_MEMORY_OPTION
=
-vmoption
:-Xmx512m
JTREG_TEST_OPTIONS
+=
$(JTREG_TESTVM_MEMORY_OPTION)
JTREG_TEST_OPTIONS
+=
$(JTREG_TESTVM_MEMORY_OPTION)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录