Makefile: remove required argument to checkcoverage

We are on Go 1.11 now and -coverprofile supports multiple packages.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
Matthew Johnson
2018-11-27 10:12:18 -08:00
committed by tmarcu
parent 37ddafa696
commit a33c8a2867
+2 -10
View File
@@ -31,18 +31,10 @@ install:
check:
go test -cover ${GO_PACKAGE_PREFIX}/...
# TODO: when Go 1.10 comes out we will have support for passing multiple packages
# to coverprofile, so there will be no need to pass an individual package.
# At that time we can merge this target into check and run it against all
# packages every time.
.PHONY: checkcoverage
checkcoverage: gopath
ifeq (,${PKG})
$(error PKG is not set, try make PKG=swupd checkcoverage)
else
go test -cover ${GO_PACKAGE_PREFIX}/${PKG} -coverprofile=coverage.out
checkcoverage:
go test -cover ${GO_PACKAGE_PREFIX}/... -coverprofile=coverage.out
go tool cover -html=coverage.out
endif
.PHONY: lint
lint: