Skip to content

Commit

Permalink
test/sharness: Added tests for 'ipfs add -w'
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Feb 1, 2015
1 parent 339d723 commit b818cda
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/sharness/t0040-add-and-cat.sh
Expand Up @@ -165,6 +165,16 @@ test_expect_success FUSE,EXPENSIVE "cat ipfs/bigfile looks good" '
test_cmp sha1_expected sha1_actual
'

test_expect_success "ipfs add -w succeeds" '
ipfs add -w mountdir/hello.txt >actual
'

test_expect_success "ipfs add -w output looks good" '
HASH="QmVJfrqd4ogGZME6LWkkikAGddYgh9dBs2U14DHZZUBk7W" &&
echo "added "$HASH/hello.txt" mountdir/hello.txt" >expected &&

This comment has been minimized.

Copy link
@chriscool

chriscool Feb 1, 2015

Contributor

Maybe with only 2 double quotes:

echo "added $HASH/hello.txt mountdir/hello.txt" >expected &&

test_cmp expected actual
'

test_kill_ipfs_daemon

test_done

0 comments on commit b818cda

Please sign in to comment.