Commit 60ad7a5a authored by Jeromy's avatar Jeromy

sharness tests for --only-hash

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent e42c9672
......@@ -39,6 +39,14 @@ test_expect_success "ipfs add output looks good" '
test_cmp expected actual
'
test_expect_success "ipfs add --only-hash succeeds" '
ipfs add --only-hash mountdir/hello.txt > oh_actual
'
test_expect_success "ipfs add --only-hash output looks good" '
ipfs add --only-hash mountdir/hello.txt > oh_actual
'
test_expect_success "ipfs cat succeeds" '
ipfs cat "$HASH" >actual
'
......
......@@ -15,6 +15,20 @@ test_expect_success "ipfs add file succeeds" '
HASH=$(ipfs add -q afile)
'
test_expect_success "ipfs add output looks good" '
echo Qmb1EXrDyKhNWfvLPYK4do3M9nU7BuLAcbqBir6aUrDsRY > expected &&
echo $HASH > actual &&
test_cmp expected actual
'
test_expect_success "ipfs add --only-hash succeeds" '
ipfs add -q --only-hash afile > ho_output
'
test_expect_success "ipfs add --only-hash output looks good" '
test_cmp expected ho_output
'
test_expect_success "ipfs cat file suceeds" '
ipfs cat $HASH > out_1
'
......
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