From 0c84bb904eb79a835f71d637a7aed53cc8db532d Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Fri, 30 Sep 2016 10:51:45 -0700 Subject: [PATCH] enable test coverage --- build/golang.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/golang.mk b/build/golang.mk index c9b86bc32..1690edc26 100644 --- a/build/golang.mk +++ b/build/golang.mk @@ -51,7 +51,7 @@ export GOARCH=$(GO_ARCH) $(GO_WORK_DIR): @mkdir -p $(GO_WORK_DIR) -$(GO_REPO_PATH): | $(GO_WORK_DIR) +$(GO_REPO_PATH): | $(GO_WORK_DIR) @mkdir -p $(GO_ORG_PATH) @ln -s ../../../../.. $(GO_REPO_PATH) @@ -99,7 +99,7 @@ define golang-test .PHONY: go.test.$(1) go.test.$(1): $$($(1).gosrcs) $(GO_WORK_DIR)/vendor | $(GO_WORK_DIR) $(GO_REPO_PATH) @echo "====== Running go test on target $(1)" - @GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) go test $(2) $$($(1).gopkgs) + @GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) go test -cover $(2) $$($(1).gopkgs) endef # generate targets to vet a go project