bitcoin/doc/unit-tests.md

19 lines
695 B
Markdown
Raw Normal View History

Compiling/running unit tests
2012-06-14 17:44:04 -07:00
------------------------------------
2015-11-23 12:11:53 -08:00
Unit tests will be automatically compiled if dependencies were met in `./configure`
and tests weren't explicitly disabled.
2012-06-14 17:44:04 -07:00
2015-11-23 12:11:53 -08:00
After configuring, they can be run with `make check`.
2013-05-19 21:30:00 -07:00
2015-11-23 12:11:53 -08:00
To run the bitcoind tests manually, launch `src/test/test_bitcoin`.
2012-06-14 17:44:04 -07:00
To add more bitcoind tests, add `BOOST_AUTO_TEST_CASE` functions to the existing
2015-11-23 12:11:53 -08:00
.cpp files in the `test/` directory or add new .cpp files that
implement new BOOST_AUTO_TEST_SUITE sections.
2012-06-14 17:44:04 -07:00
2015-11-23 12:11:53 -08:00
To run the bitcoin-qt tests manually, launch `src/qt/test/test_bitcoin-qt`
2013-05-19 21:30:00 -07:00
To add more bitcoin-qt tests, add them to the `src/qt/test/` directory and
the `src/qt/test/test_main.cpp` file.