@@ -77,7 +77,7 @@ OSX_PACKAGING = $(OSX_DEPLOY_SCRIPT) $(OSX_FANCY_PLIST) $(OSX_INSTALLER_ICONS) \
77
77
COVERAGE_INFO = baseline.info \
78
78
test_bitcoin_filtered.info total_coverage.info \
79
79
baseline_filtered.info functional_test.info functional_test_filtered.info \
80
- test_bitcoin_coverage.info test_bitcoin.info
80
+ test_bitcoin_coverage.info test_bitcoin.info fuzz.info fuzz_coverage.info
81
81
82
82
dist-hook :
83
83
-$(GIT ) archive --format=tar HEAD -- src/clientversion.cpp | $(AMTAR ) -C $(top_distdir ) -xf -
@@ -208,6 +208,15 @@ baseline_filtered.info: baseline.info
208
208
$(abs_builddir ) /contrib/filter-lcov.py $(LCOV_FILTER_PATTERN ) $< $@
209
209
$(LCOV ) -a $@ $(LCOV_OPTS ) -o $@
210
210
211
+ fuzz.info : baseline_filtered.info
212
+ @TIMEOUT=15 test/fuzz/test_runner.py qa-assets/fuzz_seed_corpus -l DEBUG
213
+ $(LCOV ) -c $(LCOV_OPTS ) -d $(abs_builddir ) /src --t fuzz-tests -o $@
214
+ $(LCOV ) -z $(LCOV_OPTS ) -d $(abs_builddir ) /src
215
+
216
+ fuzz_filtered.info : fuzz.info
217
+ $(abs_builddir ) /contrib/filter-lcov.py $(LCOV_FILTER_PATTERN ) $< $@
218
+ $(LCOV ) -a $@ $(LCOV_OPTS ) -o $@
219
+
211
220
test_bitcoin.info : baseline_filtered.info
212
221
$(MAKE ) -C src/ check
213
222
$(LCOV ) -c $(LCOV_OPTS ) -d $(abs_builddir ) /src -t test_bitcoin -o $@
@@ -226,12 +235,19 @@ functional_test_filtered.info: functional_test.info
226
235
$(abs_builddir ) /contrib/filter-lcov.py $(LCOV_FILTER_PATTERN ) $< $@
227
236
$(LCOV ) -a $@ $(LCOV_OPTS ) -o $@
228
237
238
+ fuzz_coverage.info : fuzz_filtered.info
239
+ $(LCOV ) -a $(LCOV_OPTS ) baseline_filtered.info -a fuzz_filtered.info -o $@ | $(GREP ) " \%" | $(AWK ) ' { print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
240
+
229
241
test_bitcoin_coverage.info : baseline_filtered.info test_bitcoin_filtered.info
230
242
$(LCOV ) -a $(LCOV_OPTS ) baseline_filtered.info -a test_bitcoin_filtered.info -o $@
231
243
232
244
total_coverage.info : test_bitcoin_filtered.info functional_test_filtered.info
233
245
$(LCOV ) -a $(LCOV_OPTS ) baseline_filtered.info -a test_bitcoin_filtered.info -a functional_test_filtered.info -o $@ | $(GREP ) " \%" | $(AWK ) ' { print substr($$3,2,50) "/" $$5 }' > coverage_percent.txt
234
246
247
+ fuzz.coverage/.dirstamp : fuzz_coverage.info
248
+ $(GENHTML ) -s $(LCOV_OPTS ) $< -o $(@D )
249
+ @touch $@
250
+
235
251
test_bitcoin.coverage/.dirstamp : test_bitcoin_coverage.info
236
252
$(GENHTML ) -s $(LCOV_OPTS ) $< -o $(@D )
237
253
@touch $@
@@ -240,6 +256,8 @@ total.coverage/.dirstamp: total_coverage.info
240
256
$(GENHTML ) -s $(LCOV_OPTS ) $< -o $(@D )
241
257
@touch $@
242
258
259
+ cov_fuzz : fuzz.coverage/.dirstamp
260
+
243
261
cov : test_bitcoin.coverage/.dirstamp total.coverage/.dirstamp
244
262
245
263
endif
@@ -328,6 +346,6 @@ clean-docs:
328
346
rm -rf doc/doxygen
329
347
330
348
clean-local : clean-docs
331
- rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ test/tmp/ cache/ $(OSX_APP )
349
+ rm -rf coverage_percent.txt test_bitcoin.coverage/ total.coverage/ fuzz.coverage/ test/tmp/ cache/ $(OSX_APP )
332
350
rm -rf test/functional/__pycache__ test/functional/test_framework/__pycache__ test/cache share/rpcauth/__pycache__
333
351
rm -rf osx_volname dist/ dpi36.background.tiff dpi72.background.tiff
0 commit comments