Skip to content

Commit

Permalink
vendor iptb
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jun 1, 2018
1 parent 9b73d1d commit 5eea3d9
Show file tree
Hide file tree
Showing 828 changed files with 264,596 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sharness/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ IPFS_5_TO_6_SRC = ../ipfs-5-to-6
IPFS_6_TO_7_SRC = ../ipfs-6-to-7
IPFS_UPDATE_SRC = ../Godeps/_workspace/src/github.com/ipfs/ipfs-update
POLL_ENDPOINT_SRC = ./dependencies/pollEndpoint
IPTB_SRC = ./dependencies/iptb

# User might want to override those on the command line
GOFLAGS =
Expand Down Expand Up @@ -86,10 +87,9 @@ bin/go-sleep:
go get github.com/chriscool/go-sleep
go build $(GOFLAGS) -o $@ github.com/chriscool/go-sleep

bin/iptb:
bin/iptb: $(call find_go_files, $(IPTB_SRC)) BUILD-OPTIONS
@echo "*** installing $@ ***"
go get github.com/ipfs/iptb
go build $(GOFLAGS) -o $@ github.com/ipfs/iptb
go build $(GOFLAGS) -o $@ $(IPTB_SRC)

bin/ipfs-0-to-1: $(call find_go_files, $(IPFS_0_TO_1_SRC)) BUILD-OPTIONS
@echo "*** installing $@ ***"
Expand Down
1 change: 1 addition & 0 deletions sharness/dependencies/iptb/.gx/lastpubver
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3.0: QmTD9SdvPDfzdQrBq4iSD3LDDaM3dKHtvvuGbqzMGUHkat
21 changes: 21 additions & 0 deletions sharness/dependencies/iptb/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Jeromy Johnson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
7 changes: 7 additions & 0 deletions sharness/dependencies/iptb/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
all:
go build

test:
make -C sharness all

.PHONY: all test
73 changes: 73 additions & 0 deletions sharness/dependencies/iptb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# IPTB
`iptb` is a program used to create and manage a cluster of sandboxed IPFS nodes locally on your computer. Spin up 1000s of nodes! It exposes various options, such as different bootstrapping patterns. `iptb` makes testing IPFS networks easy!

### Example

```
$ iptb init -n 5
$ iptb start
Started daemon 0, pid = 12396
Started daemon 1, pid = 12406
Started daemon 2, pid = 12415
Started daemon 3, pid = 12424
Started daemon 4, pid = 12434
$ iptb shell 0
$ echo $IPFS_PATH
/home/noffle/testbed/0
$ echo 'hey!' | ipfs add -q
QmNqugRcYjwh9pEQUK7MLuxvLjxDNZL1DH8PJJgWtQXxuF
$ exit
$ iptb connect 0 4
$ iptb shell 4
$ ipfs cat QmNqugRcYjwh9pEQUK7MLuxvLjxDNZL1DH8PJJgWtQXxuF
hey!
```

### Usage
```
$ iptb --help
NAME:
iptb - The IPFS TestBed
USAGE:
iptb [global options] command [command options] [arguments...]
COMMANDS:
init create and initialize testbed configuration
start start up all testbed nodes
kill, stop kill a specific node (or all nodes, if none specified)
restart kill all nodes, then restart
shell spawn a subshell with certain IPFS environment variables set
get get an attribute of the given node
connect connect two nodes together
dump-stack get a stack dump from the given daemon
help, h show a list of subcommands, or help for a specific subcommand
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```

### Install

```
go get github.com/whyrusleeping/iptb
```

### Configuration

By default, `iptb` uses `$HOME/testbed` to store created nodes. This path is
configurable via the environment variables `IPTB_ROOT`.



### License

MIT
Loading

0 comments on commit 5eea3d9

Please sign in to comment.