HomePhabricator

qa: Add test/fuzz/test_runner.py

Description

qa: Add test/fuzz/test_runner.py

Summary:

Can be run with ./test/fuzz/test_runner.py after building as described
in doc/fuzzing.md

Backport of core PR15295:
https://github.com/bitcoin/bitcoin/pull/15295/files

Depends on D4615.

Test Plan:

export CC=clang CXX=clang++
../configure --enable-fuzz --with-sanitizers=fuzzer,address \
  --disable-wallet \
  --disable-bench \
  --with-utils=no \
  --with-daemon=no \
  --with-libs=no \
  --with-gui=no \
  --with-seeder=no
make
mkdir -p test/fuzz
cp ../test/fuzz/test_runner.py test/fuzz/
./test/fuzz/test_runner.py -l DEBUG <path_to_corpus>
cmake -GNinja .. -DENABLE_SANITIZERS="address;fuzzer" \
  -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
ninja bitcoin-fuzzers link-fuzz-test_runner.py
./test/fuzz/test_runner.py -l DEBUG <path_to_corpus>

Check the corpus is run exactly once for all the tests.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D4627

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jan 16 2019, 16:49
FabienCommitted on Mar 19 2020, 15:51
FabienPushed on Mar 19 2020, 15:51
Reviewer
Restricted Project
Differential Revision
D4627: qa: Add test/fuzz/test_runner.py
Parents
rABCf568f26f4105: depends: switch to secure download of all dependencies
Branches
Unknown
Tags
Unknown