Run tests of Bitcoin Core
from Contributing to Bitcoin Core
まずビルドする
Run tests of Bitcoin Core
jon atack - How to Compile Bitcoin Core and Run the Tests
11. Run the unit tests.
bitcoin/src/test/README.md at master · bitcoin/bitcoin
$ ctest --test-dir build -j"$(($(sysctl -n hw.physicalcpu)+1))"
How to run functional test
docs about functional tests
bitcoin/test/README.md at v29.0 · bitcoin/bitcoin
v28
bitcoin/test/README.md at v28.2 · bitcoin/bitcoin
Run a test
$ build/test/functional/interface_http.py
Run tests via test runner
$ build/test/functional/test_runner.py --jobs=60
$ build/test/functional/test_runner.py interface_http.py
$ build/test/functional/test_runner.py --loglevel=INFO mining_basic.py
Run specific test function in a test file
Run fuzz tests
bitcoin/doc/fuzzing.md at master · bitcoin/bitcoin
code:shell
cmake --preset=libfuzzer
cmake --build build_fuzz
FUZZ=process_message build_fuzz/bin/fuzz
これはコーパスを使わない方法
コーパスを使うには...
テストのログ
functional tests
bitcoin/test/README.md at v29.0 · bitcoin/bitcoin
テスト用ディレクトリが作られ、その中に色々保存される。基本は終わったら消される。
このディレクトリを指定するオプションと、消さずにとっておくオプションがある