Files
blis/gtestsuite/codecov.sh
jagar 1d5c1e5803 Code coverage support in gtestsuite framework
- Tools used for code coverage are : Gcov and Lcov.
- We need to use macros specified by gcov during
  compiliation of blis and gtestsuite.
- Locv will generate coverage reports in html format.

AMD-Internal: [CPUPL-2732]
Change-Id: I17b30b4a322b8771f2d6a4ba28986cf0ccf3fba6
2023-04-10 07:48:15 -04:00

12 lines
295 B
Bash
Executable File

#!/bin/bash
echo "Code Coverage for BLIS"
echo "obj_dir_path : $1"
echo "out_dir_name : $2"
#$1 : obj_dir_path
#$2 : out_dir_name
lcov --capture --directory $1 --output-file $2.info
lcov --remove $2.info -o $2_filtered.info '/usr/*' '/*/_deps/*'
genhtml $2_filtered.info --output-directory $2