@cryptotaxi247 / kubo / commits / 9434f6e53

tests: use shasum instead of sha1sum

sha1sum is not in osx by default. shasum seems to be everywhere.

Juan Batiz-Benet committed Nov 7, 2014 at 14:10 UTC 9434f6e531c22691265093c42c2bfd6e23e143de
1 file changed +3 -3
test/t0040-add-and-cat.sh
+3 -3
@@ -48,7 +48,7 @@ test_expect_success "generate 100MB file using go-random" '
48
49 test_expect_success "sha1 of the file looks ok" '
50 echo "54dc0dbbc353b2ffb745285793f89af0c9d98449 mountdir/bigfile" >sha1_expected &&
51 - sha1sum mountdir/bigfile >sha1_actual &&
51 + shasum mountdir/bigfile >sha1_actual &&
52 test_cmp sha1_expected sha1_actual
53 '
54
@@ -63,7 +63,7 @@ test_expect_success "ipfs add bigfile output looks good" '
63 '
64
65 test_expect_success "ipfs cat succeeds" '
66 - ipfs cat $HASH | sha1sum >sha1_actual
66 + ipfs cat $HASH | shasum >sha1_actual
67 '
68
69 test_expect_success "ipfs cat output looks good" '
@@ -72,7 +72,7 @@ test_expect_success "ipfs cat output looks good" '
72 '
73
74 test_expect_success "cat ipfs/bigfile succeeds" '
75 - cat ipfs/$HASH | sha1sum >sha1_actual
75 + cat ipfs/$HASH | shasum >sha1_actual
76 '
77
78 test_expect_success "cat ipfs/bigfile looks good" '