1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

test: cat test actual output

This commit is contained in:
Juan Batiz-Benet
2014-11-17 22:35:42 -08:00
parent 493e5d3b3e
commit 088016c850

View File

@ -63,10 +63,15 @@ test_expect_success "ipfs add bigfile output looks good" '
'
test_expect_success "ipfs cat succeeds" '
ipfs cat $HASH | shasum >sha1_actual
ipfs cat $HASH >actual &&
cat actual | shasum >sha1_actual
'
test_expect_success "ipfs cat output looks good" '
test_cmp mountdir/bigfile actual
'
test_expect_success "ipfs cat output shasum looks good" '
echo "885b197b01e0f7ff584458dc236cb9477d2e736d -" >sha1_expected &&
test_cmp sha1_expected sha1_actual
'