Skip to content

Commit 2bc282a

Browse files
committed
add test for 6-to-7 migration
This needs to happen *after* publishing a release as we need to use that release in the test.
1 parent 26a332b commit 2bc282a

File tree

841 files changed

+265510
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

841 files changed

+265510
-2
lines changed

sharness/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ BINS += bin/ipfs-2-to-3
1919
BINS += bin/ipfs-3-to-4
2020
BINS += bin/ipfs-4-to-5
2121
BINS += bin/ipfs-5-to-6
22+
BINS += bin/ipfs-6-to-7
2223
BINS += bin/ipfs-update
2324
BINS += bin/random-files
2425
BINS += bin/go-sleep
2526
BINS += bin/pollEndpoint
27+
BINS += bin/iptb
2628

2729
# Source files location
2830
FS_REPO_SRC = ../
@@ -32,8 +34,10 @@ IPFS_2_TO_3_SRC = ../ipfs-2-to-3
3234
IPFS_3_TO_4_SRC = ../ipfs-3-to-4
3335
IPFS_4_TO_5_SRC = ../ipfs-4-to-5
3436
IPFS_5_TO_6_SRC = ../ipfs-5-to-6
37+
IPFS_6_TO_7_SRC = ../ipfs-6-to-7
3538
IPFS_UPDATE_SRC = ../Godeps/_workspace/src/github.com/ipfs/ipfs-update
3639
POLL_ENDPOINT_SRC = ./dependencies/pollEndpoint
40+
IPTB_SRC = ./dependencies/iptb
3741

3842
# User might want to override those on the command line
3943
GOFLAGS =
@@ -83,6 +87,10 @@ bin/go-sleep:
8387
go get github.com/chriscool/go-sleep
8488
go build $(GOFLAGS) -o $@ github.com/chriscool/go-sleep
8589

90+
bin/iptb: $(call find_go_files, $(IPTB_SRC)) BUILD-OPTIONS
91+
@echo "*** installing $@ ***"
92+
go build $(GOFLAGS) -o $@ $(IPTB_SRC)
93+
8694
bin/ipfs-0-to-1: $(call find_go_files, $(IPFS_0_TO_1_SRC)) BUILD-OPTIONS
8795
@echo "*** installing $@ ***"
8896
go build $(GOFLAGS) -o $@ $(IPFS_0_TO_1_SRC)
@@ -107,6 +115,10 @@ bin/ipfs-5-to-6: $(call find_go_files, $(IPFS_5_TO_6_SRC)) BUILD-OPTIONS
107115
@echo "*** installing $@ ***"
108116
go build $(GOFLAGS) -o $@ $(IPFS_5_TO_6_SRC)
109117

118+
bin/ipfs-6-to-7: $(call find_go_files, $(IPFS_6_TO_7_SRC)) BUILD-OPTIONS
119+
@echo "*** installing $@ ***"
120+
go build $(GOFLAGS) -o $@ $(IPFS_6_TO_7_SRC)
121+
110122
bin/pollEndpoint: $(call find_go_files, $(POLL_ENDPOINT_SRC)) BUILD-OPTIONS
111123
@echo "*** installing $@ ***"
112124
go build $(GOFLAGS) -o $@ $(POLL_ENDPOINT_SRC)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.0: QmTD9SdvPDfzdQrBq4iSD3LDDaM3dKHtvvuGbqzMGUHkat

sharness/dependencies/iptb/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Jeromy Johnson
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
all:
2+
go build
3+
4+
test:
5+
make -C sharness all
6+
7+
.PHONY: all test
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# IPTB
2+
`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!
3+
4+
### Example
5+
6+
```
7+
$ iptb init -n 5
8+
9+
$ iptb start
10+
Started daemon 0, pid = 12396
11+
Started daemon 1, pid = 12406
12+
Started daemon 2, pid = 12415
13+
Started daemon 3, pid = 12424
14+
Started daemon 4, pid = 12434
15+
16+
$ iptb shell 0
17+
$ echo $IPFS_PATH
18+
/home/noffle/testbed/0
19+
20+
$ echo 'hey!' | ipfs add -q
21+
QmNqugRcYjwh9pEQUK7MLuxvLjxDNZL1DH8PJJgWtQXxuF
22+
23+
$ exit
24+
25+
$ iptb connect 0 4
26+
27+
$ iptb shell 4
28+
$ ipfs cat QmNqugRcYjwh9pEQUK7MLuxvLjxDNZL1DH8PJJgWtQXxuF
29+
hey!
30+
```
31+
32+
### Usage
33+
```
34+
$ iptb --help
35+
36+
NAME:
37+
iptb - The IPFS TestBed
38+
39+
USAGE:
40+
iptb [global options] command [command options] [arguments...]
41+
42+
COMMANDS:
43+
init create and initialize testbed configuration
44+
start start up all testbed nodes
45+
kill, stop kill a specific node (or all nodes, if none specified)
46+
restart kill all nodes, then restart
47+
shell spawn a subshell with certain IPFS environment variables set
48+
get get an attribute of the given node
49+
connect connect two nodes together
50+
dump-stack get a stack dump from the given daemon
51+
help, h show a list of subcommands, or help for a specific subcommand
52+
53+
GLOBAL OPTIONS:
54+
--help, -h show help
55+
--version, -v print the version
56+
```
57+
58+
### Install
59+
60+
```
61+
go get github.com/whyrusleeping/iptb
62+
```
63+
64+
### Configuration
65+
66+
By default, `iptb` uses `$HOME/testbed` to store created nodes. This path is
67+
configurable via the environment variables `IPTB_ROOT`.
68+
69+
70+
71+
### License
72+
73+
MIT

0 commit comments

Comments
 (0)