Browse Source

pytest: Added pytest target to Makefile

ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
7cc5e2fc7a
  1. 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…
Cancel
Save