kubo/test/Makefile
Christian Couder 2b5f1b2d8c Install sharness in a 'sharness' directory
It is cleaner if sharness is installed in its own
directory.
2014-11-08 02:44:03 +01:00

43 lines
820 B
Makefile

# Run tests
#
# Copyright (c) 2014 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
SHARNESS = sharness/sharness.sh
all: clean deps $(T) aggregate
clean:
@echo "*** $@ ***"
-rm -r test-results
$(T):
@echo "*** $@ ***"
./$@
aggregate:
@echo "*** $@ ***"
./test-aggregate-results.sh
deps: $(SHARNESS) ipfs random
$(SHARNESS):
@echo "*** installing $@ ***"
./install-sharness.sh
# phony to ensure we re-build it every time we run tests
ipfs:
@echo "*** installing $@ ***"
cd ../cmd/ipfs && go build
cp ../cmd/ipfs/ipfs ipfs
random:
@echo "*** installing $@ ***"
go get github.com/jbenet/go-random/random
go install github.com/jbenet/go-random/random
cp `which random` random
.PHONY: all clean $(T) aggregate ipfs random