From cd92b47d6440403aece8adfa21499ac4189b5804 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 28 Jul 2017 17:08:32 +0300 Subject: [PATCH] test/sharness: extended circuit relay test License: MIT Signed-off-by: vyzo --- test/sharness/t0182-circuit-relay.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/sharness/t0182-circuit-relay.sh b/test/sharness/t0182-circuit-relay.sh index 1febb195c1ea..a9c5dff1f419 100755 --- a/test/sharness/t0182-circuit-relay.sh +++ b/test/sharness/t0182-circuit-relay.sh @@ -63,6 +63,23 @@ test_expect_success 'peers for B look good' ' test_cmp peers_exp peers_out ' +test_expect_success 'add an object in A' ' + echo "hello relay" | ipfsi 0 add > peers_out +' + +test_expect_success 'object ID' ' + OBJID=$(cut -f3 -d " " peers_out) +' + +test_expect_success 'cat the object in B' ' + ipfsi 2 cat $OBJID > peers_out +' + +test_expect_success 'output looks good' ' + echo "hello relay" > peers_exp && + test_cmp peers_exp peers_out +' + test_expect_success 'stop iptb' ' iptb stop '