test: use multihash instead of shasum in tests
As shasum is not installed on all machines and we use multihash anyway in the code base, it removes one dependency to use shasum instead of shasum in the tests. Now that there are sharness tests in multihash it is also safe to use it. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Feb 8, 2015 at 13:07 UTC
fe1ba2bf18568ee447c7e238a04f3c33f31f3857
2 files changed
+6
-2
test/Makefile
+5
-1
@@ -1,8 +1,9 @@
1
2
-BINS = bin/random bin/ipfs
2
+BINS = bin/random bin/multihash bin/ipfs
3
IPFS_ROOT = ../
4
IPFS_CMD = ../cmd/ipfs
5
RANDOM_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-random
6
+MULTIHASH_SRC = ../Godeps/_workspace/src/github.com/jbenet/go-multihash
7
8
all: deps
9
@@ -16,6 +17,9 @@ bins: $(BINS)
17
bin/random: $(RANDOM_SRC)/**/*.go
18
go build -o bin/random $(RANDOM_SRC)/random
19
20
+bin/multihash: $(MULTIHASH_SRC)/**/*.go
21
+ go build -o bin/multihash $(MULTIHASH_SRC)/multihash
22
+
23
bin/ipfs: $(IPFS_ROOT)/**/*.go
24
go build -o bin/ipfs $(IPFS_CMD)
25
test/sharness/Makefile
+1
-1
@@ -7,7 +7,7 @@
7
# NOTE: run with TEST_VERBOSE=1 for verbose sharness tests.
8
9
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
10
-BINS = bin/random bin/ipfs
10
+BINS = bin/random bin/multihash bin/ipfs
11
SHARNESS = lib/sharness/sharness.sh
12
IPFS_ROOT = ../..
13