@cryptotaxi247 / kubo / commits / ad71b15e3

sharness: remove xt0130-multinode.sh

xt0130 test is already in as t0130. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Feb 19, 2016 at 03:30 UTC ad71b15e36a26cd835408ab2e70e31e4076217f0
1 file changed -40
test/sharness/xt0130-multinode.sh deleted
-40
@@ -1,40 +0,0 @@
1 -#!/bin/sh
2 -#
3 -# Copyright (c) 2015 Jeromy Johnson
4 -# MIT Licensed; see the LICENSE file in this repository.
5 -#
6 -
7 -test_description="Test multiple ipfs nodes"
8 -
9 -. lib/test-lib.sh
10 -
11 -export IPTB_ROOT="`pwd`/.iptb"
12 -
13 -test_expect_success "set up a few nodes" '
14 - IPTB_PORT=$((RANDOM % 10000 + 22000)) &&
15 - iptb -n=3 "-p=$IPTB_PORT" init &&
16 - iptb -wait start
17 -'
18 -
19 -test_expect_success "add a file on node1" '
20 - export IPFS_PATH="$IPTB_ROOT/1" &&
21 - random 1000000 > filea &&
22 - FILEA_HASH=$(ipfs add -q filea)
23 -'
24 -
25 -test_expect_success "cat that file on node2" '
26 - export IPFS_PATH="$IPTB_ROOT/2" &&
27 - ipfs cat $FILEA_HASH >fileb
28 -'
29 -
30 -test_expect_success "verify files match" '
31 - multihash filea > expected1 &&
32 - multihash fileb > actual1 &&
33 - test_cmp expected1 actual1
34 -'
35 -
36 -test_expect_success "shut down nodes" '
37 - iptb stop
38 -'
39 -
40 -test_done