mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-05 12:39:54 +02:00
make: add nocache and verbose arguments
To make it easy to add "-test.v" and "-test.count=1" to the unit tests, we add two new make flags.
This commit is contained in:
parent
aa811c784a
commit
b1b32d9026
@ -93,6 +93,14 @@ else
|
|||||||
TEST_FLAGS += -test.timeout=180m
|
TEST_FLAGS += -test.timeout=180m
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(verbose),)
|
||||||
|
TEST_FLAGS += -test.v
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(nocache),)
|
||||||
|
TEST_FLAGS += -test.count=1
|
||||||
|
endif
|
||||||
|
|
||||||
GOLIST := go list -tags="$(DEV_TAGS)" -deps $(PKG)/... | grep '$(PKG)'| grep -v '/vendor/'
|
GOLIST := go list -tags="$(DEV_TAGS)" -deps $(PKG)/... | grep '$(PKG)'| grep -v '/vendor/'
|
||||||
GOLISTCOVER := $(shell go list -tags="$(DEV_TAGS)" -deps -f '{{.ImportPath}}' ./... | grep '$(PKG)' | sed -e 's/^$(ESCPKG)/./')
|
GOLISTCOVER := $(shell go list -tags="$(DEV_TAGS)" -deps -f '{{.ImportPath}}' ./... | grep '$(PKG)' | sed -e 's/^$(ESCPKG)/./')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user