kubo/test/Makefile
2014-11-07 17:24:13 -08:00

41 lines
750 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))
all: clean deps $(T) aggregate
clean:
@echo "*** $@ ***"
-rm -r test-results
$(T):
@echo "*** $@ ***"
./$@
aggregate:
@echo "*** $@ ***"
./test-aggregate-results.sh
deps: ipfs sharness.sh random
# phony to ensure we re-build it every time we run tests
ipfs:
cd ../cmd/ipfs && go build
cp ../cmd/ipfs/ipfs ipfs
sharness.sh:
@echo "*** installing $@ ***"
./install-sharness.sh
.PHONY: all clean $(T) aggregate ipfs
random:
@echo "*** installing $@ ***"
go get github.com/jbenet/go-random/random
go install github.com/jbenet/go-random/random
cp `which random` random