@cryptotaxi247 / kubo / commits / 088016c85

test: cat test actual output

Juan Batiz-Benet committed Nov 17, 2014 at 22:35 UTC 088016c85017844388f61da7df0c292265b0b84a
1 file changed +6 -1
test/t0040-add-and-cat.sh
+6 -1
@@ -63,10 +63,15 @@ test_expect_success "ipfs add bigfile output looks good" '
63 '
64
65 test_expect_success "ipfs cat succeeds" '
66 - ipfs cat $HASH | shasum >sha1_actual
66 + ipfs cat $HASH >actual &&
67 + cat actual | shasum >sha1_actual
68 '
69
70 test_expect_success "ipfs cat output looks good" '
71 + test_cmp mountdir/bigfile actual
72 +'
73 +
74 +test_expect_success "ipfs cat output shasum looks good" '
75 echo "885b197b01e0f7ff584458dc236cb9477d2e736d -" >sha1_expected &&
76 test_cmp sha1_expected sha1_actual
77 '