build: Add test-compile target (#10348)

This commit is contained in:
James Nugent 2016-11-24 16:44:25 +00:00 committed by Paul Stack
parent ffe26ce700
commit b9f74e388e
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,14 @@ testacc: fmtcheck generate
fi fi
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
test-compile: fmtcheck generate
@if [ "$(TEST)" = "./..." ]; then \
echo "ERROR: Set TEST to a specific package. For example,"; \
echo " make test-compile TEST=./builtin/providers/aws"; \
exit 1; \
fi
go test -c $(TEST) $(TESTARGS)
# testrace runs the race checker # testrace runs the race checker
testrace: fmtcheck generate testrace: fmtcheck generate
TF_ACC= go test -race $(TEST) $(TESTARGS) TF_ACC= go test -race $(TEST) $(TESTARGS)