Lines Matching +full:- +full:- +full:gcov +full:- +full:executable
4 # Use of this source code is governed by a BSD-style license that can be
7 if [ -z "$1" ]; then
8 cat <<-EOM
10 $0 [afl-out-loc]
13 $0 ~/afl-out
14 where afl-out is the directory containing all the output of the afl-fuzzers.
15 You can typically ssh into skia-fuzzer-be-1 and skia-fuzzer-be-2 and run
16 tar -czf afl-out.tar.gz /mnt/ssd0/fuzzes/afl-out/*/fuzzer0/queue
23 set -x
24 set -e
28 EXECUTABLE="fuzz"
30 DIR="$(mktemp -d "${TMPDIR:-/tmp}/skia_coverage_XXXXXXXXXX")"
33 # Build $EXECUTABLE
35 bin/fetch-gn
37 rm -rf $BUILD
40 ARGS='cc="gcc" cxx="g++" extra_cflags=["--coverage"] extra_ldflags=["--coverage"]'
41 gn gen --args="$ARGS" "$BUILD"
43 ninja -C "$BUILD" "$EXECUTABLE"
45 GCOV="$(realpath tools/gcov_shim)"
47 # Generate a zero-baseline so files not covered by $EXECUTABLE $@ will
50 lcov -q --gcov-tool="$GCOV" -c -b "$BUILD" -d "$BUILD" -o "$DIR"/baseline -i
55 …-n ParsePath" "-t color_deserialize" "-t image_scale" "-t image_mode" "-n DrawFunctions" "-n Gradi…
68 timeout 10 $BUILD/$EXECUTABLE ${ARGS[i]} -b $f &
75 echo "done running the fuzzes -- generating report"
77 lcov -q --gcov-tool="$GCOV" -c -b "$BUILD" -d "$BUILD" -o "$DIR"/coverage
79 lcov -q -a "$DIR"/baseline -a "$DIR"/coverage -o "$DIR"/merged
81 genhtml -q "$DIR"/merged --legend -o "$DIR"/coverage_report --ignore-errors source
83 xdg-open "$DIR"/coverage_report/index.html