Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8
提交
3ab59414
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ab59414
编写于
6月 29, 2010
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
ec8244d5
4f34a58f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
80 addition
and
25 deletion
+80
-25
Makefile
Makefile
+65
-11
make/Defs-internal.gmk
make/Defs-internal.gmk
+0
-1
make/jprt.gmk
make/jprt.gmk
+2
-2
make/sanity-rules.gmk
make/sanity-rules.gmk
+0
-1
test/Makefile
test/Makefile
+13
-10
未找到文件。
Makefile
浏览文件 @
3ab59414
#
#
# Copyright (c) 1995, 20
09
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 1995, 20
10
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
#
# This code is free software; you can redistribute it and/or modify it
# This code is free software; you can redistribute it and/or modify it
...
@@ -29,10 +29,6 @@ ifndef TOPDIR
...
@@ -29,10 +29,6 @@ ifndef TOPDIR
TOPDIR
:=
.
TOPDIR
:=
.
endif
endif
ifndef
CONTROL_TOPDIR
CONTROL_TOPDIR
=
$(TOPDIR)
endif
# Openjdk sources (only used if SKIP_OPENJDK_BUILD!=true)
# Openjdk sources (only used if SKIP_OPENJDK_BUILD!=true)
OPENJDK_SOURCETREE
=
$(TOPDIR)
/openjdk
OPENJDK_SOURCETREE
=
$(TOPDIR)
/openjdk
OPENJDK_BUILDDIR
:=
$(
shell
\
OPENJDK_BUILDDIR
:=
$(
shell
\
...
@@ -120,7 +116,7 @@ endif
...
@@ -120,7 +116,7 @@ endif
all_product_build
::
all_product_build
::
@
$(FINISH_ECHO)
@
$(FINISH_ECHO)
# Generi
s
build of basic repo series
# Generi
c
build of basic repo series
generic_build_repo_series
::
generic_build_repo_series
::
$(MKDIR)
-p
$(OUTPUTDIR)
$(MKDIR)
-p
$(OUTPUTDIR)
$(MKDIR)
-p
$(OUTPUTDIR)
/j2sdk-image
$(MKDIR)
-p
$(OUTPUTDIR)
/j2sdk-image
...
@@ -179,11 +175,15 @@ endif
...
@@ -179,11 +175,15 @@ endif
# The install process needs to know what the DEBUG_NAME is, so
# The install process needs to know what the DEBUG_NAME is, so
# look for INSTALL_DEBUG_NAME in the install rules.
# look for INSTALL_DEBUG_NAME in the install rules.
#
#
# NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME).
# Due to the use of short paths in $(ABS_OUTPUTDIR), this may
# not be the same location.
#
# Location of fresh bootdir output
# Location of fresh bootdir output
ABS_BOOTDIR_OUTPUTDIR
=
$(ABS_OUTPUTDIR)
/bootjdk
ABS_BOOTDIR_OUTPUTDIR
=
$(ABS_OUTPUTDIR)
/bootjdk
FRESH_BOOTDIR
=
$(ABS_BOOTDIR_OUTPUTDIR)
/j2sdk-image
FRESH_BOOTDIR
=
$(ABS_BOOTDIR_OUTPUTDIR)
/j2sdk-image
FRESH_DEBUG_BOOTDIR
=
$(ABS_BOOTDIR_OUTPUTDIR)
-
$(DEBUG_NAME)
/j2sdk-image
FRESH_DEBUG_BOOTDIR
=
$(ABS_BOOTDIR_OUTPUTDIR)
/../
$(PLATFORM)
-
$(ARCH)
-
$(DEBUG_NAME)
/j2sdk-image
create_fresh_product_bootdir
:
FRC
create_fresh_product_bootdir
:
FRC
@
$(START_ECHO)
@
$(START_ECHO)
...
@@ -248,10 +248,14 @@ build_product_image:
...
@@ -248,10 +248,14 @@ build_product_image:
generic_build_repo_series
generic_build_repo_series
@
$(FINISH_ECHO)
@
$(FINISH_ECHO)
# NOTE: On windows, do not use $(ABS_OUTPUTDIR)-$(DEBUG_NAME).
# Due to the use of short paths in $(ABS_OUTPUTDIR), this may
# not be the same location.
generic_debug_build
:
generic_debug_build
:
@
$(START_ECHO)
@
$(START_ECHO)
$(MAKE)
\
$(MAKE)
\
ALT_OUTPUTDIR
=
$(ABS_OUTPUTDIR)
-
$(DEBUG_NAME)
\
ALT_OUTPUTDIR
=
$(ABS_OUTPUTDIR)
/../
$(PLATFORM)
-
$(ARCH)
-
$(DEBUG_NAME)
\
DEBUG_NAME
=
$(DEBUG_NAME)
\
DEBUG_NAME
=
$(DEBUG_NAME)
\
GENERATE_DOCS
=
false
\
GENERATE_DOCS
=
false
\
$(BOOT_CYCLE_DEBUG_SETTINGS)
\
$(BOOT_CYCLE_DEBUG_SETTINGS)
\
...
@@ -348,8 +352,8 @@ endif
...
@@ -348,8 +352,8 @@ endif
clobber
::
clobber
::
$(RM)
-r
$(OUTPUTDIR)
/
*
$(RM)
-r
$(OUTPUTDIR)
/
*
$(RM)
-r
$(OUTPUTDIR)
-debug
/
*
$(RM)
-r
$(OUTPUTDIR)
/../
$(PLATFORM)
-
$(ARCH)
-debug
/
*
$(RM)
-r
$(OUTPUTDIR)
-fastdebug
/
*
$(RM)
-r
$(OUTPUTDIR)
/../
$(PLATFORM)
-
$(ARCH)
-fastdebug
/
*
-
(
$(RMDIR)
-p
$(OUTPUTDIR)
>
$(DEV_NULL)
2>&1
;
$(TRUE)
)
-
(
$(RMDIR)
-p
$(OUTPUTDIR)
>
$(DEV_NULL)
2>&1
;
$(TRUE)
)
clean
:
clobber
clean
:
clobber
...
@@ -550,6 +554,56 @@ ifeq ($(BUNDLE_RULES_AVAILABLE), true)
...
@@ -550,6 +554,56 @@ ifeq ($(BUNDLE_RULES_AVAILABLE), true)
include
$(BUNDLE_RULES)
include
$(BUNDLE_RULES)
endif
endif
################################################################
# rule to test
################################################################
.NOTPARALLEL
:
test
test
:
test_clean test_start test_summary
test_start
:
@
$(ECHO)
"Tests started at
`
$(DATE)
`
"
test_clean
:
$(RM)
$(OUTPUTDIR)
/test_failures.txt
$(OUTPUTDIR)
/test_log.txt
test_summary
:
$(OUTPUTDIR)/test_failures.txt
@
$(ECHO)
"#################################################"
@
$(ECHO)
"Tests completed at
`
$(DATE)
`
"
@
(
$(EGREP)
'^TEST STATS:'
$(OUTPUTDIR)
/test_log.txt
\
||
$(ECHO)
"No TEST STATS seen in log"
)
@
$(ECHO)
"For complete details see:
$(OUTPUTDIR)
/test_log.txt"
@
$(ECHO)
"#################################################"
@
if
[
-s
$<
]
;
then
\
$(ECHO)
"ERROR: Test failure count:
`
$(CAT)
$<
|
$(WC)
-l
`
"
;
\
$(CAT)
$<
;
\
exit
1
;
\
else
\
$(ECHO)
"Success! No failures detected"
;
\
fi
# Get failure list from log
$(OUTPUTDIR)/test_failures.txt
:
$(OUTPUTDIR)/test_log.txt
@
$(RM)
$@
@
(
$(EGREP)
'^FAILED:'
$<
||
$(ECHO)
""
)
>
$@
# Get log file of all tests run
JDK_TO_TEST
:=
$(
shell
\
if
[
-d
"
$(ABS_OUTPUTDIR)
/j2sdk-image"
]
;
then
\
$(ECHO)
"
$(ABS_OUTPUTDIR)
/j2sdk-image"
;
\
elif
[
-d
"
$(ABS_OUTPUTDIR)
/bin"
]
;
then
\
$(ECHO)
"
$(ABS_OUTPUTDIR)
"
;
\
elif
[
"
$(PRODUCT_HOME)
"
!=
""
-a
-d
"
$(PRODUCT_HOME)
/bin"
]
;
then
\
$(ECHO)
"
$(PRODUCT_HOME)
"
;
\
fi
\
)
$(OUTPUTDIR)/test_log.txt
:
$(RM)
$@
(
$(CD)
test
&&
\
$(MAKE)
NO_STOPPING
=
-
PRODUCT_HOME
=
$(JDK_TO_TEST)
\
)
|
tee
$@
################################################################
################################################################
# JPRT rule to build
# JPRT rule to build
################################################################
################################################################
...
@@ -560,7 +614,7 @@ include ./make/jprt.gmk
...
@@ -560,7 +614,7 @@ include ./make/jprt.gmk
# PHONY
# PHONY
################################################################
################################################################
.PHONY
:
all
\
.PHONY
:
all
test test_start test_summary test_clean
\
generic_build_repo_series
\
generic_build_repo_series
\
what clobber insane
\
what clobber insane
\
dev dev-build dev-sanity dev-clobber
\
dev dev-build dev-sanity dev-clobber
\
...
...
make/Defs-internal.gmk
浏览文件 @
3ab59414
...
@@ -52,7 +52,6 @@ ifdef OPENJDK
...
@@ -52,7 +52,6 @@ ifdef OPENJDK
endif
endif
# Define absolute paths to TOPDIRs
# Define absolute paths to TOPDIRs
ABS_CONTROL_TOPDIR:=$(call OptFullPath,"$(CONTROL_TOPDIR)")
ABS_LANGTOOLS_TOPDIR:=$(call OptFullPath,"$(LANGTOOLS_TOPDIR)")
ABS_LANGTOOLS_TOPDIR:=$(call OptFullPath,"$(LANGTOOLS_TOPDIR)")
ABS_CORBA_TOPDIR:=$(call OptFullPath,"$(CORBA_TOPDIR)")
ABS_CORBA_TOPDIR:=$(call OptFullPath,"$(CORBA_TOPDIR)")
ABS_JAXP_TOPDIR:=$(call OptFullPath,"$(JAXP_TOPDIR)")
ABS_JAXP_TOPDIR:=$(call OptFullPath,"$(JAXP_TOPDIR)")
...
...
make/jprt.gmk
浏览文件 @
3ab59414
...
@@ -45,11 +45,11 @@ ifdef HAVE_JPRT_SAVE_BUNDLES
...
@@ -45,11 +45,11 @@ ifdef HAVE_JPRT_SAVE_BUNDLES
endif
endif
jprt_build_fastdebug: fastdebug_build
jprt_build_fastdebug: fastdebug_build
( $(CD) $(OUTPUTDIR)-fastdebug/j2sdk-image && \
( $(CD) $(OUTPUTDIR)
/../$(PLATFORM)-$(ARCH)
-fastdebug/j2sdk-image && \
$(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . )
$(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . )
jprt_build_debug: debug_build
jprt_build_debug: debug_build
( $(CD) $(OUTPUTDIR)-debug/j2sdk-image && \
( $(CD) $(OUTPUTDIR)
/../$(PLATFORM)-$(ARCH)
-debug/j2sdk-image && \
$(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . )
$(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . )
################################################################
################################################################
...
...
make/sanity-rules.gmk
浏览文件 @
3ab59414
...
@@ -281,7 +281,6 @@ endif
...
@@ -281,7 +281,6 @@ endif
@$(ECHO) "Build Directory Structure:" >> $(MESSAGE_FILE)
@$(ECHO) "Build Directory Structure:" >> $(MESSAGE_FILE)
@$(ECHO) " CWD = `$(PWD)`" >> $(MESSAGE_FILE)
@$(ECHO) " CWD = `$(PWD)`" >> $(MESSAGE_FILE)
@$(ECHO) " TOPDIR = $(TOPDIR)" >> $(MESSAGE_FILE)
@$(ECHO) " TOPDIR = $(TOPDIR)" >> $(MESSAGE_FILE)
@$(ECHO) " CONTROL_TOPDIR = $(CONTROL_TOPDIR)" >> $(MESSAGE_FILE)
ifeq ($(LANGTOOLS_SRC_AVAILABLE), true)
ifeq ($(LANGTOOLS_SRC_AVAILABLE), true)
@$(ECHO) " LANGTOOLS_TOPDIR = $(LANGTOOLS_TOPDIR)" >> $(MESSAGE_FILE)
@$(ECHO) " LANGTOOLS_TOPDIR = $(LANGTOOLS_TOPDIR)" >> $(MESSAGE_FILE)
endif
endif
...
...
test/Makefile
浏览文件 @
3ab59414
...
@@ -54,30 +54,33 @@ LANGTOOLS_TEST_LIST = langtools_jtreg
...
@@ -54,30 +54,33 @@ LANGTOOLS_TEST_LIST = langtools_jtreg
# Test target list for jdk repository
# Test target list for jdk repository
JDK_TEST_LIST
=
\
JDK_TEST_LIST
=
\
jdk_awt
\
jdk_beans1 jdk_beans2 jdk_beans3
\
jdk_beans jdk_beans1 jdk_beans2 jdk_beans3
\
jdk_io
\
jdk_io
\
jdk_lang
\
jdk_lang
\
jdk_management
jdk_management
1 jdk_management2
\
jdk_management1 jdk_management2
\
jdk_math
\
jdk_math
\
jdk_misc
\
jdk_misc
\
jdk_net
\
jdk_net
\
jdk_nio jdk_nio1 jdk_nio2 jdk_nio3
\
jdk_nio1 jdk_nio2 jdk_nio3
\
jdk_rmi
\
jdk_security1 jdk_security2 jdk_security3
\
jdk_security jdk_security1 jdk_security2 jdk_security3
\
jdk_swing
\
jdk_text
\
jdk_text
\
jdk_tools
jdk_tools
1 jdk_tools2
\
jdk_tools1 jdk_tools2
\
jdk_util
jdk_util
# These tests need a DISPLAY and can create window interaction complications
JDK_TEST_LIST2
=
\
jdk_awt
\
jdk_rmi
\
jdk_swing
# Default test target (everything)
# Default test target (everything)
all
:
$(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
all
:
$(JDK_TEST_LIST) $(LANGTOOLS_TEST_LIST)
# Test targets
# Test targets
$(LANGTOOLS_TEST_LIST)
:
$(LANGTOOLS_TEST_LIST)
:
@
$(
call
SUBDIR_TEST,
$(LANGTOOLS_DIR)
,
$(
subst
langtools_,,
$@
))
@
$(
NO_STOPPING)
$(
call
SUBDIR_TEST,
$(LANGTOOLS_DIR)
,
$(
subst
langtools_,,
$@
))
$(JDK_TEST_LIST)
:
$(JDK_TEST_LIST)
:
@
$(
call
SUBDIR_TEST,
$(JDK_DIR)
,
$@
)
@
$(
NO_STOPPING)
$(
call
SUBDIR_TEST,
$(JDK_DIR)
,
$@
)
clean
:
clean
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录