Skip to content

Commit af4cbbb

Browse files
committed
Add all targets from related PR
1 parent d276585 commit af4cbbb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile.Common

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ IMPI=impi
4141
BUILD_TYPE?=release
4242

4343
# COVER_PKGS is the list of packages to include in the test coverage
44-
MAIN_PKGS := $(shell go list ./... | tr "\n" ",")
45-
SIGNALFX_PKGS := $(shell cd internal/signalfx-agent && go list ./... | tr "\n" ",")
46-
COVER_PKGS := $(MAIN_PKGS)$(SIGNALFX_PKGS)
44+
EXCLUDE_MODS=-not -path "./examples/*"
45+
FIND_MOD_ARGS=-type f -name "go.mod"
46+
COVER_PKGS := $(shell find . $(EXCLUDE_MODS) $(FIND_MOD_ARGS) -execdir $(GOCMD) list ./... \; | tr "\n" "," )
47+
4748
COVER_DIR?=coverage
4849
COVER_DIR_ABS?=$(PWD)/$(COVER_DIR)
4950
TEST_COVER_DIR?=$(PWD)/tests/$(COVER_DIR)

0 commit comments

Comments
 (0)