1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

add tests for ipfs files stat --with-local

License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
This commit is contained in:
Michael Muré
2018-02-01 12:56:20 +01:00
parent 69b8383e1c
commit 8fd6fdb385

View File

@ -154,6 +154,15 @@ test_files_api() {
ipfs files stat --hash / > roothash
'
test_expect_success "stat works outside of MFS" '
ipfs files stat /ipfs/$DIR1
'
test_expect_success "stat compute the locality of a dag" '
ipfs files stat --with-local /ipfs/$DIR1 > output
grep -q "(100.00%)" output
'
test_expect_success "cannot mkdir / $EXTRA" '
test_expect_code 1 ipfs files mkdir $ARGS /
'