HomePhabricator

fuzz: Move deserialize tests to test/fuzz/deserialize.cpp

Description

fuzz: Move deserialize tests to test/fuzz/deserialize.cpp

Summary:
This will avoid confusion when adding other tests, as test_bitcoin_fuzzy
is not a meaningful name.

Partial backport of core PR15399 (commit fabcfa5):
https://github.com/bitcoin/bitcoin/pull/15399/commits/fabcfa5f0cfe2484fe5cf5ced7cbae34a35c47c9

Depends on D4627.

Test Plan:

./configure --disable-ccache --disable-wallet --disable-bench \
  --with-utils=no --with-daemon=no --with-libs=no --with-gui=no \
  --with-seeder=no --enable-fuzz --with-sanitizers=fuzzer,address \
  CC=clang CXX=clang++
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"
ninja bitcoin-fuzzers link-fuzz-test_runner.py
./test/fuzz/test_runner.py -l DEBUG <path_to_corpus>

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Feb 13 2019, 16:49
FabienCommitted on Mar 19 2020, 15:53
FabienPushed on Mar 19 2020, 15:53
Reviewer
Restricted Project
Differential Revision
D4628: fuzz: Move deserialize tests to test/fuzz/deserialize.cpp
Parents
rABC6aa446205750: qa: Add test/fuzz/test_runner.py
Branches
Unknown
Tags
Unknown