From 7cc5e2fc7abbb345472831b81dd455f569fddf05 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 14 Jan 2017 20:33:07 +0100 Subject: [PATCH] pytest: Added pytest target to Makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d9977290b..23d1c2d90 100644 --- a/Makefile +++ b/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