diff --git a/.gitignore b/.gitignore index 13638fcd..0915625a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,6 @@ fuzz/build/ fuzz/corpus.tgz- fuzz/fuzz_*/ fuzz/obj/ -fuzz/report.html +fuzz/report fuzz/*.so output/ diff --git a/fuzz/Makefile b/fuzz/Makefile index 6c85a0bd..c8fe0b88 100644 --- a/fuzz/Makefile +++ b/fuzz/Makefile @@ -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 \ @@ -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 diff --git a/fuzz/report.html.gz b/fuzz/report.html.gz deleted file mode 100644 index 13141477..00000000 Binary files a/fuzz/report.html.gz and /dev/null differ diff --git a/fuzz/report.tgz b/fuzz/report.tgz new file mode 100644 index 00000000..25a23e0b Binary files /dev/null and b/fuzz/report.tgz differ