doc: Add CMake config note to functional test README #34073

pull YG01110 wants to merge 1 commits into bitcoin:master from YG01110:doc-cmake-test-config changing 1 files +4 −0
  1. YG01110 commented at 9:20 am on December 14, 2025: none

    The current documentation does not specify how to run test_runner.py directly when using the new CMake build system. Attempting to run it without flags leads to a FileNotFoundError: config.ini.

    This PR adds a note to test/README.md explaining that users must point to build/test/config.ini using the --configfile flag when running tests from the source root.

  2. doc: Add CMake config note to functional test README 81e3257d4b
  3. DrahtBot added the label Docs on Dec 14, 2025
  4. DrahtBot commented at 9:20 am on December 14, 2025: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34073.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  5. in test/README.md:78 in 81e3257d4b
    72@@ -73,6 +73,10 @@ or can be run through the test_runner harness, eg:
    73 build/test/functional/test_runner.py feature_rbf.py
    74 ```
    75 
    76+> **Note for CMake users:** The configuration file (`config.ini`) is generated in the build directory. When running the test runner directly, you must specify the path:
    77+>
    78+>     ./test/functional/test_runner.py --configfile=build/test/config.ini
    


    maflcko commented at 8:03 am on December 15, 2025:
    What would the use-case be to support this? Seems easier to just run the tests in the build dir? Does your OS not support linking the files?

    hebasto commented at 12:29 pm on December 15, 2025:

    Does your OS not support linking the files?

    This shouldn’t matter, as CMake will copy files in this case.


    maflcko commented at 2:20 pm on December 15, 2025:

    This shouldn’t matter, as CMake will copy files in this case.

    Yes, that is my point: With symlinks, it is easy to modify a test and just run it again. With copies, cmake would have to be called every single time?

    So I wonder if such a system exists, that is also used by devs.


    YG01110 commented at 8:08 am on December 16, 2025:

    Thanks for the review!

    The main use-case here is improving the new contributor experience. The current README.md lists examples like build/test/functional/test_runner.py feature_rbf.py, which implies that running from the source root is the standard way to run tests. However, on a fresh CMake build (on macOS), this command fails with a FileNotFoundError because it can’t locate config.ini.

    I ran into this error myself while setting up. If the preferred workflow is to run tests from inside the build directory (to ensure symlinks work correctly and config is found), I would be happy to update the PR to clarify that in the docs instead of suggesting the --configfile flag.


    maflcko commented at 8:13 am on December 16, 2025:

    The current README.md lists examples like build/test/functional/test_runner.py feature_rbf.py, which implies that running from the source root is the standard way to run tests.

    How? ./build/... generally means the build dir, not the source dir.

    I ran into this error myself while setting up. If the preferred workflow is to run tests from inside the build directory (to ensure symlinks work correctly and config is found), I would be happy to update the PR to clarify that in the docs instead of suggesting the --configfile flag.

    Sure, but I fail to see which places in the docs are not up to date?


    maflcko commented at 8:54 am on December 19, 2025:

    @YG01110 are you still working on this?

    I’ll close this for now, but the mentioned doc update (if there is one) can still be submitted as a new pull request.

  6. maflcko closed this on Dec 19, 2025


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-01-02 15:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me