mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-04 12:41:37 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user