Skip to content

Commit

Permalink
add tests for ipfs files stat --with-local
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
  • Loading branch information
MichaelMure committed Feb 4, 2018
1 parent 69b8383 commit 8fd6fdb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sharness/t0250-files-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
'
Expand Down

0 comments on commit 8fd6fdb

Please sign in to comment.