mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
pytest: Added pytest target to Makefile
This commit is contained in:
parent
cf1c03f4d9
commit
7cc5e2fc7a
7
Makefile
7
Makefile
@ -229,6 +229,9 @@ test-protocol: test/test_protocol
|
||||
|
||||
check: test-protocol
|
||||
|
||||
pytest: daemon/lightningd
|
||||
PYTHONPATH=contrib/pylightning python3 tests/test_lightningd.py
|
||||
|
||||
# Keep includes in alpha order.
|
||||
check-src-include-order/%: %
|
||||
@if [ "$$(grep '^#include' < $<)" != "$$(grep '^#include' < $< | LC_ALL=C sort)" ]; then echo "$<:1: includes out of order"; grep '^#include' < $<; echo VERSUS; grep '^#include' < $< | LC_ALL=C sort; exit 1; fi
|
||||
@ -271,9 +274,9 @@ check-source: check-makefile check-source-bolt check-whitespace \
|
||||
$(CORE_TX_HEADERS:%=check-hdr-include-order/%) \
|
||||
$(BITCOIN_HEADERS:%=check-hdr-include-order/%)
|
||||
|
||||
full-check: check $(TEST_PROGRAMS) check-source
|
||||
full-check: check pytest $(TEST_PROGRAMS) check-source
|
||||
|
||||
coverage/coverage.info: check $(TEST_PROGRAMS)
|
||||
coverage/coverage.info: check $(TEST_PROGRAMS) pytest
|
||||
mkdir coverage || true
|
||||
lcov --capture --directory . --output-file coverage/coverage.info
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user