make+itest: allow the same test to be run in parallel

This commit is contained in:
Oliver Gugger committed 2020-11-10 13:57:31 +01:00
1 parent 72cacb9c5e
commit 47e8882480
3 files changed
+23 -3

No files matched your search

+7
View File
@@ -4,6 +4,7 @@ LOG_TAGS =
TEST_FLAGS =
COVER_PKG = $$(go list -deps ./... | grep '$(PKG)' | grep -v lnrpc)
NUM_ITEST_TRANCHES = 6
ITEST_PARALLELISM = $(NUM_ITEST_TRANCHES)
# If rpc option is set also add all extra RPC tags to DEV_TAGS
ifneq ($(with-rpc),)
@@ -13,6 +14,12 @@ endif
# Scale the number of parallel running itest tranches.
ifneq ($(tranches),)
NUM_ITEST_TRANCHES = $(tranches)
ITEST_PARALLELISM = $(NUM_ITEST_TRANCHES)
endif
# Give the ability to run the same tranche multiple times at the same time.
ifneq ($(parallel),)
ITEST_PARALLELISM = $(parallel)
endif
# If specific package is being unit tested, construct the full name of the