Last active
June 22, 2022 12:47
-
-
Save xseignard/5420661 to your computer and use it in GitHub Desktop.
Merge lcov files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read FILENAME; do | |
LCOV_INPUT_FILES="$LCOV_INPUT_FILES -a \"$FILENAME\"" | |
done < <( find $1 -name lcov.info ) | |
eval lcov "${LCOV_INPUT_FILES}" -o $1/$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Even easier:
find project -name lcov.info -exec echo -a {} \; | xargs lcov -o coverage/lcov.info