From 9c3bef0da0fb373b51443b00eec9ca59abb8720b Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Wed, 27 Nov 2024 14:46:18 -0800 Subject: [PATCH] make: Added update-doc-examples in update-versions --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 74d0453dd..01208011d 100644 --- a/Makefile +++ b/Makefile @@ -577,10 +577,11 @@ check-amount-access: @! (git grep -nE "(->|\.)(milli)?satoshis" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -v '/* Raw:') @! git grep -nE "\\(struct amount_(m)?sat\\)" -- "*.c" "*.h" ":(exclude)common/amount.*" ":(exclude)*/test/*" | grep -vE "sizeof.struct amount_(m)?sat." -check-doc-examples: - $(PYTEST) $(PYTEST_OPTS) tests/autogenerate-rpc-examples.py - git diff --exit-code HEAD +update-doc-examples: + TEST_DEBUG=1 VALGRIND=0 GENERATE_EXAMPLES=1 $(PYTEST) $(PYTEST_OPTS) --timeout=1200 tests/autogenerate-rpc-examples.py && $(MAKE) $(MSGGEN_GEN_ALL) +check-doc-examples: update-doc-examples + git diff --exit-code HEAD # For those without working cppcheck check-source-no-cppcheck: check-makefile check-source-bolt check-whitespace check-spelling check-python check-includes check-shellcheck check-setup_locale check-tmpctx check-discouraged-functions check-amount-access check-doc-examples @@ -735,7 +736,7 @@ clean: obsclean PYLNS=client proto testing # See doc/contribute-to-core-lightning/contributor-workflow.md -update-versions: update-pyln-versions update-clnrest-version update-wss-proxy-version update-poetry-lock update-dot-version +update-versions: update-pyln-versions update-clnrest-version update-wss-proxy-version update-poetry-lock update-dot-version update-doc-examples update-pyln-versions: $(PYLNS:%=update-pyln-version-%)