Skip to content

Commit 3717770

Browse files
Print MD5 hashes..
1 parent 53c3fe0 commit 3717770

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmake/CoverallsGenerateGcov.cmake

+6-5
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ set(JSON_TEMPLATE
242242

243243
set(SRC_FILE_TEMPLATE
244244
"{
245-
\"name\": \"\@GCOV_SRC_REL_PATH\@\",
246-
\"source_digest\": \"\@GCOV_CONTENTS_MD5\@\",
247-
\"coverage\": \@GCOV_FILE_COVERAGE\@
248-
}"
245+
\"name\": \"\@GCOV_SRC_REL_PATH\@\",
246+
\"source_digest\": \"\@GCOV_CONTENTS_MD5\@\",
247+
\"coverage\": \@GCOV_FILE_COVERAGE\@
248+
}"
249249
)
250250

251251
message("\nGenerate JSON for files:")
@@ -261,7 +261,8 @@ foreach (GCOV_FILE ${GCOV_FILES})
261261

262262
# The new coveralls API doesn't need the entire source (Yay!)
263263
# However, still keeping that part for now. Will cleanup in the future.
264-
file(MD5 ${GCOV_SRC_PATH} GCOV_CONTENTS_MD5)
264+
file(MD5 "${GCOV_SRC_PATH}" GCOV_CONTENTS_MD5)
265+
message("MD5: ${GCOV_SRC_PATH} = ${GCOV_CONTENTS_MD5}")
265266

266267
# Loads the gcov file as a list of lines.
267268
# (We first open the file and replace all occurences of [] with _

0 commit comments

Comments
 (0)