check output hash for correctness

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
Jeromy 2016-05-17 10:49:13 -07:00
parent 562c801976
commit 60cae2079a

View File

@ -185,9 +185,15 @@ test_object_cmd() {
N1=$(ipfs object patch $EMPTY_DIR add-link baz $EMPTY_DIR) &&
N2=$(ipfs object patch $EMPTY_DIR add-link bar $N1) &&
N3=$(ipfs object patch $EMPTY_DIR add-link foo /ipfs/$N2/bar) &&
ipfs object stat /ipfs/$N3 &&
ipfs object stat $N3/foo &&
ipfs object stat /ipfs/$N3/foo/baz
ipfs object stat /ipfs/$N3 > /dev/null &&
ipfs object stat $N3/foo > /dev/null &&
ipfs object stat /ipfs/$N3/foo/baz > /dev/null
'
test_expect_success "object patch creation looks right" '
echo "QmPc73aWK9dgFBXe86P4PvQizHo9e5Qt7n7DAMXWuigFuG" > hash_exp &&
echo $N3 > hash_actual &&
test_cmp hash_exp hash_actual
'
test_expect_success "multilayer ipfs patch works" '