From 088016c85017844388f61da7df0c292265b0b84a Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Mon, 17 Nov 2014 22:35:42 -0800 Subject: [PATCH] test: cat test actual output --- test/t0040-add-and-cat.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/t0040-add-and-cat.sh b/test/t0040-add-and-cat.sh index 3b612fee9..3ee349fc4 100755 --- a/test/t0040-add-and-cat.sh +++ b/test/t0040-add-and-cat.sh @@ -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 '