-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #928 from ellemouton/makeUnitTestHelpers
makefile: add unit test helpers
- Loading branch information
Showing
6 changed files
with
99 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Release Notes | ||
|
||
- [Lightning Terminal](#lightning-terminal) | ||
- [Bug Fixes](#bug-fixes) | ||
- [Functional Changes/Additions](#functional-changesadditions) | ||
- [Technical and Architectural Updates](#technical-and-architectural-updates) | ||
- [Integrated Binary Updates](#integrated-binary-updates) | ||
- [LND](#lnd) | ||
- [Loop](#loop) | ||
- [Pool](#pool) | ||
- [Faraday](#faraday) | ||
- [Taproot Assets](#taproot-assets) | ||
- [Contributors](#contributors-alphabetical-order) | ||
|
||
## Lightning Terminal | ||
|
||
### Bug Fixes | ||
|
||
### Functional Changes/Additions | ||
|
||
### Technical and Architectural Updates | ||
|
||
* [Add some Makefile | ||
helpers](https://github.com/lightninglabs/lightning-terminal/pull/928) that | ||
allow for more control over running unit tests. | ||
|
||
## Integrated Binary Updates | ||
|
||
### LND | ||
|
||
### Loop | ||
|
||
### Pool | ||
|
||
### Faraday | ||
|
||
### Taproot Assets | ||
|
||
# Contributors (Alphabetical Order) | ||
|
||
* Elle Mouton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMPILE_TAGS = autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc neutrinorpc peersrpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,46 @@ | ||
ITEST_FLAGS = | ||
include make/compile_flags.mk | ||
|
||
ITEST_FLAGS = | ||
TEST_FLAGS = | ||
DEV_TAGS = dev | ||
|
||
# Define the integration test.run filter if the icase argument was provided. | ||
ifneq ($(icase),) | ||
ITEST_FLAGS += -test.run="TestLightningTerminal/$(icase)" | ||
endif | ||
|
||
# If a specific unit test case is being targeted, construct test.run filter. | ||
ifneq ($(case),) | ||
TEST_FLAGS += -test.run=$(case) | ||
UNIT_TARGETED = yes | ||
endif | ||
|
||
# If specific package is being unit tested, construct the full name of the | ||
# subpackage. | ||
ifneq ($(pkg),) | ||
UNITPKG := $(PKG)/$(pkg) | ||
COVER_PKG := $(PKG)/$(pkg) | ||
UNIT_TARGETED = yes | ||
GOLIST = echo '$(PKG)/$(pkg)' | ||
endif | ||
|
||
# Add any additional tags that are passed in to make. | ||
ifneq ($(tags),) | ||
DEV_TAGS += ${tags} | ||
endif | ||
|
||
# UNIT_TARGETED is undefined iff a specific package and/or unit test case is | ||
# not being targeted. | ||
UNIT_TARGETED ?= no | ||
|
||
# If a specific package/test case was requested, run the unit test for the | ||
# targeted case. Otherwise, default to running all tests. | ||
ifeq ($(UNIT_TARGETED), yes) | ||
UNIT := $(GOTEST) -tags="$(DEV_TAGS) $(COMPILE_TAGS)" $(TEST_FLAGS) $(UNITPKG) | ||
endif | ||
|
||
ifeq ($(UNIT_TARGETED), no) | ||
UNIT := $(GOLIST) | $(XARGS) env $(GOTEST) -tags="$(DEV_TAGS) $(COMPILE_TAGS)" $(TEST_FLAGS) | ||
endif | ||
|
||
UNIT_RACE := $(UNIT) -race |