From ef7ddbffe05afb9d882c8e52bed328c382659a11 Mon Sep 17 00:00:00 2001 From: stack72 Date: Fri, 30 Jun 2017 11:19:13 +0300 Subject: Adding back the GNUmakefile test-compile step --- GNUmakefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index a28d744..c9eacb4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -35,5 +35,13 @@ errcheck: vendor-status: @govendor status -.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status +test-compile: + @if [ "$(TEST)" = "./..." ]; then \ + echo "ERROR: Set TEST to a specific package. For example,"; \ + echo " make test-compile TEST=./aws"; \ + exit 1; \ + fi + go test -c $(TEST) $(TESTARGS) + +.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile -- cgit v1.2.3