Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
3f88fdb1
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3f88fdb1
编写于
8月 27, 2009
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6876755: apt tests fail on Windows
Reviewed-by: darcy
上级
b6b9432b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
13 deletion
+16
-13
test/tools/apt/Basics/apt.sh
test/tools/apt/Basics/apt.sh
+4
-5
test/tools/apt/Basics/print.sh
test/tools/apt/Basics/print.sh
+3
-4
test/tools/apt/Compile/compile.sh
test/tools/apt/Compile/compile.sh
+9
-4
未找到文件。
test/tools/apt/Basics/apt.sh
浏览文件 @
3f88fdb1
...
...
@@ -33,12 +33,11 @@
OS
=
`
uname
-s
`
;
case
"
${
OS
}
"
in
Windows
*
|
CYGWIN
*
)
SEP
=
";
"
CYGWIN
*
)
DIFFOPTS
=
"--strip-trailing-cr
"
;;
*
)
SEP
=
":"
;;
esac
...
...
@@ -94,7 +93,7 @@ for i in ${ANNOTATION_FILES}
do
printf
"%s
\n
"
"Testing annotations on source file
${
i
}
"
${
APT
}
@options
${
i
}
2> result.txt
diff
${
TESTSRC
}
/golden.txt result.txt
diff
${
DIFFOPTS
}
${
TESTSRC
}
/golden.txt result.txt
RESULT
=
$?
case
"
$RESULT
"
in
...
...
@@ -109,7 +108,7 @@ do
CLASS
=
`
basename
${
i
}
.java
`
printf
"%s
\n
"
"Testing annotations on class file
${
CLASS
}
"
${
APT
}
@options1
${
CLASS
}
2> result2.txt
diff
${
TESTSRC
}
/golden.txt result2.txt
diff
${
DIFFOPTS
}
${
TESTSRC
}
/golden.txt result2.txt
RESULT
=
$?
case
"
$RESULT
"
in
...
...
test/tools/apt/Basics/print.sh
浏览文件 @
3f88fdb1
...
...
@@ -32,12 +32,11 @@
OS
=
`
uname
-s
`
;
case
"
${
OS
}
"
in
Windows
*
|
CYGWIN
*
)
SEP
=
";
"
CYGWIN
*
)
DIFFOPTS
=
"--strip-trailing-cr
"
;;
*
)
SEP
=
":"
;;
esac
...
...
@@ -88,7 +87,7 @@ done
# check for mutliple methods and no static initializer
${
APT
}
-XclassesAsDecls
-cp
${
TESTCLASSES
}
-print
Aggregate
>
aggregate.txt
diff aggregate.txt
${
TESTSRC
}
/goldenAggregate.txt
diff
${
DIFFOPTS
}
aggregate.txt
${
TESTSRC
}
/goldenAggregate.txt
RESULT
=
$?
case
"
$RESULT
"
in
...
...
test/tools/apt/Compile/compile.sh
浏览文件 @
3f88fdb1
...
...
@@ -57,7 +57,12 @@ TestFile() {
OS
=
`
uname
-s
`
;
case
"
${
OS
}
"
in
Windows
*
|
CYGWIN
*
)
Windows
*
)
SEP
=
";"
;;
CYGWIN
*
)
DIFFOPTS
=
"--strip-trailing-cr"
SEP
=
";"
;;
...
...
@@ -150,7 +155,7 @@ ${APT} @options2 2> output
TestNoFile
"HelloWorld.class"
diff output
${
TESTSRC
}
/golden.txt
diff
${
DIFFOPTS
}
output
${
TESTSRC
}
/golden.txt
RESULT
=
$?
case
"
$RESULT
"
in
...
...
@@ -180,7 +185,7 @@ printf "%s\n" "-cp ${TESTCLASSES}" >> options3
printf
"%s
\n
"
"HelloAnnotation.java"
>>
options3
${
APT
}
@options3 2> output
diff output
${
TESTSRC
}
/goldenWarn.txt
diff
${
DIFFOPTS
}
output
${
TESTSRC
}
/goldenWarn.txt
RESULT
=
$?
case
"
$RESULT
"
in
...
...
@@ -485,7 +490,7 @@ printf "%s\n" "-d ./class" >> options8
printf
"%s
\n
"
"
${
TESTSRC
}
/Dummy1.java"
>>
options8
${
APT
}
@options8
>
multiRoundOutput 2> multiRoundError
diff multiRoundOutput
${
TESTSRC
}
/goldenFactory.txt
diff
${
DIFFOPTS
}
multiRoundOutput
${
TESTSRC
}
/goldenFactory.txt
RESULT
=
$?
case
"
$RESULT
"
in
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录