2016-02-12 18:02:16 +00:00
|
|
|
DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
|
|
|
|
|
|
|
|
test:
|
2018-01-19 22:00:01 +00:00
|
|
|
go test -timeout=60s .
|
2016-02-12 18:02:16 +00:00
|
|
|
|
|
|
|
integ: test
|
2018-01-19 22:00:01 +00:00
|
|
|
INTEG_TESTS=yes go test -timeout=25s -run=Integ .
|
2016-02-12 18:02:16 +00:00
|
|
|
|
2018-01-19 22:00:01 +00:00
|
|
|
fuzz:
|
|
|
|
go test -timeout=300s ./fuzzy
|
|
|
|
|
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
|