1

What's the recommended way to start testing the Bitcoin Core source code.

Thanks in advance, Jim

2
  • 1
    What do you mean by 'testing'? The source is available at github.com/bitcoin/bitcoin/ , do what you will with it
    – chytrik
    Sep 8 '18 at 22:46
  • @chytrik I'm talking about testing for verification of bug fixes. I'm assuming that testing code will get me familiar enough with the code to start fixing bugs myself.
    – J. Dev
    Sep 9 '18 at 0:52
1

What's the recommended way to start testing the Bitcoin Core source code?

testing for verification of bug fixes

See https://github.com/bitcoin/bitcoin/blob/master/src/test/README.md which says:

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 implement new BOOST_AUTO_TEST_SUITE sections.

To run the bitcoin-qt tests manually, launch src/qt/test/test_bitcoin-qt

To add more bitcoin-qt tests, add them to the src/qt/test/ directory and the src/qt/test/test_main.cpp file.

There is more.

Not the answer you're looking for? Browse other questions tagged or ask your own question.