From d2477721b98bfc04c44372014ac9f5f06b0a5d00 Mon Sep 17 00:00:00 2001 From: niftynei Date: Thu, 18 Mar 2021 15:56:49 -0500 Subject: [PATCH] make: add lnprototests to check!! We've got great protocolo levle tests written, let's make sure we put them to good use! --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d5dae55fa..4f1b95805 100644 --- a/Makefile +++ b/Makefile @@ -374,7 +374,14 @@ endif check-units: -check: check-units installcheck pytest +check: check-units installcheck check-protos pytest + +check-protos: $(ALL_PROGRAMS) +ifeq ($(PYTEST),) + @echo "py.test is required to run the protocol tests, please install using 'pip3 install -r requirements.txt', and rerun 'configure'."; false +else + @(cd external/lnprototest && PYTHONPATH=$(PYTHONPATH) LIGHTNING_SRC=../.. $(PYTEST) --runner lnprototest.clightning.Runner $(PYTEST_OPTS)) +endif pytest: $(ALL_PROGRAMS) ifeq ($(PYTEST),)