Commit 54fef5ea authored by Matt Bell's avatar Matt Bell

test/sharness: Added tests for 'ipfs add -w'

parent 1ad5b345
......@@ -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 &&
test_cmp expected actual
'
test_kill_ipfs_daemon
test_done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment