test: add go-timeotu to test build system
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Aug 31, 2016 at 19:48 UTC
f012b5aed5010900c085aea5c46edb22a5da8733
2 files changed
+7
-1
test/Makefile
+6
@@ -1,11 +1,13 @@
1
2
BINS = bin/random bin/multihash bin/ipfs bin/pollEndpoint bin/iptb bin/go-sleep
3
+BINS += bin/go-timeout
4
IPFS_ROOT = ../
5
IPFS_CMD = ../cmd/ipfs
6
RANDOM_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random
7
RANDOM_FILES_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random-files
8
POLLENDPOINT_SRC= ../thirdparty/pollEndpoint
9
GOSLEEP_SRC = ./dependencies/go-sleep
10
+GOTIMEOUT_SRC = ./dependencies/go-timeout
11
12
export PATH := ../bin:${PATH}
13
@@ -48,6 +50,10 @@ bin/go-sleep: $(call find_go_files, $(GOSLEEP_SRC)) IPFS-BUILD-OPTIONS
50
@echo "*** installing $@ ***"
51
go build $(GOFLAGS) -o bin/go-sleep $(GOSLEEP_SRC)
52
53
+bin/go-timeout: $(call find_go_files, $(GOTIMEOUT_SRC)) IPFS-BUILD-OPTIONS
54
+ @echo "*** installing $@ ***"
55
+ go build $(GOFLAGS) -o bin/go-timeout $(GOTIMEOUT_SRC)
56
+
57
# gx dependencies
58
59
multihash_src:
test/sharness/Makefile
+1
-1
@@ -8,7 +8,7 @@
8
9
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
10
BINS = bin/random bin/multihash bin/ipfs bin/pollEndpoint \
11
- bin/iptb bin/go-sleep bin/random-files
11
+ bin/iptb bin/go-sleep bin/random-files bin/go-timeout
12
SHARNESS = lib/sharness/sharness.sh
13
IPFS_ROOT = ../..
14