Skip to content

Commit

Permalink
test: add test for ipfs add --quieter
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Kubuxu committed Mar 9, 2017
1 parent d3a4406 commit c62df65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/sharness/t0040-add-and-cat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,15 @@ add_directory() {
test_cmp expected actual
'

test_expect_success "ipfs add --quieter succeeds" '
ipfs add -r -Q $EXTRA_ARGS mountdir/planets >actual
'

test_expect_success "ipfs add --quieter returns only one correct hash" '
echo "$PLANETS" > expected &&
test_cmp expected actual
'

test_expect_success "cleanup" '
rm -r mountdir/planets
'
Expand Down

0 comments on commit c62df65

Please sign in to comment.