cover: remove Godeps from coverage, add cmd/ipfs to coverage
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Dec 16, 2016 at 19:22 UTC
cd78168d232ea5e9aae2ad9796a63ebd5c0f00bd
1 file changed
+1
-1
cmd/ipfs/Rules.mk
+1
-1
@@ -21,7 +21,7 @@ CLEAN += $(COVER_BIN_$(d))
21
22
$(COVER_BIN_$(d)): GOTAGS += testrunmain
23
$(COVER_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS
24
- $(eval TMP_PKGS := $(shell go list -f '{{range .Deps}}{{.}} {{end}}' $(go-flags-with-tags) ./cmd/ipfs | sed 's/ /\n/g' | grep ipfs/go-ipfs))
24
+ $(eval TMP_PKGS := $(shell go list -f '{{range .Deps}}{{.}} {{end}}' $(go-flags-with-tags) ./cmd/ipfs | sed 's/ /\n/g' | grep ipfs/go-ipfs | grep -v ipfs/go-ipfs/Godeps) $(call go-pkg-name,$<))
25
$(eval TMP_LIST := $(call join-with,$(comma),$(TMP_PKGS)))
26
@echo go test $@ -c -covermode atomic -coverpkg ... $(go-flags-with-tags) ./$(@D) # for info
27
@go test -o $@ -c -covermode atomic -coverpkg $(TMP_LIST) $(go-flags-with-tags) ./$(@D) 2>&1 | (grep -v 'warning: no packages being tested' || true)