Page MenuHomePhabricator

[Chronik] Move `BUILD_BITCOIN_CHRONIK_PLUGINS` so we can access it from functional tests
ClosedPublic

Authored by tobias_ruck on Feb 6 2024, 01:52.

Details

Summary

By moving the compilation flag to /CMakeLists.txt, we can use it in config.ini.cmake.in and use ENABLE_CHRONIK_PLUGINS in functional tests.

chronik_plugins_setup.py tests just that.

Test Plan
cmake .. -GNinja -DBUILD_BITCOIN_CHRONIK=1 -DBUILD_BITCOIN_CHRONIK_PLUGINS=1
ninja && ./test/functional/test_runner.py chronik_plugins_setup

The test is correctly skipped without -DBUILD_BITCOIN_CHRONIK_PLUGINS=1

Event Timeline

PiRK requested changes to this revision.Feb 6 2024, 08:11
PiRK edited the test plan for this revision. (Show Details)
PiRK added a subscriber: PiRK.

Lint nits.

test/functional/test_framework/test_framework.py
540–541

Can you run pip install black --upgrade and run arc lint again? See D15374

If you rebase on the current master you should see an error when running arc lint with black < 24

This revision now requires changes to proceed.Feb 6 2024, 08:12
tobias_ruck edited the test plan for this revision. (Show Details)

fix wrong lint

This revision is now accepted and ready to land.Feb 6 2024, 10:29