Skip to content

Commit

Permalink
Print MD5 hashes..
Browse files Browse the repository at this point in the history
JoakimSoderberg committed Mar 10, 2015
1 parent 53c3fe0 commit 3717770
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmake/CoverallsGenerateGcov.cmake
Original file line number Diff line number Diff line change
@@ -242,10 +242,10 @@ set(JSON_TEMPLATE

set(SRC_FILE_TEMPLATE
"{
\"name\": \"\@GCOV_SRC_REL_PATH\@\",
\"source_digest\": \"\@GCOV_CONTENTS_MD5\@\",
\"coverage\": \@GCOV_FILE_COVERAGE\@
}"
\"name\": \"\@GCOV_SRC_REL_PATH\@\",
\"source_digest\": \"\@GCOV_CONTENTS_MD5\@\",
\"coverage\": \@GCOV_FILE_COVERAGE\@
}"
)

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

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

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

0 comments on commit 3717770

Please sign in to comment.