提交 9cf71893 作者: Henry

ipfs ls: make sure to fully create testData

上级 f5f5d5d9
...@@ -9,16 +9,15 @@ test_description="Test ls command" ...@@ -9,16 +9,15 @@ test_description="Test ls command"
. lib/test-lib.sh . lib/test-lib.sh
test_init_ipfs test_init_ipfs
test_launch_ipfs_daemon
test_expect_success "'ipfs add -r testData' succeeds" ' test_expect_success "'ipfs add -r testData' succeeds" '
mkdir -p testData/{d1,d2} mkdir -p testData/{d1,d2} && \
echo "test" > testData/f1 echo "test" > testData/f1 && \
echo "data" > testData/f2 echo "data" > testData/f2 && \
echo "hello" > testData/d1/a echo "hello" > testData/d1/a && \
random 128 42 > testData/d1/128 random 128 42 > testData/d1/128 && \
echo "world" > testData/d2/a echo "world" > testData/d2/a && \
random 1024 42 > testData/d2/1024 random 1024 42 > testData/d2/1024 && \
ipfs add -r testData > actual_add ipfs add -r testData > actual_add
' '
...@@ -64,6 +63,4 @@ EOF ...@@ -64,6 +63,4 @@ EOF
test $(diff actual_ls expected_ls | wc -l) -eq 0 test $(diff actual_ls expected_ls | wc -l) -eq 0
' '
test_kill_ipfs_daemon
test_done test_done
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论