Skip to content

Commit 343e272

Browse files
kwvgPastaPastaPasta
authored andcommitted
merge bitcoin#19916: allow user to specify DIR_FUZZ_SEED_CORPUS for cov_fuzz
1 parent 0b3b104 commit 343e272

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ total.coverage/
123123
fuzz.coverage/
124124
coverage_percent.txt
125125
/cov_tool_wrapper.sh
126+
qa-assets/
126127

127128
#build tests
128129
linux-coverage-build

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ LCOV_FILTER_PATTERN = \
171171
-p "src/secp256k1" \
172172
-p "depends"
173173

174+
DIR_FUZZ_SEED_CORPUS ?= qa-assets/fuzz_seed_corpus
175+
174176
$(COV_TOOL_WRAPPER):
175177
@echo 'exec $(COV_TOOL) "$$@"' > $(COV_TOOL_WRAPPER)
176178
@chmod +x $(COV_TOOL_WRAPPER)
@@ -183,7 +185,7 @@ baseline_filtered.info: baseline.info
183185
$(LCOV) -a $@ $(LCOV_OPTS) -o $@
184186

185187
fuzz.info: baseline_filtered.info
186-
@TIMEOUT=15 test/fuzz/test_runner.py qa-assets/fuzz_seed_corpus -l DEBUG
188+
@TIMEOUT=15 test/fuzz/test_runner.py $(DIR_FUZZ_SEED_CORPUS) -l DEBUG
187189
$(LCOV) -c $(LCOV_OPTS) -d $(abs_builddir)/src --t fuzz-tests -o $@
188190
$(LCOV) -z $(LCOV_OPTS) -d $(abs_builddir)/src
189191

0 commit comments

Comments
 (0)