Lines Matching +full:tests +full:- +full:coverage +full:- +full:reporting
29 # This code coverage script assumes a Linux-like environment, and has been
34 echo "On Ubuntu, install it with 'sudo apt-get install pv'"
42 RUNNER="$BUILDDIR/test/test-runner"
44 # Build with code coverage instrumentation enabled.
45 scons mode=debug coverage=on target=a64 all -j8
47 if [ ! -f "$RUNNER" ]; then
49 echo "No test-runner for profiling."
53 # Count the number of tests.
54 tests=`$RUNNER --list | wc -l`
56 # Generate a raw profile for a run using all tests.
57 echo "Running $tests tests. This may take a while..."
58 $RUNNER --run-all 2>&1 | grep -P "^Running [A-Z0-9]{3,}_" | pv -lbp -w 40 -s $tests >/dev/null
60 # Process the raw profile data for reporting.
61 llvm-profdata merge -sparse $LLVM_PROFILE_FILE -o $PROFDATA
63 # Print a coverage report for the source files in src/
64 REPORT="llvm-cov report $RUNNER -instr-profile=$PROFDATA $BUILDDIR/src/"
68 eval $REPORT | tail -n1 | tr -s " " | cut -d" " -f4,7,10 | xargs -i printf "%s %s\n" `date +%s` {} …
71 rm -f $LLVM_PROFILE_FILE
72 rm -f $PROFDATA