mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin#19916: allow user to specify DIR_FUZZ_SEED_CORPUS for cov_fuzz
This commit is contained in:
parent
0b3b104927
commit
343e2724d2
1
.gitignore
vendored
1
.gitignore
vendored
@ -123,6 +123,7 @@ total.coverage/
|
|||||||
fuzz.coverage/
|
fuzz.coverage/
|
||||||
coverage_percent.txt
|
coverage_percent.txt
|
||||||
/cov_tool_wrapper.sh
|
/cov_tool_wrapper.sh
|
||||||
|
qa-assets/
|
||||||
|
|
||||||
#build tests
|
#build tests
|
||||||
linux-coverage-build
|
linux-coverage-build
|
||||||
|
@ -171,6 +171,8 @@ LCOV_FILTER_PATTERN = \
|
|||||||
-p "src/secp256k1" \
|
-p "src/secp256k1" \
|
||||||
-p "depends"
|
-p "depends"
|
||||||
|
|
||||||
|
DIR_FUZZ_SEED_CORPUS ?= qa-assets/fuzz_seed_corpus
|
||||||
|
|
||||||
$(COV_TOOL_WRAPPER):
|
$(COV_TOOL_WRAPPER):
|
||||||
@echo 'exec $(COV_TOOL) "$$@"' > $(COV_TOOL_WRAPPER)
|
@echo 'exec $(COV_TOOL) "$$@"' > $(COV_TOOL_WRAPPER)
|
||||||
@chmod +x $(COV_TOOL_WRAPPER)
|
@chmod +x $(COV_TOOL_WRAPPER)
|
||||||
@ -183,7 +185,7 @@ baseline_filtered.info: baseline.info
|
|||||||
$(LCOV) -a $@ $(LCOV_OPTS) -o $@
|
$(LCOV) -a $@ $(LCOV_OPTS) -o $@
|
||||||
|
|
||||||
fuzz.info: baseline_filtered.info
|
fuzz.info: baseline_filtered.info
|
||||||
@TIMEOUT=15 test/fuzz/test_runner.py qa-assets/fuzz_seed_corpus -l DEBUG
|
@TIMEOUT=15 test/fuzz/test_runner.py $(DIR_FUZZ_SEED_CORPUS) -l DEBUG
|
||||||
$(LCOV) -c $(LCOV_OPTS) -d $(abs_builddir)/src --t fuzz-tests -o $@
|
$(LCOV) -c $(LCOV_OPTS) -d $(abs_builddir)/src --t fuzz-tests -o $@
|
||||||
$(LCOV) -z $(LCOV_OPTS) -d $(abs_builddir)/src
|
$(LCOV) -z $(LCOV_OPTS) -d $(abs_builddir)/src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user