t0121, t0130, t0240: use iptb-lib.sh
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Feb 1, 2016 at 13:35 UTC
8b875ebe770c3093496b5a58f6003809f6fd64e9
3 files changed
-33
test/sharness/t0121-bootstrap-iptb.sh
-13
@@ -17,19 +17,6 @@ test_expect_success "disable mdns" '
17
18
test_launch_ipfs_daemon
19
20
-export IPTB_ROOT="`pwd`/.iptb"
21
-
22
-ipfsi() {
23
- dir="$1"
24
- shift
25
- IPFS_PATH="$IPTB_ROOT/$dir" ipfs $@
26
-}
27
-
28
-check_has_connection() {
29
- node=$1
30
- ipfsi $node swarm peers | grep ipfs > /dev/null
31
-}
32
-
20
test_expect_success "setup iptb nodes" '
21
iptb init -n 5 -f --bootstrap=none --port=0
22
'
test/sharness/t0130-multinode.sh
-13
@@ -8,19 +8,6 @@ test_description="Test multiple ipfs nodes"
8
9
. lib/test-lib.sh
10
11
-export IPTB_ROOT="`pwd`/.iptb"
12
-
13
-ipfsi() {
14
- dir="$1"
15
- shift
16
- IPFS_PATH="$IPTB_ROOT/$dir" ipfs $@
17
-}
18
-
19
-check_has_connection() {
20
- node=$1
21
- ipfsi $node swarm peers | grep ipfs > /dev/null
22
-}
23
-
11
startup_cluster() {
12
test_expect_success "start up nodes" '
13
iptb start
test/sharness/t0240-republisher.sh
-7
@@ -8,15 +8,8 @@ test_description="Test ipfs repo operations"
8
9
. lib/test-lib.sh
10
11
-export IPTB_ROOT="`pwd`/.iptb"
11
export DEBUG=true
12
14
-ipfsi() {
15
- dir="$1"
16
- shift
17
- IPFS_PATH="$IPTB_ROOT/$dir" ipfs "$@"
18
-}
19
-
13
setup_iptb() {
14
test_expect_success "iptb init" '
15
iptb init -n4 --bootstrap none --port 0