mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-10-03 15:29:44 +00:00
committed by
Matthew Johnson
parent
15938366ae
commit
80c33b4403
@@ -51,10 +51,14 @@ check: gopath
|
||||
# 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
|
||||
test ${PKG}
|
||||
ifeq (,${PKG})
|
||||
$(error PKG is not set, try make PKG=swupd checkcoverage)
|
||||
else
|
||||
go test -cover ${GO_PACKAGE_PREFIX}/${PKG} -coverprofile=coverage.out
|
||||
go tool cover -html=coverage.out
|
||||
endif
|
||||
|
||||
.PHONY: lint
|
||||
lint: gopath
|
||||
|
||||
Reference in New Issue
Block a user