@cryptotaxi247 / kubo / commits / e22cbcec2

t0100: add peerid check

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Sep 12, 2015 at 19:16 UTC e22cbcec27a053ab01e7a03f994cbce4ee186a09
1 file changed +3
test/sharness/t0100-name.sh
+3
@@ -14,6 +14,7 @@ test_init_ipfs
14
15 test_expect_success "'ipfs name publish' succeeds" '
16 PEERID=`ipfs id --format="<id>"` &&
17 + test_check_peerid "${PEERID}" &&
18 ipfs name publish "/ipfs/$HASH_WELCOME_DOCS" >publish_out
19 '
20
@@ -35,6 +36,7 @@ test_expect_success "resolve output looks good" '
36
37 test_expect_success "'ipfs name publish' succeeds" '
38 PEERID=`ipfs id --format="<id>"` &&
39 + test_check_peerid "${PEERID}" &&
40 ipfs name publish "/ipfs/$HASH_WELCOME_DOCS/help" >publish_out
41 '
42
@@ -56,6 +58,7 @@ test_expect_success "resolve output looks good" '
58
59 test_expect_success "'ipfs name publish <local-id> <hash>' succeeds" '
60 PEERID=`ipfs id --format="<id>"` &&
61 + test_check_peerid "${PEERID}" &&
62 ipfs name publish "${PEERID}" "/ipfs/$HASH_WELCOME_DOCS" >actual_node_id_publish
63 '
64