提交 802d3f95 作者: Kevin Atkinson

Add back still useful test from fe7b01f1 (Resolve symlink if ...)

Add back still useful test from reverted commit:
  fe7b01f1
  Resolve symlink if it is directly referenced in cli (#2897)

License: MIT
Signed-off-by: 's avatarKevin Atkinson <k@kevina.org>
上级 10a692f9
...@@ -44,6 +44,16 @@ test_add_symlinks() { ...@@ -44,6 +44,16 @@ test_add_symlinks() {
echo "QmWYN8SEXCgNT2PSjB6BnxAx6NJQtazWoBkTRH9GRfPFFQ" > badlink_exp && echo "QmWYN8SEXCgNT2PSjB6BnxAx6NJQtazWoBkTRH9GRfPFFQ" > badlink_exp &&
test_cmp badlink_exp badlink_out test_cmp badlink_exp badlink_out
' '
test_expect_success "adding with symlink in middle of path is same as\
adding with no symlink" '
mkdir -p files2/a/b/c &&
echo "some other text" > files2/a/b/c/foo &&
ln -s b files2/a/d
ipfs add -rq files2/a/b/c > no_sym &&
ipfs add -rq files2/a/d/c > sym &&
test_cmp no_sym sym
'
} }
test_init_ipfs test_init_ipfs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论