HomePhabricator

fuzz: Link BasicTestingSetup (shared with unit tests)

Description

fuzz: Link BasicTestingSetup (shared with unit tests)

Summary:
Completes backport of core PR15504:
https://github.com/bitcoin/bitcoin/pull/15504/commits/faa9b88199c382c04e3aaa2b63479f9066ce8f9c

Depends on D5481 and D4629.

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>

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Feb 28 2019, 20:04
FabienCommitted on Mar 19 2020, 15:56
FabienPushed on Mar 19 2020, 15:56
Reviewer
Restricted Project
Differential Revision
D5484: fuzz: Link BasicTestingSetup (shared with unit tests)
Parents
rABCdffb41fef7a6: fuzz: Script validation flags
Branches
Unknown
Tags
Unknown