Page MenuHomePhabricator

fuzz: Link BasicTestingSetup (shared with unit tests)
ClosedPublic

Authored by Fabien on Mon, Mar 16, 19:48.

Details

Reviewers
jasonbcox
Group Reviewers
Restricted Project
Commits
rABC937ea822e740: fuzz: Link BasicTestingSetup (shared with unit tests)
Summary
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>

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Fabien created this revision.Mon, Mar 16, 19:48
Herald added a reviewer: Restricted Project. · View Herald TranscriptMon, Mar 16, 19:48
teamcity edited the summary of this revision. (Show Details)Mon, Mar 16, 19:48

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

Fabien updated this revision to Diff 16969.Tue, Mar 17, 10:07

Add a comment to remember to make the test_bitcoin.cpp a library (avoiding relative path).

jasonbcox accepted this revision.Tue, Mar 17, 20:18
This revision is now accepted and ready to land.Tue, Mar 17, 20:18