• Home
  • Raw
  • Download

Lines Matching full:gcov

28 # This script will then use gcov to generate .gcov files in the directory specified
31 # It then parses the .gcov files to convert them into the Coveralls JSON format:
51 …message(FATAL_ERROR "Coveralls: Missing coverage directory path where gcov files will be generated…
68 find_program(GCOV_EXECUTABLE gcov)
71 message(FATAL_ERROR "gcov not found! Aborting...")
114 # This macro converts from the full path format gcov outputs:
116 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
118 # to the original source file path the .gcov is for:
124 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
126 # #path#to#project#root#subdir#the_file.c.gcov
129 # #path#to#project#root#subdir#the_file.c.gcov -> /path/to/project/root/subdir/the_file.c
130 string(REGEX REPLACE "\\.gcov$" "" SRC_FILENAME_TMP ${_GCOV_FILENAME_WEXT})
141 # Get a list of all the object directories needed by gcov
143 # and run gcov on those.
151 # This means that the generated gcov filename of a source file will
159 # /path/to/project/root/subdir/the_file.c:creating '#path#to#project#root#subdir#the_file.c.gcov'
161 # If -p is not specified then the file is named only "the_file.c.gcov"
170 file(GLOB ALL_GCOV_FILES ${COV_PATH}/*.gcov)
181 # Filter out all but the gcov files we want.
184 # user wants the coverage data for with the paths of the generated .gcov files,
185 # so that we only keep the relevant gcov files.
192 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
193 # /path/to/project/root/build/#path#to#project#root#subdir#other_file.c.gcov
197 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
201 message("\nFilter out unwanted GCOV files:")
209 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
256 # Read the GCOV files line by line and get the coverage data.
267 # Loads the gcov file as a list of lines.
282 # gcov file, simply read the file contents from the source file.
283 # (Parsing it from the gcov is hard because C-code uses ; in many places
299 # start building them from the contents of the .gcov
302 set(GCOV_LINE_COUNT 1) # Line number for the .gcov.
412 message("Generate JSON for non-gcov file: ${NOT_COVERED_SRC}...")