Skip to content

Commit

Permalink
Add sharness test for ipfs add --quiet
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  • Loading branch information
chriscool committed Nov 30, 2014
1 parent 5bfdc2e commit aca62a4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/t0040-add-and-cat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ test_expect_success FUSE "cat ipfs/stuff looks good" '
test_cmp expected actual
'

test_expect_success "'ipfs add -q' succeeds" '
echo "Hello Venus!" >mountdir/venus.txt &&
ipfs add -q mountdir/venus.txt >actual
'

test_expect_success "'ipfs add -q' output looks good" '
HASH="QmU5kp3BH3B8tnWUU2Pikdb2maksBNkb92FHRr56hyghh4" &&
echo "$HASH" >expected &&
test_cmp expected actual
'

test_expect_success "go-random is installed" '
type random
'
Expand Down

0 comments on commit aca62a4

Please sign in to comment.