Skip to content

Commit d247772

Browse files
niftyneirustyrussell
authored andcommitted
make: add lnprototests to check!!
We've got great protocolo levle tests written, let's make sure we put them to good use!
1 parent 51c398b commit d247772

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,14 @@ endif
374374

375375
check-units:
376376

377-
check: check-units installcheck pytest
377+
check: check-units installcheck check-protos pytest
378+
379+
check-protos: $(ALL_PROGRAMS)
380+
ifeq ($(PYTEST),)
381+
@echo "py.test is required to run the protocol tests, please install using 'pip3 install -r requirements.txt', and rerun 'configure'."; false
382+
else
383+
@(cd external/lnprototest && PYTHONPATH=$(PYTHONPATH) LIGHTNING_SRC=../.. $(PYTEST) --runner lnprototest.clightning.Runner $(PYTEST_OPTS))
384+
endif
378385

379386
pytest: $(ALL_PROGRAMS)
380387
ifeq ($(PYTEST),)

0 commit comments

Comments
 (0)