1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +08:00

t0121, t0130, t0240: use iptb-lib.sh

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2016-02-01 13:35:54 +01:00
parent d1f15d445b
commit 8b875ebe77
3 changed files with 0 additions and 33 deletions

View File

@ -17,19 +17,6 @@ test_expect_success "disable mdns" '
test_launch_ipfs_daemon
export IPTB_ROOT="`pwd`/.iptb"
ipfsi() {
dir="$1"
shift
IPFS_PATH="$IPTB_ROOT/$dir" ipfs $@
}
check_has_connection() {
node=$1
ipfsi $node swarm peers | grep ipfs > /dev/null
}
test_expect_success "setup iptb nodes" '
iptb init -n 5 -f --bootstrap=none --port=0
'

View File

@ -8,19 +8,6 @@ test_description="Test multiple ipfs nodes"
. lib/test-lib.sh
export IPTB_ROOT="`pwd`/.iptb"
ipfsi() {
dir="$1"
shift
IPFS_PATH="$IPTB_ROOT/$dir" ipfs $@
}
check_has_connection() {
node=$1
ipfsi $node swarm peers | grep ipfs > /dev/null
}
startup_cluster() {
test_expect_success "start up nodes" '
iptb start

View File

@ -8,15 +8,8 @@ test_description="Test ipfs repo operations"
. lib/test-lib.sh
export IPTB_ROOT="`pwd`/.iptb"
export DEBUG=true
ipfsi() {
dir="$1"
shift
IPFS_PATH="$IPTB_ROOT/$dir" ipfs "$@"
}
setup_iptb() {
test_expect_success "iptb init" '
iptb init -n4 --bootstrap none --port 0