Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
2b5f1b2d
提交
2b5f1b2d
authored
11月 08, 2014
作者:
Christian Couder
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Install sharness in a 'sharness' directory
It is cleaner if sharness is installed in its own directory.
上级
39c1930e
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
9 行删除
+19
-9
.gitignore
test/.gitignore
+1
-0
Makefile
test/Makefile
+9
-7
install-sharness.sh
test/install-sharness.sh
+7
-0
test-aggregate-results.sh
test/test-aggregate-results.sh
+1
-1
test-lib.sh
test/test-lib.sh
+1
-1
没有找到文件。
test/.gitignore
浏览文件 @
2b5f1b2d
sharness/
test-results/
test-results/
trash directory.*.sh/
trash directory.*.sh/
test/Makefile
浏览文件 @
2b5f1b2d
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#
#
T
=
$
(
sort
$
(
wildcard t[0-9][0-9][0-9][0-9]-
*
.sh
))
T
=
$
(
sort
$
(
wildcard t[0-9][0-9][0-9][0-9]-
*
.sh
))
SHARNESS
=
sharness/sharness.sh
all
:
clean deps $(T) aggregate
all
:
clean deps $(T) aggregate
...
@@ -20,21 +21,22 @@ aggregate:
...
@@ -20,21 +21,22 @@ aggregate:
@
echo
"***
$@
***"
@
echo
"***
$@
***"
./test-aggregate-results.sh
./test-aggregate-results.sh
deps
:
ipfs sharness.sh random
deps
:
$(SHARNESS) ipfs random
$(SHARNESS)
:
@
echo
"*** installing
$@
***"
./install-sharness.sh
# phony to ensure we re-build it every time we run tests
# phony to ensure we re-build it every time we run tests
ipfs
:
ipfs
:
@
echo
"*** installing
$@
***"
cd
../cmd/ipfs
&&
go build
cd
../cmd/ipfs
&&
go build
cp ../cmd/ipfs/ipfs ipfs
cp ../cmd/ipfs/ipfs ipfs
sharness.sh
:
@
echo
"*** installing
$@
***"
./install-sharness.sh
.PHONY
:
all clean $(T) aggregate ipfs
random
:
random
:
@
echo
"*** installing
$@
***"
@
echo
"*** installing
$@
***"
go get github.com/jbenet/go-random/random
go get github.com/jbenet/go-random/random
go install github.com/jbenet/go-random/random
go install github.com/jbenet/go-random/random
cp
`
which random
`
random
cp
`
which random
`
random
.PHONY
:
all clean $(T) aggregate ipfs random
test/install-sharness.sh
浏览文件 @
2b5f1b2d
...
@@ -16,6 +16,11 @@ shash=eeaf96630fc25ec58fb678b64ef9772d5eb92f64
...
@@ -16,6 +16,11 @@ shash=eeaf96630fc25ec58fb678b64ef9772d5eb92f64
afile
=
aggregate-results.sh
afile
=
aggregate-results.sh
ahash
=
948d6bc03222c5c00a1ed048068508d5ea1cce59
ahash
=
948d6bc03222c5c00a1ed048068508d5ea1cce59
die
()
{
echo
>
&2
$@
exit
1
}
verified_download
()
{
verified_download
()
{
file
=
$1
file
=
$1
hash1
=
$2
hash1
=
$2
...
@@ -34,6 +39,8 @@ verified_download() {
...
@@ -34,6 +39,8 @@ verified_download() {
return
0
return
0
}
}
mkdir
-p
sharness
||
die
"Could not create 'sharness' directory"
cd
sharness
||
die
"Could not cd into 'sharness' directory"
verified_download
"
$sfile
"
"
$shash
"
;
sok
=
$?
verified_download
"
$sfile
"
"
$shash
"
;
sok
=
$?
verified_download
"
$afile
"
"
$ahash
"
;
aok
=
$?
verified_download
"
$afile
"
"
$ahash
"
;
aok
=
$?
...
...
test/test-aggregate-results.sh
浏览文件 @
2b5f1b2d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# MIT Licensed; see the LICENSE file in this repository.
# MIT Licensed; see the LICENSE file in this repository.
#
#
SHARNESS_AGGREGATE
=
"
.
/aggregate-results.sh"
SHARNESS_AGGREGATE
=
"
sharness
/aggregate-results.sh"
test
-f
"
$SHARNESS_AGGREGATE
"
||
{
test
-f
"
$SHARNESS_AGGREGATE
"
||
{
echo
>
&2
"Cannot find:
$SHARNESS_AGGREGATE
"
echo
>
&2
"Cannot find:
$SHARNESS_AGGREGATE
"
...
...
test/test-lib.sh
浏览文件 @
2b5f1b2d
...
@@ -18,7 +18,7 @@ if test `which ipfs` != $(pwd)/ipfs; then
...
@@ -18,7 +18,7 @@ if test `which ipfs` != $(pwd)/ipfs; then
exit
1
exit
1
fi
fi
SHARNESS_LIB
=
"
.
/sharness.sh"
SHARNESS_LIB
=
"
sharness
/sharness.sh"
.
"
$SHARNESS_LIB
"
||
{
.
"
$SHARNESS_LIB
"
||
{
echo
>
&2
"Cannot source:
$SHARNESS_LIB
"
echo
>
&2
"Cannot source:
$SHARNESS_LIB
"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论