HomePhabricator

[CMAKE] Link the fuzzer test_runner.py when building a fuzz target

Description

[CMAKE] Link the fuzzer test_runner.py when building a fuzz target

Summary:
The script is linked to the build directory when building all, but not
when building bitcoin-fuzzers or any other fuzz target. This diffs
builds a list of the fuzz targets and make them depend on the link so
that it is created as needed.

Test Plan:

cmake -GNinja .. \
  -DCMAKE_C_COMPILER=clang \
  -DCMAKE_CXX_COMPILER=clang++ \
  -DENABLE_SANITIZERS=fuzzer
ninja bitcoin-fuzzers # Or any fuzz-* target

Check the test/fuzz/test_runner.py script is linked to the build tree.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
FabienAuthored on Oct 27 2020, 13:49
FabienPushed on Oct 27 2020, 14:30
Reviewer
Restricted Project
Differential Revision
D8137: [CMAKE] Link the fuzzer test_runner.py when building a fuzz target
Parents
rABC119798507329: rpc: Auto-format RPCResult
Branches
Unknown
Tags
Unknown