@cryptotaxi247 / kubo / commits / fa57fb734

sharness: remove x0045-add-cat-iptb.sh

x0045 can be removed since we do the same stuff in other tests. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Feb 19, 2016 at 03:30 UTC fa57fb7349619c59bb4933aa916972c6aa19d288
1 file changed -40
test/sharness/x0045-add-cat-iptb.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 two nodes transferring a large file"
8 -
9 -. lib/test-lib.sh
10 -
11 -export IPTB_ROOT="`pwd`/.iptb"
12 -
13 -test_expect_success "set up two nodes" '
14 - IPTB_PORT=$((RANDOM % 10000 + 22000)) &&
15 - iptb -n=2 "-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/0" &&
21 - random 400000000 > 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/1" &&
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