Update Makefile test handling.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -10,4 +10,4 @@ cover.out
|
|||||||
cover.*.out
|
cover.*.out
|
||||||
.coverage
|
.coverage
|
||||||
*.prom
|
*.prom
|
||||||
|
.metrics.*.*.prom
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -43,10 +43,10 @@ fmt: tools
|
|||||||
gofmt -s -w $(GO_SRC)
|
gofmt -s -w $(GO_SRC)
|
||||||
|
|
||||||
test: tools
|
test: tools
|
||||||
@rm -rf $(COVERDIR)
|
|
||||||
@mkdir -p $(COVERDIR)
|
@mkdir -p $(COVERDIR)
|
||||||
|
@rm -f $(COVERDIR)/*
|
||||||
for pkg in $(GO_PKGS) ; do \
|
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
|
done
|
||||||
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.out
|
gocovmerge $(shell find $(COVERDIR) -name '*.out') > cover.out
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user