• Home
  • Raw
  • Download

Lines Matching +full:gcov +full:- +full:4

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:
35 # (Note it is important the -P is at the end...)
36 # $ cmake -DCOV_PATH=$(pwd)
37 # -DCOVERAGE_SRCS="catcierge_rfid.c;catcierge_timer.c"
38 # -P ../cmake/CoverallsGcovUpload.cmake
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...")
80 COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
88 COMMAND ${GIT_EXECUTABLE} log -1 --pretty=format:%${FORMAT_CHARS}
104 message("Git e-mail: ${GIT_AUTHOR_EMAIL}")
106 message("Git commiter e-mail: ${GIT_COMMITTER_EMAIL}")
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
125 # ->
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.
146 message("------------------------------------------------------------------------------")
150 # The -p below refers to "Preserve path components",
151 # This means that the generated gcov filename of a source file will
156 # ------------------------------------------------------------------------------
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"
164 COMMAND ${GCOV_EXECUTABLE} -c -p -o ${GCDA_DIR} ${GCDA}
170 file(GLOB ALL_GCOV_FILES ${COV_PATH}/*.gcov)
176 # message("${COVSRC} -> ${COVSRC_NAME}")
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
210 # ->
218 if (NOT WAS_FOUND EQUAL -1)
232 set(JSON_SERVICE_NAME "travis-ci")
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
296 #string(REGEX REPLACE "\u([a-fA-F0-9]{4})" "\\\\u\\1" GCOV_FILE_SOURCE "${GCOV_FILE_SOURCE}")
299 # start building them from the contents of the .gcov
302 set(GCOV_LINE_COUNT 1) # Line number for the .gcov.
354 elseif (${HITCOUNT} STREQUAL "-")
362 …o properly parse line (RES_COUNT = ${RES_COUNT}) ${GCOV_FILE}:${GCOV_LINE_COUNT}\n-->${GCOV_LINE}")
374 # "[1, 2, 3, " -> "[1, 2, 3"
412 message("Generate JSON for non-gcov file: ${NOT_COVERED_SRC}...")