Skip to content

Commit

Permalink
fuzz: chop html report
Browse files Browse the repository at this point in the history
  • Loading branch information
martelletto committed Jan 23, 2020
1 parent 9d14b7a commit dcfbedb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ fuzz/build/
fuzz/corpus.tgz-
fuzz/fuzz_*/
fuzz/obj/
fuzz/report.html
fuzz/report
fuzz/*.so
output/
10 changes: 6 additions & 4 deletions fuzz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ profdata: run
docker exec ${RUNNER} /bin/bash -c 'rm -f /$@ && ${PROFDATA} \
merge -sparse profraw/* -o $@'

report.html: profdata
docker exec ${RUNNER} ${COV} show -format=html -tab-size=8 \
/libfido2/build/src/libfido2.so -instr-profile=/$< > $@
report.tgz: profdata
docker exec ${RUNNER} /bin/bash -c 'rm -rf /report && mkdir /report && \
${COV} show -format=html -tab-size=8 -instr-profile=/$< \
-output-dir=/report /libfido2/build/src/libfido2.so'
docker exec -i ${RUNNER} tar Czcf / - report > $@

summary.txt: profdata
docker exec ${RUNNER} ${COV} report -use-color=false \
Expand All @@ -73,4 +75,4 @@ corpus.tgz: ${CORPORA}
tar zcf $@ ${TARGETS}

.PHONY: build run sync corpus ${TARGETS} ${CORPORA}
.PHONY: report.html summary.txt functions.txt
.PHONY: report.tgz summary.txt functions.txt
Binary file removed fuzz/report.html.gz
Binary file not shown.
Binary file added fuzz/report.tgz
Binary file not shown.

0 comments on commit dcfbedb

Please sign in to comment.