1 TEST?=$$(go list ./... |grep -v 'vendor')
2 GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
11 go test -i $(TEST) || exit 1
13 xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
16 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
20 @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
22 echo "Vet found suspicious constructs. Please check the reported constructs"; \
23 echo "and fix them if necessary before submitting the code for review."; \
28 gofmt -w $(GOFMT_FILES)
31 @sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
34 @sh -c "'$(CURDIR)/scripts/errcheck.sh'"
38 @if [ "$(TEST)" = "./..." ]; then \
39 echo "ERROR: Set TEST to a specific package. For example,"; \
40 echo " make test-compile TEST=./$(PKG_NAME)"; \
43 go test -c $(TEST) $(TESTARGS)