Skip to content

Commit 478d4fb

Browse files
committed
[docs] explain how to recompile only what bitcoind tests need
`make` rebuilds the entire project. This is quite slow if e.g. you're making changes to one file and only wish to run the bitcoind tests. This commit adds an instruction to run `make -C src/test` (as opposed to `make src/test` and `make src/test/test_bitcoin`).
1 parent ce66586 commit 478d4fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ and tests weren't explicitly disabled.
55

66
After configuring, they can be run with `make check`.
77

8-
To run the bitcoind tests manually, launch `src/test/test_bitcoin`.
8+
To run the bitcoind tests manually, launch `src/test/test_bitcoin`. To recompile
9+
after a test file was modified, run `make` and then run the test again. If you
10+
modify a non-test file, use `make -C src/test` to recompile only what's needed
11+
to run the bitcoind tests.
912

1013
To add more bitcoind tests, add `BOOST_AUTO_TEST_CASE` functions to the existing
1114
.cpp files in the `test/` directory or add new .cpp files that

0 commit comments

Comments
 (0)