Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8
提交
3fb28d71
D
dragonwell8
项目概览
openanolis
/
dragonwell8
通知
5
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3fb28d71
编写于
4月 25, 2019
作者:
S
sgehwolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8222737: [TESTBUG] Allow for tier 1 like testing in OpenJDK 8u
Reviewed-by: shade, adinn, andrew
上级
937c195f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
56 addition
and
3 deletion
+56
-3
Makefile
Makefile
+3
-1
make/Main.gmk
make/Main.gmk
+6
-0
test/Makefile
test/Makefile
+47
-2
未找到文件。
Makefile
浏览文件 @
3fb28d71
...
@@ -101,7 +101,7 @@ help:
...
@@ -101,7 +101,7 @@ help:
$
(
info
.
# generated by configure
)
$
(
info
.
# generated by configure
)
$
(
info
.
make dist-clean
# Remove all files, including configuration
)
$
(
info
.
make dist-clean
# Remove all files, including configuration
)
$
(
info
.
make
help
# Give some help on using make
)
$
(
info
.
make
help
# Give some help on using make
)
$
(
info
.
make
test
# Run tests, default is
all tests
(
see TEST below
))
$
(
info
.
make
test
# Run tests, default is
"jdk_core langtools_jtreg"
(
see TEST below
))
$(info )
$(info )
$
(
info Targets
for
specific components
)
$
(
info Targets
for
specific components
)
$
(
info
(
Component is any of langtools, corba, jaxp, jaxws, hotspot, jdk, nashorn, images, overlay-images, docs or
test
))
$
(
info
(
Component is any of langtools, corba, jaxp, jaxws, hotspot, jdk, nashorn, images, overlay-images, docs or
test
))
...
@@ -125,6 +125,8 @@ help:
...
@@ -125,6 +125,8 @@ help:
$(info )
$(info )
$
(
info
.
make
test
TEST
=
<
test
>
# Only run the given test or tests, e.g.
)
$
(
info
.
make
test
TEST
=
<
test
>
# Only run the given test or tests, e.g.
)
$
(
info
.
# make test TEST="jdk_lang jdk_net"
)
$
(
info
.
# make test TEST="jdk_lang jdk_net"
)
$
(
info
.
# or
)
$
(
info
.
# make test TEST="tier1"
)
$(info )
$(info )
.PHONY
:
help
.PHONY
:
help
make/Main.gmk
浏览文件 @
3fb28d71
...
@@ -172,11 +172,17 @@ bootcycle-images-only: start-make
...
@@ -172,11 +172,17 @@ bootcycle-images-only: start-make
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
@($(CD) $(SRC_ROOT) && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
@($(CD) $(SRC_ROOT) && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
# If the tests produced a $(TEST)_exitcode.txt file, use the number in that
# file for the exit code of the "make test" invocation.
test: images test-only
test: images test-only
test-only: start-make
test-only: start-make
@$(call TargetEnter)
@$(call TargetEnter)
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
@$(call TargetExit)
@$(call TargetExit)
@(if [ -r $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt ]; then \
EXIT=$$($(CAT) $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt); \
exit $${EXIT}; \
fi)
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be
# used to track the exact sources used to build that image.
# used to track the exact sources used to build that image.
...
...
test/Makefile
浏览文件 @
3fb28d71
...
@@ -50,6 +50,22 @@ else \
...
@@ -50,6 +50,22 @@ else \
fi
fi
endef
endef
# Macro to print a summary for a given test subdirectory
define
SUBDIR_SUMMARY
# subdirectory to print summary
if
[
-d
$1
]
;
then
\
if
[
-r
$1/Stats.txt
]
;
then
\
cat
$1/Stats.txt;
\
echo
""
;
\
else
\
echo "ERROR
:
File does not exist: $1/Stats.txt";
\
exit 1;
\
fi;
\
else
\
echo "WARNING: Expected directory does not exist: $1";
\
echo " Test summary might be incorrect.";
\
fi
endef
# Default test target (core)
# Default test target (core)
default
:
jdk_core langtools_jtreg
default
:
jdk_core langtools_jtreg
...
@@ -58,7 +74,7 @@ all: jdk_all langtools_all
...
@@ -58,7 +74,7 @@ all: jdk_all langtools_all
# Test targets
# Test targets
langtools_%
:
langtools_%
:
@
$(NO_STOPPING)
$(
call
SUBDIR_TEST,
$(LANGTOOLS_DIR)
,
JT_JAVA
=
$(PRODUCT_HOME)
JTREG_HOME
=
$(JT_HOME)
TEST
=
"
$(
subst
langtools_,,
$@
)
"
$(
subst
langtools_,,
$@
))
@
$(NO_STOPPING)
$(
call
SUBDIR_TEST,
$(LANGTOOLS_DIR)
,
JT_JAVA
=
$(PRODUCT_HOME)
JTREG_HOME
=
$(JT_HOME)
UNIQUE_DIR
=
"
$@
"
TEST
=
"
$(
subst
langtools_,,
$@
)
"
$(
subst
langtools_,,
$@
))
jdk_% core_%s svc_%
:
jdk_% core_%s svc_%
:
@
$(NO_STOPPING)
$(
call
SUBDIR_TEST,
$(JDK_DIR)
,
TEST
=
"
$@
"
$@
)
@
$(NO_STOPPING)
$(
call
SUBDIR_TEST,
$(JDK_DIR)
,
TEST
=
"
$@
"
$@
)
...
@@ -66,6 +82,35 @@ jdk_% core_%s svc_%:
...
@@ -66,6 +82,35 @@ jdk_% core_%s svc_%:
hotspot_%
:
hotspot_%
:
@
$(NO_STOPPING)
$(
call
SUBDIR_TEST,
$(HOTSPOT_DIR)
,
TEST
=
"
$@
"
$@
)
@
$(NO_STOPPING)
$(
call
SUBDIR_TEST,
$(HOTSPOT_DIR)
,
TEST
=
"
$@
"
$@
)
# Variables for tier1 testing
TIER1_TESTOUTPUT
=
"
$(ALT_OUTPUTDIR)
/testoutput"
TIER1_STATUS_FILE
=
"
$(TIER1_TESTOUTPUT)
/tier1_exitcode.txt"
# Note: Test failures are handled via summary_tier1 as the
# tier1 targets are never aborted even if tests fail.
tier1
:
prep_tier1 jdk_tier1 langtools_tier1 hotspot_tier1 summary_tier1
prep_tier1
:
@
rm
-rf
$(TIER1_STATUS_FILE)
# This relies on jdk_tier1, langtools_tier1, hotspot_tier1 producing
# Stats.txt (summary) and exitcode.txt files.
summary_tier1
:
@
(
EXIT_VAL
=
0
;
\
echo
""
;
\
echo
"-------------- Test Summary ------------"
;
\
echo
""
;
\
for
test_dir
in
$$
(
find
"
$(ALT_OUTPUTDIR)
"
-type
d
-name
\*
_tier1
)
;
do
\
$(
call
SUBDIR_SUMMARY,
$
${test_dir}
)
;
\
EXIT_VAL
=
$$
(
expr
$
${EXIT_VAL}
+
$$
(
cat
$
${test_dir}
/exitcode.txt
))
;
\
done
;
\
echo
$
${EXIT_VAL}
>
$(TIER1_STATUS_FILE)
;
\
echo
"For details see:"
;
\
echo
$(TIER1_TESTOUTPUT)
;
\
echo
""
;
\
echo
"-------------- Test Summary ------------"
;
\
echo
""
)
#
#
# jtreg_tests
# jtreg_tests
#
#
...
@@ -95,6 +140,6 @@ jtreg_tests:
...
@@ -95,6 +140,6 @@ jtreg_tests:
################################################################
################################################################
# Phony targets (e.g. these are not filenames)
# Phony targets (e.g. these are not filenames)
.PHONY
:
all clean
.PHONY
:
all clean
summary_tier1 prep_tier1
################################################################
################################################################
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录