Commit 9434f6e5 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

tests: use shasum instead of sha1sum

sha1sum is not in osx by default.
shasum seems to be everywhere.
parent bc0e3192
......@@ -48,7 +48,7 @@ test_expect_success "generate 100MB file using go-random" '
test_expect_success "sha1 of the file looks ok" '
echo "54dc0dbbc353b2ffb745285793f89af0c9d98449 mountdir/bigfile" >sha1_expected &&
sha1sum mountdir/bigfile >sha1_actual &&
shasum mountdir/bigfile >sha1_actual &&
test_cmp sha1_expected sha1_actual
'
......@@ -63,7 +63,7 @@ test_expect_success "ipfs add bigfile output looks good" '
'
test_expect_success "ipfs cat succeeds" '
ipfs cat $HASH | sha1sum >sha1_actual
ipfs cat $HASH | shasum >sha1_actual
'
test_expect_success "ipfs cat output looks good" '
......@@ -72,7 +72,7 @@ test_expect_success "ipfs cat output looks good" '
'
test_expect_success "cat ipfs/bigfile succeeds" '
cat ipfs/$HASH | sha1sum >sha1_actual
cat ipfs/$HASH | shasum >sha1_actual
'
test_expect_success "cat ipfs/bigfile looks good" '
......
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