Skip to content

build: have "make test" depend on "make all"

See Upstream docs for specifics.

Unfortunately, this seems to have no effect when directly executing ctest :(

This brings the test -> hack -> test cycle more inline with how it worked with autotools.

With CMAKE_SKIP_TEST_ALL_DEPENDENCY set to FALSE, make test will trigger a rebuild, ensuring that test binaries are current before running them.

To test:

cmake -S . -B build
make -C build -j24
touch src/primitives/transaction.cpp
make -C build test ARGS=-j24

Without this commit, the above will not rebuild before running tests.

Merge request reports

Loading