mirror of
https://github.com/vishvananda/netlink
synced 2025-02-16 20:16:51 +00:00
16 lines
352 B
Makefile
16 lines
352 B
Makefile
DIRS := \
|
|
. \
|
|
nl
|
|
|
|
uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
|
|
testdirs = $(call uniq,$(foreach d,$(1),$(dir $(wildcard $(d)/*_test.go))))
|
|
|
|
all: test
|
|
|
|
.PHONY: $(call testdirs,$(DIRS))
|
|
$(call testdirs,$(DIRS)):
|
|
! gofmt -l $@*.go | grep ''
|
|
go test -v github.com/vishvananda/netlink/$@
|
|
|
|
test: $(call testdirs,$(DIRS))
|