2016-02-12 18:02:16 +00:00
|
|
|
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
|
|
|
|
|
|
|
|
test:
|
2017-02-02 21:19:08 +00:00
|
|
|
go test -timeout=60s ./...
|
2016-02-12 18:02:16 +00:00
|
|
|
|
|
|
|
integ: test
|
2017-07-07 00:18:18 +00:00
|
|
|
INTEG_TESTS=yes go test -timeout=25s -run=Integ ./...
|
2016-02-12 18:02:16 +00:00
|
|
|
|
|
|
|
deps:
|
|
|
|
go get -d -v ./...
|
|
|
|
echo $(DEPS) | xargs -n1 go get -d
|
|
|
|
|
|
|
|
cov:
|
|
|
|
INTEG_TESTS=yes gocov test github.com/hashicorp/raft | gocov-html > /tmp/coverage.html
|
|
|
|
open /tmp/coverage.html
|
|
|
|
|
|
|
|
.PHONY: test cov integ deps
|