Skip to content

Commit a9f2014

Browse files
committed
build: use DIR_FUZZ_SEED_CORPUS if specified for cov_fuzz target
This commit allows the user to specify the location of the fuzz_seed_corpus directory on their machine when running the cov_fuzz target. If DIR_FUZZ_SEED_CORPUS is specified, then this will be used. Otherwise, qa-assets/fuzz_seed_corpus is assumed to be in the bitcoin directory.
1 parent 147d50d commit a9f2014

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ LCOV_FILTER_PATTERN = \
193193
-p "src/secp256k1" \
194194
-p "depends"
195195

196+
DIR_FUZZ_SEED_CORPUS ?= qa-assets/fuzz_seed_corpus
197+
196198
$(COV_TOOL_WRAPPER):
197199
@echo 'exec $(COV_TOOL) "$$@"' > $(COV_TOOL_WRAPPER)
198200
@chmod +x $(COV_TOOL_WRAPPER)
@@ -205,7 +207,7 @@ baseline_filtered.info: baseline.info
205207
$(LCOV) -a $@ $(LCOV_OPTS) -o $@
206208

207209
fuzz.info: baseline_filtered.info
208-
@TIMEOUT=15 test/fuzz/test_runner.py qa-assets/fuzz_seed_corpus -l DEBUG
210+
@TIMEOUT=15 test/fuzz/test_runner.py $(DIR_FUZZ_SEED_CORPUS) -l DEBUG
209211
$(LCOV) -c $(LCOV_OPTS) -d $(abs_builddir)/src --t fuzz-tests -o $@
210212
$(LCOV) -z $(LCOV_OPTS) -d $(abs_builddir)/src
211213

0 commit comments

Comments
 (0)