Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
f2aba08c
提交
f2aba08c
authored
4月 07, 2015
作者:
Juan Batiz-Benet
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1024 from ipfs/run_tests_with_race_flag2
Run tests with race flag using checkflags script
上级
447f1efb
dbf91a19
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
57 行增加
和
15 行删除
+57
-15
.gitignore
test/.gitignore
+1
-2
Makefile
test/Makefile
+24
-9
checkflags
test/bin/checkflags
+23
-0
Makefile
test/sharness/Makefile
+9
-4
没有找到文件。
test/.gitignore
浏览文件 @
f2aba08c
bin/ipfs
bin/random
IPFS-BUILD-OPTIONS
test/Makefile
浏览文件 @
f2aba08c
...
...
@@ -6,6 +6,9 @@ RANDOM_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random
MULTIHASH_SRC
=
../Godeps/_workspace/src/github.com/jbenet/go-multihash
POLLENDPOINT_SRC
=
../thirdparty/pollEndpoint
# User might want to override those on the command line
GOFLAGS
=
all
:
deps
deps
:
bins
...
...
@@ -15,17 +18,21 @@ clean:
bins
:
$(BINS)
bin/random
:
$(RANDOM_SRC)/**/*.go
go build
-o
bin/random
$(RANDOM_SRC)
/random
bin/random
:
$(RANDOM_SRC)/**/*.go IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/random
$(RANDOM_SRC)
/random
bin/multihash
:
$(MULTIHASH_SRC)/**/*.go
go build
-o
bin/multihash
$(MULTIHASH_SRC)
/multihash
bin/multihash
:
$(MULTIHASH_SRC)/**/*.go IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/multihash
$(MULTIHASH_SRC)
/multihash
bin/ipfs
:
$(IPFS_ROOT)/**/*.go
go build
-o
bin/ipfs
$(IPFS_CMD)
bin/ipfs
:
$(IPFS_ROOT)/**/*.go IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/ipfs
$(IPFS_CMD)
bin/pollEndpoint
:
$(POLLENDPOINT_SRC)/*.go
go build
-o
bin/pollEndpoint
$(POLLENDPOINT_SRC)
bin/pollEndpoint
:
$(POLLENDPOINT_SRC)/*.go IPFS-BUILD-OPTIONS
@
echo
"*** installing
$@
***"
go build
$(GOFLAGS)
-o
bin/pollEndpoint
$(POLLENDPOINT_SRC)
test
:
test_expensive
...
...
@@ -38,4 +45,12 @@ test_cheap:
cd
sharness
&&
make
cd
3nodetest
&&
make
.PHONY
:
all clean
test_race
:
cd
sharness
&&
make
GOFLAGS
=
-race
TEST_EXPENSIVE
=
1
cd
3nodetest
&&
make
GOFLAGS
=
-race
cd
dependencies
&&
make
GOFLAGS
=
-race
IPFS-BUILD-OPTIONS
:
FORCE
@
bin/checkflags
'$@'
'
$(GOFLAGS)
'
'*** new Go flags ***'
.PHONY
:
all clean FORCE
test/bin/checkflags
0 → 100755
浏览文件 @
f2aba08c
#!/bin/sh
# Author: Christian Couder <chriscool@tuxfamily.org>
# MIT LICENSED
if
test
"$#"
-lt
3
then
echo
>
&2
"usage
$0
FILE VALUES MSG..."
exit
1
fi
FLAG_FILE
=
"
$1
"
FLAG_VALS
=
"
$2
"
shift
shift
FLAG_MSGS
=
"
$@
"
# Use x in front of tested values as flags could be
# interpreted by "test" to be for itself.
if
test
x
"
$FLAG_VALS
"
!=
x
"
$(
cat
"
$FLAG_FILE
"
2>/dev/null
)
"
then
echo
"
$FLAG_MSGS
"
echo
"
$FLAG_VALS
"
>
"
$FLAG_FILE
"
fi
test/sharness/Makefile
浏览文件 @
f2aba08c
...
...
@@ -11,6 +11,9 @@ BINS = bin/random bin/multihash bin/ipfs bin/pollEndpoint
SHARNESS
=
lib/sharness/sharness.sh
IPFS_ROOT
=
../..
# User might want to override those on the command line
GOFLAGS
=
all
:
clean deps $(T) aggregate
clean
:
...
...
@@ -32,11 +35,13 @@ $(SHARNESS):
@
echo
"*** installing
$@
***"
lib/install-sharness.sh
bin/%
:
$(IPFS_ROOT)/**/*.go
@
echo
"*** installing
$@
***"
cd
..
&&
make
$@
bin/%
:
FORCE
cd
..
&&
make
GOFLAGS
=
$(GOFLAGS)
$@
race
:
make
GOFLAGS
=
-race
all
.PHONY
:
all clean $(T) aggregate
.PHONY
:
all clean $(T) aggregate
FORCE
# will fail if curl is not installed.
# TODO: get rid of this and install curl with git or ipfs.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论