Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
3eea954a
提交
3eea954a
authored
10月 03, 2015
作者:
Juan Benet
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1784 from ipfs/improve-t0081
t0081: swap test_cmp arguments
上级
1b795013
56867620
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
t0081-repo-pinning.sh
test/sharness/t0081-repo-pinning.sh
+5
-4
没有找到文件。
test/sharness/t0081-repo-pinning.sh
浏览文件 @
3eea954a
...
...
@@ -98,10 +98,11 @@ test_expect_success "'ipfs add dir' succeeds" '
echo "some text 6" >dir1/dir2/dir4/file6 &&
echo "some text 2" >dir1/dir3/file2 &&
echo "some text 5" >dir1/dir3/file5 &&
ipfs add -q -r dir1 | tail -n1 >actual1 &&
ipfs add -q -r dir1 >actualall &&
tail -n1 actualall >actual1 &&
echo "$HASH_DIR1" >expected1 &&
ipfs repo gc && # remove the patch chaff
test_cmp
actual1 expected
1
test_cmp
expected1 actual
1
'
test_expect_success
"objects are there"
'
...
...
@@ -216,7 +217,7 @@ test_expect_success "'ipfs repo gc' succeeds" '
echo "removed $HASH_FILE3" > gc_out_exp2 &&
echo "removed $HASH_FILE5" >> gc_out_exp2 &&
echo "removed $HASH_DIR3" >> gc_out_exp2 &&
test_sort_cmp gc_out_
actual2 gc_out_exp
2
test_sort_cmp gc_out_
exp2 gc_out_actual
2
'
# use object links for HASH_DIR1 here because its children
...
...
@@ -231,7 +232,7 @@ test_expect_success "some objects are still there" '
ipfs ls "$HASH_DIR4" >>actual8 &&
ipfs ls "$HASH_DIR2" >>actual8 &&
ipfs object links "$HASH_DIR1" >>actual8 &&
test_cmp
actual8 expected
8
test_cmp
expected8 actual
8
'
# todo: make this faster somehow.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论