aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2017-09-06 09:53:27 +0200
committerSjors Provoost <sjors@sprovoost.nl>2017-09-06 10:07:31 +0200
commit478d4fb79c878c560ed9179b24b48e884a3b0c13 (patch)
treea29665e966702a4ec8549f0d47847266d4125b85
parentce665863b137ac4a7470cf006a92aa7694faca71 (diff)
downloadbitcoin-478d4fb79c878c560ed9179b24b48e884a3b0c13.tar.xz
[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`).
-rw-r--r--src/test/README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/README.md b/src/test/README.md
index eeb04c6ffa..dbaa9c27f3 100644
--- a/src/test/README.md
+++ b/src/test/README.md
@@ -5,7 +5,10 @@ and tests weren't explicitly disabled.
After configuring, they can be run with `make check`.
-To run the bitcoind tests manually, launch `src/test/test_bitcoin`.
+To run the bitcoind tests manually, launch `src/test/test_bitcoin`. To recompile
+after a test file was modified, run `make` and then run the test again. If you
+modify a non-test file, use `make -C src/test` to recompile only what's needed
+to run the bitcoind tests.
To add more bitcoind tests, add `BOOST_AUTO_TEST_CASE` functions to the existing
.cpp files in the `test/` directory or add new .cpp files that