Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
9434f6e5
Commit
9434f6e5
authored
Nov 07, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: use shasum instead of sha1sum
sha1sum is not in osx by default. shasum seems to be everywhere.
parent
bc0e3192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/t0040-add-and-cat.sh
test/t0040-add-and-cat.sh
+3
-3
No files found.
test/t0040-add-and-cat.sh
View file @
9434f6e5
...
...
@@ -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 &&
sha
1
sum 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 | sha
1
sum >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 | sha
1
sum >sha1_actual
cat ipfs/$HASH | shasum >sha1_actual
'
test_expect_success
"cat ipfs/bigfile looks good"
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment