File tree Expand file tree Collapse file tree 2 files changed +167
-2
lines changed Expand file tree Collapse file tree 2 files changed +167
-2
lines changed Original file line number Diff line number Diff line change @@ -590,14 +590,18 @@ repeat-doc-examples:
590590 echo " ----------------------------------" >> tests/autogenerate-examples-repeat.log; \
591591 echo " Iteration $$ i" >> tests/autogenerate-examples-repeat.log; \
592592 echo " ----------------------------------" >> tests/autogenerate-examples-repeat.log; \
593- VALGRIND=0 TIMEOUT=40 TEST_DEBUG=1 GENERATE_EXAMPLES=1 pytest -vvv tests/autogenerate-rpc-examples.py; \
593+ VALGRIND=0 TIMEOUT=40 TEST_DEBUG=1 GENERATE_EXAMPLES=1 CLN_NEXT_VERSION= $( CLN_NEXT_VERSION ) pytest -vvv tests/autogenerate-rpc-examples.py; \
594594 git diff >> tests/autogenerate-examples-repeat.log; \
595595 git reset --hard; \
596596 echo " ----------------------------------" >> tests/autogenerate-examples-repeat.log; \
597597 done
598598
599599update-doc-examples :
600- TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 $(PYTEST ) $(PYTEST_OPTS ) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE ) $(MSGGEN_GEN_ALL )
600+ TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 CLN_NEXT_VERSION=$(CLN_NEXT_VERSION ) $(PYTEST ) $(PYTEST_OPTS ) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE ) $(MSGGEN_GEN_ALL )
601+
602+ # If you changed tests/autogenerate-rpc-examples.py to require new blocks, you have to run this:
603+ update-doc-examples-newchain :
604+ TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 CLN_NEXT_VERSION=$(CLN_NEXT_VERSION ) REGENERATE_BLOCKCHAIN=1 $(PYTEST ) $(PYTEST_OPTS ) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE ) $(MSGGEN_GEN_ALL )
601605
602606check-doc-examples : update-doc-examples
603607 git diff --exit-code HEAD
You can’t perform that action at this time.
0 commit comments