Update Makefile test handling.

This commit is contained in:
Will Rouesnel
2017-06-06 23:45:48 +10:00
parent 34ffcb449d
commit 8a1a12fd05
2 changed files with 3 additions and 3 deletions

View File

@@ -43,10 +43,10 @@ fmt: tools
gofmt -s -w $(GO_SRC)
test: tools
@rm -rf $(COVERDIR)
@mkdir -p $(COVERDIR)
@rm -f $(COVERDIR)/*
for pkg in $(GO_PKGS) ; do \
go test -v -covermode count -coverprofile=$(COVERDIR)/$(echo $$pkg | tr '/' '-').out $(pkg) ; \
go test -v -covermode count -coverprofile=$(COVERDIR)/$$(echo $$pkg | tr '/' '-').out $$pkg ; \
done
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.out