Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8
提交
84a53a9b
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,发现更多精彩内容 >>
提交
84a53a9b
编写于
10月 31, 2012
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
2611af41
9e5bd632
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
528 addition
and
190 deletion
+528
-190
.hgtags
.hgtags
+2
-0
README-builds.html
README-builds.html
+244
-128
make/jprt.properties
make/jprt.properties
+6
-8
make/scripts/fixpath.pl
make/scripts/fixpath.pl
+169
-0
make/scripts/vsvars.sh
make/scripts/vsvars.sh
+101
-50
test/Makefile
test/Makefile
+6
-4
未找到文件。
.hgtags
浏览文件 @
84a53a9b
...
...
@@ -182,3 +182,5 @@ b85b44cced2406792cfb9baab1377ff03e7001d8 jdk8-b55
9367024804874faf8e958adeb333682bab1c0c47 jdk8-b58
dae9821589ccd2611bdf7084269b98e819091770 jdk8-b59
e07f499b9dccb529ecf74172cf6ac11a195ec57a jdk8-b60
20ff117b509075c3aec4ee3a57990ecd5db5df9c jdk8-b61
8a3fe0ae06a8cc21347da5a18384b0aa6c2349f5 jdk8-b62
README-builds.html
浏览文件 @
84a53a9b
此差异已折叠。
点击以展开。
make/jprt.properties
浏览文件 @
84a53a9b
...
...
@@ -79,20 +79,18 @@ jprt.make.rule.core.test.targets= \
${jprt.my.test.target.set:TESTNAME=jdk_util},
\
${jprt.my.test.target.set:TESTNAME=jdk_io},
\
${jprt.my.test.target.set:TESTNAME=jdk_net},
\
${jprt.my.test.target.set:TESTNAME=jdk_nio1},
\
${jprt.my.test.target.set:TESTNAME=jdk_nio2},
\
${jprt.my.test.target.set:TESTNAME=jdk_nio3},
\
${jprt.my.test.target.set:TESTNAME=jdk_nio},
\
${jprt.my.test.target.set:TESTNAME=jdk_security1},
\
${jprt.my.test.target.set:TESTNAME=jdk_security2},
\
${jprt.my.test.target.set:TESTNAME=jdk_security3},
\
${jprt.my.test.target.set:TESTNAME=jdk_rmi},
\
${jprt.my.test.target.set:TESTNAME=jdk_management
1},
\
${jprt.my.test.target.set:TESTNAME=jdk_
management2},
\
${jprt.my.test.target.set:TESTNAME=jdk_management
},
\
${jprt.my.test.target.set:TESTNAME=jdk_
jmx},
\
${jprt.my.test.target.set:TESTNAME=jdk_text},
\
${jprt.my.test.target.set:TESTNAME=jdk_tools
1},
\
${jprt.my.test.target.set:TESTNAME=jdk_
tools2},
\
${jprt.my.test.target.set:TESTNAME=jdk_tools
},
\
${jprt.my.test.target.set:TESTNAME=jdk_
jdi},
\
${jprt.my.test.target.set:TESTNAME=jdk_jfr},
\
${jprt.my.test.target.set:TESTNAME=jdk_
misc
}
${jprt.my.test.target.set:TESTNAME=jdk_
other
}
# All vm test targets (testset=all)
jprt.vm.all.test.targets
=
\
...
...
make/scripts/fixpath.pl
0 → 100644
浏览文件 @
84a53a9b
#!/bin/perl
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# Crunch down the input(s) to Windows short (mangled) form.
# Any elements not actually found in the filesystem will be dropped.
#
# This script needs three modes:
# 1) DOS mode with drive letter followed by : and ; path separator
# 2) Cygwin mode with /cygdrive/<drive letter>/ and : path separator
# 3) MinGW/MSYS mode with /<drive letter>/ and : path separator
use
strict
;
use
warnings
;
use
Getopt::
Std
;
sub
Usage
()
{
print
("
Usage:
\n
$0 -d | -c | -m
\
<PATH
\
>
\n
");
print
("
-d DOS style (drive letter, :, and ; path separator)
\n
");
print
("
-c Cywgin style (/cygdrive/drive/ and : path separator)
\n
");
print
("
-m MinGW style (/drive/ and : path separator)
\n
");
exit
1
;
}
# Process command line options:
my
%opts
;
getopts
('
dcm
',
\
%opts
)
||
Usage
();
if
(
scalar
(
@ARGV
)
!=
1
)
{
Usage
()};
# Translate drive letters such as C:/
# if MSDOS, Win32::GetShortPathName() does the work (see below).
# if Cygwin, use the /cygdrive/c/ form.
# if MinGW, use the /c/ form.
my
$path0
;
my
$sep2
;
if
(
defined
(
$opts
{'
d
'}))
{
#MSDOS
$path0
=
'';
$sep2
=
'
;
';
}
elsif
(
defined
(
$opts
{'
c
'}))
{
#Cygwin
$path0
=
'
/cygdrive
';
$sep2
=
'
:
';
}
elsif
(
defined
(
$opts
{'
m
'}))
{
#MinGW/MSYS
$path0
=
'';
$sep2
=
'
:
';
}
else
{
Usage
();
}
my
$input
=
$ARGV
[
0
];
my
$sep1
;
# Is the input ';' separated, or ':' separated, or a simple string?
if
((
$input
=~
tr/;/;/
)
>
0
)
{
# One or more ';' implies Windows style path.
$sep1
=
'
;
';
}
elsif
((
$input
=~
tr/:/:/
)
>
1
)
{
# Two or more ':' implies Cygwin or MinGW/MSYS style path.
$sep1
=
'
:
';
}
else
{
# Otherwise, this is not a path - take up to the end of string in
# one piece.
$sep1
=
'
/$/
';
}
# Split the input on $sep1 PATH separator and process the pieces.
my
@pieces
;
for
(
split
(
$sep1
,
$input
))
{
my
$try
=
$_
;
if
((
$try
=~
/^\/cygdrive\/(.)\/(.*)$/
)
||
(
$try
=~
/^\/(.)\/(.*)$/
))
{
# Special case #1: This is a Cygwin /cygrive/<drive letter/ path.
# Special case #2: This is a MinGW/MSYS /<drive letter/ path.
$try
=
$
1
.
'
:/
'
.
$
2
;
}
elsif
(
$try
=~
/^\/(.*)$/
)
{
# Special case #3: check for a Cygwin or MinGW/MSYS form with a
# leading '/' for example '/usr/bin/bash'.
# Look up where this is mounted and rebuild the
# $try string with that information
my
$cmd
=
"
df --portability --all --human-readable
$try
";
my
$line
=
qx ($cmd);
my
$status
=
$?
;
if
(
$status
==
0
)
{
my
@lines
=
split
('
\n
',
$line
);
my
(
$device
,
$junk
,
$mountpoint
);
# $lines[0] is the df header.
# Example string for split - we want the first and last elements:
# C:\jprt\products\P1\MinGW\msys\1.0 200G 78G 123G 39% /usr
(
$device
,
$junk
,
$junk
,
$junk
,
$junk
,
$mountpoint
)
=
split
(
/\s+/
,
$lines
[
1
]);
# Replace $mountpoint with $device/ in the original string
$try
=~
s|$mountpoint|$device/|
;
}
else
{
printf
("
Error %d from command %s
\n
%s
\n
",
$status
,
$cmd
,
$line
);
}
}
my
$str
=
Win32::
GetShortPathName
(
$try
);
if
(
!
defined
(
$str
)){
# Special case #4: If the lookup did not work, loop through
# adding extensions listed in PATHEXT, looking for the first
# match.
for
(
split
('
;
',
$ENV
{'
PATHEXT
'}))
{
$str
=
Win32::
GetShortPathName
(
$try
.
$_
);
if
(
defined
(
$str
))
{
last
;
}
}
}
if
(
defined
(
$str
)){
if
(
!
defined
(
$opts
{'
d
'}))
{
# If not MSDOS, change C: to [/cygdrive]/c/
if
(
$str
=~
/^(\S):(.*)$/
)
{
my
$path1
=
$
1
;
my
$path2
=
$
2
;
$str
=
$path0
.
'
/
'
.
$path1
.
'
/
'
.
$path2
;
}
}
push
(
@pieces
,
$str
);
}
}
# If input was a PATH, join the pieces back together with $sep2 path
# separator.
my
$result
;
if
(
scalar
(
@pieces
>
1
))
{
$result
=
join
(
$sep2
,
@pieces
);
}
else
{
$result
=
$pieces
[
0
];
}
if
(
defined
(
$result
))
{
# Change all '\' to '/'
$result
=~
s/\\/\//g
;
# Remove duplicate '/'
$result
=~
s/\/\//\//g
;
# Map to lower case
$result
=~
tr/A-Z/a-z/
;
print
("
$result
\n
");
}
make/scripts/vsvars.sh
浏览文件 @
84a53a9b
#!/bin/sh
#
# Copyright (c) 2009, 201
0
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 201
2
, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -27,22 +27,6 @@
# variables normally set by the vcvars32.bat or vcvars64.bat file or
# SetEnv.cmd for older SDKs.
# Use cygpath?
isCygwin
=
"
`
uname
-s
|
grep
CYGWIN
`
"
if
[
"
${
isCygwin
}
"
!=
""
]
;
then
cygpath
=
"/usr/bin/cygpath"
cygpath_short
=
"
${
cygpath
}
-m -s"
cygpath_windows
=
"
${
cygpath
}
-w -s"
cygpath_path
=
"
${
cygpath
}
-p"
pathsep
=
':'
else
cygpath
=
"dosname"
cygpath_short
=
"
${
cygpath
}
-s"
cygpath_windows
=
"
${
cygpath
}
-s"
cygpath_path
=
"echo"
pathsep
=
';'
fi
########################################################################
# Error functions
msg
()
# message
...
...
@@ -60,8 +44,8 @@ warning() # message
}
envpath
()
# path
{
if
[
"
${
cygpath_short
}
"
!=
""
-a
-d
"
$1
"
]
;
then
${
cygpath_short
}
"
$1
"
if
[
"
${
fixpath
}
"
!=
""
-a
-d
"
$1
"
]
;
then
${
fixpath
}
"
$1
"
else
echo
"
$1
"
fi
...
...
@@ -72,14 +56,65 @@ envpath() # path
# Defaults settings
debug
=
"false"
verbose
=
"false"
shellStyle
=
"sh"
parentCsh
=
"
`
ps
-p
${
PPID
}
2> /dev/null |
grep
csh
`
"
if
[
"
${
parentCsh
}
"
!=
""
]
;
then
shellStyle
=
"csh"
fi
set
-e
CYGWIN
=
"nodosfilewarning ntsec"
export
CYGWIN
# pathsepIn is always ; because the input strings are coming from
# vcvarsxx.bat. This is true under all of MKS, Cygwin, MINGW/msys
pathsepIn
=
';'
OS
=
"
`
uname
-s
`
"
case
"
${
OS
}
"
in
CYGWIN
*
)
pathflag
=
'-c'
devnull
=
/dev/null
pathsepOut
=
':'
;;
MINGW
*
)
pathflag
=
'-m'
devnull
=
/dev/null
pathsepOut
=
':'
;;
*
)
# MKS?
# Continue using dosname -s
pathflag
=
'-s'
fixpath
=
"dosname
${
pathflag
}
"
fixpath_windows
=
"
${
fixpath
}
"
fixpath_path
=
"echo"
devnull
=
NUL
pathsepOut
=
';'
;;
esac
case
"
${
OS
}
"
in
CYGWIN
*
|
MINGW
*
)
t
=
`
dirname
${
0
}
`
wd
=
`
cd
${
t
}
2>
${
devnull
}
&&
pwd
`
fixpath_script
=
"
${
wd
}
/fixpath.pl"
if
[
!
-f
"
${
fixpath_script
}
"
]
;
then
error
"Does not exist:
${
fixpath_script
}
"
fi
fixpath
=
"perl
${
fixpath_script
}
${
pathflag
}
"
fixpath_windows
=
"perl
${
fixpath_script
}
-d"
fixpath_path
=
"
${
fixpath_windows
}
"
;;
esac
shellStyle
=
"sh"
## As far as I can tell from hg history, this has not worked
## for a long time because PPID is unset. When run under Cygwin
## the script quits due to the 1 return from grep.
##parentCsh="` ps -p ${PPID} 2> ${devnull} | grep csh `"
##if [ "${parentCsh}" != "" ] ; then
## shellStyle="csh"
##fi
# Check environment first
if
[
"
${
PROGRAMFILES
}
"
!=
""
]
;
then
progfiles
=
`
envpath
"
${
PROGRAMFILES
}
"
`
...
...
@@ -96,15 +131,19 @@ fi
# Arch data model
if
[
"
${
PROCESSOR_IDENTIFIER
}
"
!=
""
]
;
then
arch
=
`
echo
"
${
PROCESSOR_IDENTIFIER
}
"
|
cut
-d
' '
-f1
`
elif
[
"
${
MACHTYPE
}
"
!=
""
]
;
then
if
[
"
`
echo
${
MACHTYPE
}
|
grep
64
`
"
!=
""
]
;
then
# Assume this is X64, not IA64
arch
=
"x64"
else
if
[
"
${
MACHTYPE
}
"
!=
""
]
;
then
if
[
"
`
echo
${
MACHTYPE
}
|
grep
64
`
"
!=
""
]
;
then
# Assume this is X64, not IA64
arch
=
"x64"
else
arch
=
"x86"
fi
else
arch
=
"x86
"
arch
=
"
`
uname
-m
`
"
fi
else
arch
=
"
`
uname
-m
`
"
PROCESSOR_IDENTIFIER
=
"
${
arch
}
"
export
PROCESSOR_IDENTIFIER
fi
if
[
"
${
arch
}
"
=
"X86"
-o
\
"
${
arch
}
"
=
"386"
-o
"
${
arch
}
"
=
"i386"
-o
\
...
...
@@ -121,11 +160,11 @@ if [ "${arch}" = "X64" -o \
"
${
arch
}
"
=
"intel64"
-o
"
${
arch
}
"
=
"Intel64"
-o
\
"
${
arch
}
"
=
"64"
]
;
then
arch
=
"x64"
binarch64
=
"
/
amd64"
binarch64
=
"
\\
amd64"
fi
if
[
"
${
arch
}
"
=
"IA64"
]
;
then
arch
=
"ia64"
binarch64
=
"
/
ia64"
binarch64
=
"
\\
ia64"
fi
if
[
"
${
arch
}
"
!=
"x86"
-a
"
${
arch
}
"
!=
"x64"
-a
"
${
arch
}
"
!=
"ia64"
]
;
then
error
"No PROCESSOR_IDENTIFIER or MACHTYPE environment variables and uname -m is not helping"
...
...
@@ -342,25 +381,26 @@ checkPaths() # var path sep
}
# Remove all duplicate entries
removeDeadDups
()
# string sep
removeDeadDups
()
# string sep
In sepOut
{
set
-e
sep
=
"
$2
"
sepIn
=
"
$2
"
sepOut
=
"
$3
"
pathlist
=
"
${
tmp
}
/pathlist"
printf
"%s
\n
"
"
$1
"
|
\
sed
-e
's@\\@/@g'
|
\
sed
-e
's@//@/@g'
|
\
${
awk
}
-F
"
${
sep
}
"
'{for(i=1;i<=NF;i++){printf "%s\n",$i;}}'
\
${
awk
}
-F
"
${
sep
In
}
"
'{for(i=1;i<=NF;i++){printf "%s\n",$i;}}'
\
>
${
pathlist
}
upaths
=
"
${
tmp
}
/upaths"
cat
${
pathlist
}
|
while
read
orig
;
do
p
=
"
${
orig
}
"
if
[
"
${
cygpath_short
}
"
!=
""
]
;
then
if
[
"
${
fixpath
}
"
!=
""
]
;
then
if
[
"
${
p
}
"
!=
""
]
;
then
if
[
-d
"
${
p
}
"
]
;
then
short
=
`
${
cygpath_short
}
"
${
p
}
"
`
short
=
`
${
fixpath
}
"
${
p
}
"
`
if
[
"
${
short
}
"
!=
""
-a
-d
"
${
short
}
"
]
;
then
p
=
`
${
cygpath
}
"
${
short
}
"
`
p
=
"
${
short
}
"
fi
echo
"
${
p
}
"
>>
${
upaths
}
fi
...
...
@@ -374,11 +414,11 @@ removeDeadDups() # string sep
if
[
"
${
newpaths
}
"
=
""
]
;
then
newpaths
=
"
${
i
}
"
else
newpaths
=
"
${
newpaths
}${
sep
}${
i
}
"
newpaths
=
"
${
newpaths
}${
sep
Out
}${
i
}
"
fi
done
printf
"%s
\n
"
"
${
newpaths
}
"
|
\
${
awk
}
-F
"
${
sep
}
"
\
${
awk
}
-F
"
${
sep
Out
}
"
\
'{a[$1];printf "%s",$1;for(i=2;i<=NF;i++){if(!($i in a)){a[$i];printf "%s%s",FS,$i;}};printf "\n";}'
}
...
...
@@ -406,7 +446,7 @@ set VCINSTALLDIR=
set VSINSTALLDIR=
set WindowsSdkDir=
REM Run the vcvars bat file, send all output to stderr
call `
${
cygpath_windows
}
${
bdir
}
`
\\
${
command
}
> `
${
cyg
path_windows
}
"
${
stdout
}
"`
call `
${
fixpath_windows
}
${
bdir
}
`
\\
${
command
}
> `
${
fix
path_windows
}
"
${
stdout
}
"`
REM Echo out env var settings
echo VS_VS71COMNTOOLS="%VS71COMNTOOLS%"
echo export VS_VS71COMNTOOLS
...
...
@@ -447,9 +487,18 @@ EOF
# Create env file
createEnv
()
# batfile envfile
{
rm
-f
${
1
}
.stdout
cmd.exe /Q /C
`
${
cygpath_short
}
$1
`
|
\
sed
-e
's@\\@/@g'
|
\
rm
-f
${
1
}
.stdout
${
1
}
.temp1
${
1
}
.temp2
batfile
=
`
${
fixpath
}
${
1
}
`
cmd.exe
-Q
-C
<
"
$batfile
"
1>
${
1
}
.temp1 2>
${
1
}
.temp2
cat
${
1
}
.temp1 |
\
sed
-e
's@^Microsoft.*@@'
\
-e
's@^.*Copyright.*@@'
\
-e
's@^.*>REM.*@@'
\
-e
's@^.*>set.*@@'
\
-e
's@^.*>echo.*@@'
\
-e
's@^.*>call.*@@'
\
-e
's@^.*>$@@'
\
-e
's@\\@/@g'
|
\
sed
-e
's@//@/@g'
>
$2
if
[
-f
"
${
1
}
.stdout"
]
;
then
cat
${
1
}
.stdout 1>&2
...
...
@@ -485,7 +534,7 @@ printEnv() # name pname vsname val
#############################################################################
# Get Visual Studio settings
if
[
"
${
cyg
path
}
"
!=
""
]
;
then
if
[
"
${
fix
path
}
"
!=
""
]
;
then
# Create bat file to run
batfile
=
"
${
tmp
}
/vs-to-env.bat"
...
...
@@ -505,11 +554,11 @@ if [ "${cygpath}" != "" ] ; then
.
${
envfile
}
# Derive unix style path, save old, and define new (remove dups)
VS_UPATH
=
`
${
cyg
path_path
}
"
${
VS_WPATH
}
"
`
VS_UPATH
=
`
${
fix
path_path
}
"
${
VS_WPATH
}
"
`
export
VS_UPATH
VS_OPATH
=
`
printf
"%s"
"
${
PATH
}
"
|
sed
-e
's@\\\\@/@g'
`
export
VS_OPATH
VS_PATH
=
`
removeDeadDups
"
${
VS_UPATH
}${
pathsep
}${
VS_OPATH
}
"
"
${
pathsep
}
"
`
VS_PATH
=
`
removeDeadDups
"
${
VS_UPATH
}${
pathsep
In
}${
VS_OPATH
}
"
"
${
pathsepIn
}
"
"
${
pathsepOut
}
"
`
export
VS_PATH
fi
...
...
@@ -558,11 +607,13 @@ if [ "${verbose}" = "true" ] ; then
checkPaths
"Windows PATH"
"
${
VS_WPATH
}
"
";"
checkPaths LIB
"
${
VS_LIB
}
"
";"
checkPaths INCLUDE
"
${
VS_INCLUDE
}
"
";"
checkPaths PATH
"
${
VS_PATH
}
"
"
${
pathsep
}
"
checkPaths PATH
"
${
VS_PATH
}
"
"
${
pathsep
In
}
"
fi
# Remove all temp files
rm
-f
-r
${
tmp
}
if
[
"
${
debug
}
"
!=
"true"
]
;
then
rm
-f
-r
${
tmp
}
fi
exit
0
test/Makefile
浏览文件 @
84a53a9b
...
...
@@ -58,9 +58,9 @@ JDK_DEFAULT_TEST_LIST = \
jdk_io
\
jdk_lang
\
jdk_math
\
jdk_
misc
\
jdk_
other
\
jdk_net
\
jdk_nio
1 jdk_nio2 jdk_nio3
\
jdk_nio
\
jdk_security1
\
jdk_text
\
jdk_util
...
...
@@ -69,12 +69,14 @@ JDK_DEFAULT_TEST_LIST = \
JDK_NONDEFAULT_TEST_LIST
=
\
jdk_awt
\
jdk_beans2 jdk_beans3
\
jdk_management1 jdk_management2
\
jdk_management
\
jdk_jmx
\
jdk_security2 jdk_security3
\
jdk_rmi
\
jdk_sound
\
jdk_swing
\
jdk_tools1 jdk_tools2
\
jdk_tools
\
jdk_jdi
\
jdk_jfr
# All jdk tests
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录