1 TEST?=$$(go list ./... |grep -v 'vendor')
2 GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
10 go test -i $(TEST) || exit 1
12 xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4
15 TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
19 @go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
21 echo "Vet found suspicious constructs. Please check the reported constructs"; \
22 echo "and fix them if necessary before submitting the code for review."; \
27 gofmt -w $(GOFMT_FILES)
30 @sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
33 @sh -c "'$(CURDIR)/scripts/errcheck.sh'"
39 @if [ "$(TEST)" = "./..." ]; then \
40 echo "ERROR: Set TEST to a specific package. For example,"; \
41 echo " make test-compile TEST=./aws"; \
44 go test -c $(TEST) $(TESTARGS)
46 .PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile