pytest: Added pytest target to Makefile

This commit is contained in:
Christian Decker 2017-01-14 20:33:07 +01:00 committed by Rusty Russell
parent cf1c03f4d9
commit 7cc5e2fc7a

View File

@ -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