Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
22841eb3
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看板
提交
22841eb3
编写于
6月 20, 2010
作者:
O
ohair
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6962617: Testcase changes, cleanup of problem list for jdk_tools targets
Reviewed-by: alanb
上级
d153e2bb
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
117 addition
and
111 deletion
+117
-111
test/Makefile
test/Makefile
+4
-4
test/ProblemList.txt
test/ProblemList.txt
+3
-82
test/com/sun/jdi/PopAndInvokeTest.java
test/com/sun/jdi/PopAndInvokeTest.java
+1
-0
test/com/sun/servicetag/JavaServiceTagTest1.java
test/com/sun/servicetag/JavaServiceTagTest1.java
+1
-1
test/com/sun/servicetag/SystemRegistryTest.java
test/com/sun/servicetag/SystemRegistryTest.java
+1
-1
test/com/sun/tools/attach/BasicTests.sh
test/com/sun/tools/attach/BasicTests.sh
+15
-0
test/com/sun/tracing/BasicFunctionality.java
test/com/sun/tracing/BasicFunctionality.java
+1
-0
test/sun/jvmstat/testlibrary/utils.sh
test/sun/jvmstat/testlibrary/utils.sh
+34
-0
test/sun/tools/jps/jps-Vvml_2.sh
test/sun/tools/jps/jps-Vvml_2.sh
+6
-0
test/sun/tools/jps/jps-m_2.sh
test/sun/tools/jps/jps-m_2.sh
+6
-0
test/sun/tools/jstatd/jstatdDefaults.sh
test/sun/tools/jstatd/jstatdDefaults.sh
+4
-3
test/sun/tools/jstatd/jstatdExternalRegistry.sh
test/sun/tools/jstatd/jstatdExternalRegistry.sh
+6
-7
test/sun/tools/jstatd/jstatdPort.sh
test/sun/tools/jstatd/jstatdPort.sh
+9
-4
test/sun/tools/jstatd/jstatdServerName.sh
test/sun/tools/jstatd/jstatdServerName.sh
+14
-8
test/tools/jar/UpdateManifest.java
test/tools/jar/UpdateManifest.java
+1
-0
test/tools/jar/index/MetaInf.java
test/tools/jar/index/MetaInf.java
+11
-1
未找到文件。
test/Makefile
浏览文件 @
22841eb3
...
@@ -307,7 +307,7 @@ BUNDLE_UP_AND_EXIT = \
...
@@ -307,7 +307,7 @@ BUNDLE_UP_AND_EXIT = \
passc
=
"
`
$(CAT)
$(PASSLIST)
|
$(WC)
-l
|
$(AWK)
'{print $$1;}'
`
"
;
\
passc
=
"
`
$(CAT)
$(PASSLIST)
|
$(WC)
-l
|
$(AWK)
'{print $$1;}'
`
"
;
\
failc
=
"
`
$(CAT)
$(FAILLIST)
|
$(WC)
-l
|
$(AWK)
'{print $$1;}'
`
"
;
\
failc
=
"
`
$(CAT)
$(FAILLIST)
|
$(WC)
-l
|
$(AWK)
'{print $$1;}'
`
"
;
\
exclc
=
"
`
$(CAT)
$(EXCLUDELIST)
|
$(WC)
-l
|
$(AWK)
'{print $$1;}'
`
"
;
\
exclc
=
"
`
$(CAT)
$(EXCLUDELIST)
|
$(WC)
-l
|
$(AWK)
'{print $$1;}'
`
"
;
\
$(ECHO)
"TEST STATS: run=
$
${runc}
pass=
$
${passc}
fail=
$
${failc}
excluded=
$
${exclc}
"
\
$(ECHO)
"TEST STATS:
name=
$(UNIQUE_DIR)
run=
$
${runc}
pass=
$
${passc}
fail=
$
${failc}
excluded=
$
${exclc}
"
\
>>
$(STATS_TXT)
;
\
>>
$(STATS_TXT)
;
\
else
\
else
\
$(ECHO)
"Missing file:
$
${_summary}
"
>>
$(STATS_TXT)
;
\
$(ECHO)
"Missing file:
$
${_summary}
"
>>
$(STATS_TXT)
;
\
...
@@ -326,7 +326,7 @@ all: jtreg_tests
...
@@ -326,7 +326,7 @@ all: jtreg_tests
# Prep for output
# Prep for output
prep
:
clean
prep
:
clean
@
$(MKDIR)
-p
$(ABS_TEST_OUTPUT_DIR)
@
$(MKDIR)
-p
$(ABS_TEST_OUTPUT_DIR)
@
$(MKDIR)
-p
`
dirname
$(ARCHIVE_BUNDLE)
`
@
$(MKDIR)
-p
`
$(DIRNAME)
$(ARCHIVE_BUNDLE)
`
# Cleanup
# Cleanup
clean
:
clean
:
...
@@ -376,7 +376,7 @@ else
...
@@ -376,7 +376,7 @@ else
$(EXCLUDELIST)
:
$(PROBLEM_LISTS) $(TESTDIRS)
$(EXCLUDELIST)
:
$(PROBLEM_LISTS) $(TESTDIRS)
@
$(RM)
$@
$@
.temp1
$@
.temp2
@
$(RM)
$@
$@
.temp1
$@
.temp2
@
((
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(OS_NAME)
-all'
)
;
\
@
((
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(OS_NAME)
-all'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(
OS_NAME)
-
$(OS_ARCH)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(
PLATFORM_OS)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(OS_NAME)
-
$(OS_ARCH2)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(OS_NAME)
-
$(OS_ARCH2)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(OS_NAME)
-
$(OS_VERSION)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'
$(OS_NAME)
-
$(OS_VERSION)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'generic-
$(OS_ARCH)
'
)
;
\
(
$(CAT)
$(PROBLEM_LISTS)
|
$(EGREP)
--
'generic-
$(OS_ARCH)
'
)
;
\
...
@@ -562,7 +562,7 @@ jdk_tools1: com/sun/jdi
...
@@ -562,7 +562,7 @@ jdk_tools1: com/sun/jdi
JDK_ALL_TARGETS
+=
jdk_tools2
JDK_ALL_TARGETS
+=
jdk_tools2
jdk_tools2
:
com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing
jdk_tools2
:
com/sun/tools sun/jvmstat sun/tools tools vm com/sun/servicetag com/sun/tracing
$(
call
SharedLibraryPermissions,tools/launcher
)
$(
call
SharedLibraryPermissions,tools/launcher
)
$(
call
Run
Other
vmBatch
)
$(
call
Run
Same
vmBatch
)
# All tools tests
# All tools tests
jdk_tools
:
jdk_tools1 jdk_tools2
jdk_tools
:
jdk_tools1 jdk_tools2
...
...
test/ProblemList.txt
浏览文件 @
22841eb3
...
@@ -208,15 +208,12 @@ java/lang/ClassLoader/deadlock/TestCrossDelegate.sh generic-all
...
@@ -208,15 +208,12 @@ java/lang/ClassLoader/deadlock/TestCrossDelegate.sh generic-all
# jdk_management
# jdk_management
# Failing, bug was filed: 6959636
javax/management/loading/LibraryLoader/LibraryLoaderTest.java generic-all
# Access denied messages on windows/mks, filed 6954450
# Access denied messages on windows/mks, filed 6954450
sun/management/jmxremote/bootstrap/RmiSslNoKeyStoreTest.sh windows-all
sun/management/jmxremote/bootstrap/RmiSslNoKeyStoreTest.sh windows-all
# Started failing on linux and solaris (filed 6950927)
# com.sun.tools.attach.AttachNotSupportedException:
# Unable to open socket file:
# target process not responding or HotSpot VM not loaded
sun/management/jmxremote/bootstrap/JvmstatCountersTest.java generic-all
# Fails on linux: KO: StringMonitor notification missed or not emitted
# Fails on linux: KO: StringMonitor notification missed or not emitted
javax/management/monitor/NonComparableAttributeValueTest.java generic-all
javax/management/monitor/NonComparableAttributeValueTest.java generic-all
...
@@ -871,82 +868,6 @@ java/text/Bidi/Bug6665028.java linux-x64
...
@@ -871,82 +868,6 @@ java/text/Bidi/Bug6665028.java linux-x64
# jdk_tools
# jdk_tools
# Filed bug 6951287, failed on Linux 64bit, sometimes?
com/sun/jdi/PopAndInvokeTest.java generic-all
# Some of the tools tests kind of require "othervm" or if they don't will
# always be firing up another VM anyway due to the nature of tools testing.
# So most if not all tools tests are now being run with "othervm" mode.
# Some of these tools tests have a tendency to use fixed ports, bad idea.
# Fails with -ea -esa on Solaris, Assertion error (Solaris specific test)
com/sun/tracing/BasicFunctionality.java generic-all
# Fails on Fedora 9 32bit, jps output differs problem
sun/tools/jstatd/jstatdDefaults.sh generic-all
# Fails on Linux Fedora 9 32bit, Could not read data for remote JVM 16133
# jstat output differs from expected output
sun/tools/jstatd/jstatdExternalRegistry.sh generic-all
# Output of jps differs from expected output.
# Invalid argument count on solaris-sparc and x64
sun/tools/jstatd/jstatdPort.sh generic-all
# othervm mode, Could not synchronize with target
sun/tools/jps/jps-l_1.sh generic-all
sun/tools/jps/jps-l_2.sh generic-all
sun/tools/jps/jps-lm.sh generic-all
sun/tools/jps/jps-Vvml_2.sh generic-all
sun/tools/jps/jps-m_2.sh generic-all
# Fails on Solaris 10 sparcv9, shell exits with 1
# Turning off use of shared archive because of choice of garbage collector or large pages
# Could not synchronize with target
sun/tools/jps/jps-v_1.sh generic-all
# Fails on OpenSolaris "Could not synchronize with target"
sun/tools/jps/jps-Defaults.sh generic-all
sun/tools/jps/jps-V_2.sh generic-all
sun/tools/jps/jps-Vm_2.sh generic-all
sun/tools/jps/jps-Vvm.sh generic-all
sun/tools/jps/jps-Vvml.sh generic-all
sun/tools/jps/jps-m.sh generic-all
# Server name error, port 2098 problem?
sun/tools/jstatd/jstatdServerName.sh generic-all
# Problems on windows, jmap.exe hangs?
com/sun/tools/attach/BasicTests.sh windows-all
# Fails on Solaris 10 sparc, in othervm mode, throws unexpected exception
sun/jvmstat/monitor/MonitoredVm/CR6672135.java generic-all
# Unexpected Monitor Exception, solaris sparc -client
sun/jvmstat/monitor/MonitoredVm/MonitorVmStartTerminate.sh generic-all
# Problems on windows, jmap.exe hangs? (these run jmap)
sun/tools/jmap/Basic.sh windows-all
# Invalid argument count on solaris-sparc and x64
sun/tools/jstatd/jstatdDefaults.sh solaris-all
# Solaris sparcv9, jps output does not match, x64 different
sun/tools/jstatd/jstatdExternalRegistry.sh solaris-all
# Solaris 10 sparc 32bit -client, java.lang.AssertionError: Some tests failed
tools/jar/JarEntryTime.java generic-all
# Times out on sparc?
tools/launcher/VersionCheck.java generic-all
# These tests fail on solaris sparc, all the time
tools/jar/ChangeDir.java generic-all
# Cannot write jar
# Also, possible problems on windows, jmap.exe hangs?
tools/jar/index/MetaInf.java windows-all
############################################################################
############################################################################
# jdk_util
# jdk_util
...
...
test/com/sun/jdi/PopAndInvokeTest.java
浏览文件 @
22841eb3
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
/**
/**
* @test
* @test
* @bug 6517249
* @bug 6517249
* @ignore 6951287
* @summary JDWP: Cannot do an invokeMethod after a popFrames operation
* @summary JDWP: Cannot do an invokeMethod after a popFrames operation
*
*
* @author jjh
* @author jjh
...
...
test/com/sun/servicetag/JavaServiceTagTest1.java
浏览文件 @
22841eb3
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
* @author Mandy Chung
* @author Mandy Chung
*
*
* @run build JavaServiceTagTest1
* @run build JavaServiceTagTest1
* @run main JavaServiceTagTest1
* @run main
/othervm
JavaServiceTagTest1
*/
*/
import
com.sun.servicetag.*
;
import
com.sun.servicetag.*
;
...
...
test/com/sun/servicetag/SystemRegistryTest.java
浏览文件 @
22841eb3
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
* @author Mandy Chung
* @author Mandy Chung
*
*
* @run build SvcTagClient SystemRegistryTest Util
* @run build SvcTagClient SystemRegistryTest Util
* @run main SystemRegistryTest
* @run main
/othervm
SystemRegistryTest
*/
*/
import
com.sun.servicetag.*
;
import
com.sun.servicetag.*
;
...
...
test/com/sun/tools/attach/BasicTests.sh
浏览文件 @
22841eb3
...
@@ -37,6 +37,21 @@ then
...
@@ -37,6 +37,21 @@ then
exit
1
exit
1
fi
fi
# Windows 2000 is a problem here, so we skip it, see 6962615
osrev
=
`
uname
-a
`
if
[
"
`
echo
${
osrev
}
|
grep
'CYGWIN'
`
"
!=
""
]
;
then
if
[
"
`
echo
${
osrev
}
|
grep
'5.0'
`
"
!=
""
]
;
then
echo
"Treating as a pass, not testing Windows 2000"
exit
0
fi
fi
if
[
"
`
echo
${
osrev
}
|
grep
'Windows'
`
"
!=
""
]
;
then
if
[
"
`
echo
${
osrev
}
|
grep
'5 00'
`
"
!=
""
]
;
then
echo
"Treating as a pass, not testing Windows 2000"
exit
0
fi
fi
.
${
TESTSRC
}
/CommonSetup.sh
.
${
TESTSRC
}
/CommonSetup.sh
.
${
TESTSRC
}
/ApplicationSetup.sh
.
${
TESTSRC
}
/ApplicationSetup.sh
.
${
TESTSRC
}
/AgentSetup.sh
.
${
TESTSRC
}
/AgentSetup.sh
...
...
test/com/sun/tracing/BasicFunctionality.java
浏览文件 @
22841eb3
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
/**
/**
* @test
* @test
* @bug 6537506
* @bug 6537506
* @ignore 6962535
* @summary Basic unit test for tracing framework
* @summary Basic unit test for tracing framework
*/
*/
...
...
test/sun/jvmstat/testlibrary/utils.sh
浏览文件 @
22841eb3
...
@@ -189,3 +189,37 @@ kill_proc_common() {
...
@@ -189,3 +189,37 @@ kill_proc_common() {
echo
"Error sending term signal to
${
kpid
}
!"
echo
"Error sending term signal to
${
kpid
}
!"
fi
fi
}
}
# check to see if a port is free
checkPort
()
# port
{
inuse
=
`
netstat
-a
| egrep
"
\.
$1
"
`
if
[
"
${
inuse
}
"
=
""
]
;
then
echo
"free"
else
echo
"inuse"
fi
}
# Get a free port, where port+1 is also free, return 0 when giving up
freePort
()
{
start
=
3000
while
[
${
start
}
-lt
3030
]
;
do
port1
=
`
expr
${
start
}
'+'
$$
'%'
1000
`
port2
=
`
expr
${
port1
}
'+'
1
`
if
[
"
`
checkPort
${
port1
}
`
"
=
"inuse"
\
-o
"
`
checkPort
${
port2
}
`
"
=
"inuse"
]
;
then
start
=
`
expr
${
start
}
'+'
1
`
else
break
fi
done
if
[
"
`
checkPort
${
port1
}
`
"
=
"inuse"
\
-o
"
`
checkPort
${
port2
}
`
"
=
"inuse"
]
;
then
port1
=
"0"
fi
echo
"
${
port1
}
"
}
test/sun/tools/jps/jps-Vvml_2.sh
浏览文件 @
22841eb3
...
@@ -51,3 +51,9 @@ ${JAVA} -cp ${TESTCLASSES} Sleeper &
...
@@ -51,3 +51,9 @@ ${JAVA} -cp ${TESTCLASSES} Sleeper &
SLEEPER_PID
=
$!
SLEEPER_PID
=
$!
${
JPS
}
-J-XX
:Flags
=
${
TESTSRC
}
/vmflags
-Vvml
|
awk
-f
${
TESTSRC
}
/jps-Vvml_Output2.awk
${
JPS
}
-J-XX
:Flags
=
${
TESTSRC
}
/vmflags
-Vvml
|
awk
-f
${
TESTSRC
}
/jps-Vvml_Output2.awk
RC
=
$?
cleanup
exit
${
RC
}
test/sun/tools/jps/jps-m_2.sh
浏览文件 @
22841eb3
...
@@ -50,3 +50,9 @@ ${JAVA} -cp ${TESTCLASSES} Sleeper &
...
@@ -50,3 +50,9 @@ ${JAVA} -cp ${TESTCLASSES} Sleeper &
SLEEPER_PID
=
$!
SLEEPER_PID
=
$!
${
JPS
}
-m
|
awk
-f
${
TESTSRC
}
/jps-m_Output2.awk
${
JPS
}
-m
|
awk
-f
${
TESTSRC
}
/jps-m_Output2.awk
RC
=
$?
cleanup
exit
${
RC
}
test/sun/tools/jstatd/jstatdDefaults.sh
浏览文件 @
22841eb3
...
@@ -56,12 +56,11 @@ ${JPS} ${HOSTNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk
...
@@ -56,12 +56,11 @@ ${JPS} ${HOSTNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
echo
"Output of jps differs from expected output. Failed."
echo
"Output of jps differs from expected output. Failed."
cleanup
exit
1
exit
1
fi
fi
TARGET_PID
=
`
${
JPS
}
|
grep
"Jstatd"
|
cut
-d
" "
-f1
`
${
JSTAT
}
-gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
${
JSTAT
}
-gcutil
${
TARGET_PID
}
@
${
HOSTNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
RC
=
$?
if
[
${
RC
}
-ne
0
]
if
[
${
RC
}
-ne
0
]
...
@@ -75,4 +74,6 @@ then
...
@@ -75,4 +74,6 @@ then
RC
=
1
RC
=
1
fi
fi
cleanup
exit
${
RC
}
exit
${
RC
}
test/sun/tools/jstatd/jstatdExternalRegistry.sh
浏览文件 @
22841eb3
...
@@ -44,7 +44,11 @@ JPS="${TESTJAVA}/bin/jps"
...
@@ -44,7 +44,11 @@ JPS="${TESTJAVA}/bin/jps"
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
HOSTNAME
=
`
uname
-n
`
HOSTNAME
=
`
uname
-n
`
PORT
=
2099
PORT
=
`
freePort
`
if
[
"
${
PORT
}
"
=
"0"
]
;
then
echo
"Cannot get free port"
exit
1
fi
RMIREGISTRY_OUT
=
"rmiregistry_
$$
.out"
RMIREGISTRY_OUT
=
"rmiregistry_
$$
.out"
JSTATD_OUT
=
"jstatd_
$$
.out"
JSTATD_OUT
=
"jstatd_
$$
.out"
...
@@ -69,12 +73,7 @@ then
...
@@ -69,12 +73,7 @@ then
exit
1
exit
1
fi
fi
# get the process id for the target app (jstatd). note, don't rely
${
JSTAT
}
-gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
# on JSTATD_PID as mks interposes a shell when starting a process in
# the background
TARGET_PID
=
`
${
JPS
}
|
grep
"Jstatd"
|
cut
-d
" "
-f1
`
${
JSTAT
}
-gcutil
${
TARGET_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
RC
=
$?
if
[
${
RC
}
-ne
0
]
if
[
${
RC
}
-ne
0
]
...
...
test/sun/tools/jstatd/jstatdPort.sh
浏览文件 @
22841eb3
...
@@ -42,7 +42,11 @@ JPS="${TESTJAVA}/bin/jps"
...
@@ -42,7 +42,11 @@ JPS="${TESTJAVA}/bin/jps"
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
HOSTNAME
=
`
uname
-n
`
HOSTNAME
=
`
uname
-n
`
PORT
=
2099
PORT
=
`
freePort
`
if
[
"
${
PORT
}
"
=
"0"
]
;
then
echo
"Cannot get free port"
exit
1
fi
JSTATD_OUT
=
"jstatd_
$$
.out"
JSTATD_OUT
=
"jstatd_
$$
.out"
...
@@ -57,12 +61,11 @@ ${JPS} ${HOSTNAME}:${PORT} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk
...
@@ -57,12 +61,11 @@ ${JPS} ${HOSTNAME}:${PORT} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
echo
"Output of jps differs from expected output. Failed."
echo
"Output of jps differs from expected output. Failed."
cleanup
exit
1
exit
1
fi
fi
TARGET_PID
=
`
${
JPS
}
|
grep
"Jstatd"
|
cut
-d
" "
-f1
`
${
JSTAT
}
-gcutil
${
JSTATD_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
${
JSTAT
}
-gcutil
${
TARGET_PID
}
@
${
HOSTNAME
}
:
${
PORT
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
RC
=
$?
if
[
${
RC
}
-ne
0
]
if
[
${
RC
}
-ne
0
]
...
@@ -76,4 +79,6 @@ then
...
@@ -76,4 +79,6 @@ then
RC
=
1
RC
=
1
fi
fi
cleanup
exit
${
RC
}
exit
${
RC
}
test/sun/tools/jstatd/jstatdServerName.sh
浏览文件 @
22841eb3
...
@@ -43,8 +43,12 @@ JPS="${TESTJAVA}/bin/jps"
...
@@ -43,8 +43,12 @@ JPS="${TESTJAVA}/bin/jps"
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
JSTAT
=
"
${
TESTJAVA
}
/bin/jstat"
HOSTNAME
=
`
uname
-n
`
HOSTNAME
=
`
uname
-n
`
PORT_1
=
2098
PORT_1
=
`
freePort
`
PORT_2
=
2099
if
[
"
${
PORT_1
}
"
=
"0"
]
;
then
echo
"ERROR: No free port"
exit
1
fi
PORT_2
=
`
expr
${
PORT_1
}
'+'
1
`
SERVERNAME
=
"SecondJstatdServer"
SERVERNAME
=
"SecondJstatdServer"
JSTATD_1_OUT
=
"jstatd_
$$
_1.out"
JSTATD_1_OUT
=
"jstatd_
$$
_1.out"
...
@@ -68,6 +72,7 @@ ${JPS} ${HOSTNAME}:${PORT_1} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk
...
@@ -68,6 +72,7 @@ ${JPS} ${HOSTNAME}:${PORT_1} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
echo
"Output of jps differs from expected output. Failed."
echo
"Output of jps differs from expected output. Failed."
cleanup
exit
1
exit
1
fi
fi
...
@@ -77,13 +82,12 @@ ${JPS} ${HOSTNAME}:${PORT_2}/${SERVERNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.a
...
@@ -77,13 +82,12 @@ ${JPS} ${HOSTNAME}:${PORT_2}/${SERVERNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.a
if
[
$?
-ne
0
]
if
[
$?
-ne
0
]
then
then
echo
"Output of jps differs from expected output. Failed."
echo
"Output of jps differs from expected output. Failed."
cleanup
exit
1
exit
1
fi
fi
TARGET_PID
=
`
${
JPS
}
|
grep
"Jstatd"
|
cut
-d
" "
-f1
|
head
-1
`
echo
"running:
${
JSTAT
}
-gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5"
${
JSTAT
}
-gcutil
${
JSTATD_1_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
echo
"running:
${
JSTAT
}
-gcutil
${
TARGET_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5"
${
JSTAT
}
-gcutil
${
TARGET_PID
}
@
${
HOSTNAME
}
:
${
PORT_1
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
RC
=
$?
if
[
${
RC
}
-ne
0
]
if
[
${
RC
}
-ne
0
]
...
@@ -91,8 +95,8 @@ then
...
@@ -91,8 +95,8 @@ then
echo
"jstat output differs from expected output"
echo
"jstat output differs from expected output"
fi
fi
echo
"running:
${
JSTAT
}
-gcutil
${
TARGET
_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5"
echo
"running:
${
JSTAT
}
-gcutil
${
JSTATD_1
_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5"
${
JSTAT
}
-gcutil
${
TARGET
_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
${
JSTAT
}
-gcutil
${
JSTATD_1
_PID
}
@
${
HOSTNAME
}
:
${
PORT_2
}
/
${
SERVERNAME
}
250 5 2>&1 |
awk
-f
${
TESTSRC
}
/jstatGcutilOutput1.awk
RC
=
$?
RC
=
$?
if
[
${
RC
}
-ne
0
]
if
[
${
RC
}
-ne
0
]
...
@@ -112,4 +116,6 @@ then
...
@@ -112,4 +116,6 @@ then
RC
=
1
RC
=
1
fi
fi
cleanup
exit
${
RC
}
exit
${
RC
}
test/tools/jar/UpdateManifest.java
浏览文件 @
22841eb3
...
@@ -143,6 +143,7 @@ public class UpdateManifest {
...
@@ -143,6 +143,7 @@ public class UpdateManifest {
}
else
{
}
else
{
fail
(
"did not match specVersion nor specTitle"
);
fail
(
"did not match specVersion nor specTitle"
);
}
}
zf
.
close
();
}
}
// --------------------- Convenience ---------------------------
// --------------------- Convenience ---------------------------
...
...
test/tools/jar/index/MetaInf.java
浏览文件 @
22841eb3
...
@@ -62,7 +62,13 @@ public class MetaInf {
...
@@ -62,7 +62,13 @@ public class MetaInf {
static
boolean
contains
(
File
jarFile
,
String
entryName
)
static
boolean
contains
(
File
jarFile
,
String
entryName
)
throws
IOException
{
throws
IOException
{
return
new
ZipFile
(
jarFile
).
getEntry
(
entryName
)
!=
null
;
ZipFile
zf
=
new
ZipFile
(
jarFile
);
if
(
zf
!=
null
)
{
boolean
result
=
zf
.
getEntry
(
entryName
)
!=
null
;
zf
.
close
();
return
result
;
}
return
false
;
}
}
static
void
checkContains
(
File
jarFile
,
String
entryName
)
static
void
checkContains
(
File
jarFile
,
String
entryName
)
...
@@ -94,9 +100,13 @@ public class MetaInf {
...
@@ -94,9 +100,13 @@ public class MetaInf {
String
line
;
String
line
;
while
((
line
=
index
.
readLine
())
!=
null
)
{
while
((
line
=
index
.
readLine
())
!=
null
)
{
if
(
line
.
equals
(
SERVICES
))
{
if
(
line
.
equals
(
SERVICES
))
{
index
.
close
();
f
.
close
();
return
;
return
;
}
}
}
}
index
.
close
();
f
.
close
();
throw
new
Error
(
SERVICES
+
" not indexed."
);
throw
new
Error
(
SERVICES
+
" not indexed."
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录