@cryptotaxi247 / kubo / commits / 60cae2079

check output hash for correctness

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed May 17, 2016 at 10:49 UTC 60cae2079a8e9155db788e440eff706aee87b064
1 file changed +9 -3
test/sharness/t0051-object.sh
+9 -3
@@ -185,9 +185,15 @@ test_object_cmd() {
185 N1=$(ipfs object patch $EMPTY_DIR add-link baz $EMPTY_DIR) &&
186 N2=$(ipfs object patch $EMPTY_DIR add-link bar $N1) &&
187 N3=$(ipfs object patch $EMPTY_DIR add-link foo /ipfs/$N2/bar) &&
188 - ipfs object stat /ipfs/$N3 &&
189 - ipfs object stat $N3/foo &&
190 - ipfs object stat /ipfs/$N3/foo/baz
188 + ipfs object stat /ipfs/$N3 > /dev/null &&
189 + ipfs object stat $N3/foo > /dev/null &&
190 + ipfs object stat /ipfs/$N3/foo/baz > /dev/null
191 + '
192 +
193 + test_expect_success "object patch creation looks right" '
194 + echo "QmPc73aWK9dgFBXe86P4PvQizHo9e5Qt7n7DAMXWuigFuG" > hash_exp &&
195 + echo $N3 > hash_actual &&
196 + test_cmp hash_exp hash_actual
197 '
198
199 test_expect_success "multilayer ipfs patch works" '