[infra][jvm] Create per-target summary.json (#5778)

This commit is contained in:
Fabian Meumertzheim 2021-05-17 16:25:10 +02:00 committed by GitHub
parent d669365185
commit f08e98d176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -158,6 +158,17 @@ function run_java_fuzz_target {
# Skip fuzz targets that failed to produce .exec files.
return 0
fi
# Generate XML report only as input to jacoco_report_converter.
# Source files are not needed for the summary.
local xml_report="$DUMPS_DIR/${target}.xml"
local summary_file="$FUZZER_STATS_DIR/$target.json"
java -jar /opt/jacoco-cli.jar report $exec_file \
--xml $xml_report \
--classfiles $class_dump_dir
# Write llvm-cov summary file.
jacoco_report_converter.py $xml_report $summary_file
}
export SYSGOPATH=$GOPATH