From ad67f18dc8df14fcc20c242e2cdd4adca5fbc054 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 26 Apr 2015 17:26:51 +0200 Subject: [PATCH 1/2] t0130: small improvements License: MIT Signed-off-by: Christian Couder --- test/sharness/t0130-multinode.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/sharness/t0130-multinode.sh b/test/sharness/t0130-multinode.sh index 0fb96c6cc..8080d0f27 100755 --- a/test/sharness/t0130-multinode.sh +++ b/test/sharness/t0130-multinode.sh @@ -16,18 +16,19 @@ test_expect_success "set up a few nodes" ' ' test_expect_success "add a file on node1" ' - export IPFS_PATH="$IPTB_ROOT/1" + export IPFS_PATH="$IPTB_ROOT/1" && random 1000000 > filea && - FILEA_HASH=`ipfs add -q filea` + FILEA_HASH=$(ipfs add -q filea) ' test_expect_success "cat that file on node2" ' - export IPFS_PATH="$IPTB_ROOT/2" - ipfs cat $FILEA_HASH | multihash > actual1 + export IPFS_PATH="$IPTB_ROOT/2" && + ipfs cat $FILEA_HASH >fileb ' test_expect_success "verify files match" ' multihash filea > expected1 && + multihash fileb > actual1 && test_cmp actual1 expected1 ' From cfcc7c6839eb34002f0bd54bec080e94ca452928 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 26 Apr 2015 17:28:31 +0200 Subject: [PATCH 2/2] test/Makefile: add bin/iptb into BINS License: MIT Signed-off-by: Christian Couder --- test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 6f86b1232..17c22300a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ -BINS = bin/random bin/multihash bin/ipfs bin/pollEndpoint +BINS = bin/random bin/multihash bin/ipfs bin/pollEndpoint bin/iptb IPFS_ROOT = ../ IPFS_CMD = ../cmd/ipfs RANDOM_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random