fuzz/llvm: move coverage data to llvm/coverage

There is no access to fuzzer logs if `index.html` is in the same dir,
move covrage to `$output_dir/llvm/coverage`.

Signed-off-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Change-Id: I139a6d780754aaf5b1333a2e5b0183bd24488bfa
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16341
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Michal Berger <michal.berger@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Sebastian Brzezinka 2023-01-18 20:45:09 +01:00 committed by David Ko
parent 2df6ee9845
commit 8ec718c63d

View File

@ -12,10 +12,10 @@ fuzzers=($(get_fuzzer_targets))
llvm_out=$output_dir/llvm
mkdir -p $rootdir/../corpus/ $llvm_out
mkdir -p $rootdir/../corpus/ $llvm_out/coverage
function lcov_start() {
local out=$llvm_out
local out=$llvm_out/coverage
local src=$rootdir
if hash lcov; then
@ -38,7 +38,7 @@ function lcov_start() {
}
function lcov_stop() {
local out=$llvm_out
local out=$llvm_out/coverage
local src=$rootdir
if hash lcov; then
@ -68,5 +68,5 @@ done
if [[ $SPDK_TEST_FUZZER_SHORT -eq 0 ]]; then
lcov_stop
genhtml $llvm_out/cov_total.info --output-directory $llvm_out
genhtml $llvm_out/coverage/cov_total.info --output-directory $llvm_out/coverage
fi