Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# run unit tests with coverage | ||
tools/unit.sh run-coverage | ||
|
||
# run gcov for traditional text-based coverage output | ||
rm -rf coverage | ||
mkdir -p coverage | ||
gcov --object-directory test/.build/coverage/objs/src/mpack `find src -name '*.c'` || exit $? | ||
mv *.gcov coverage | ||
|
||
# run lcov | ||
lcov --capture --directory test/.build/coverage/objs/src --output-file coverage/lcov.info | ||
|
||
# generate HTML coverage | ||
genhtml coverage/lcov.info --output-directory coverage/html | ||
|
||
echo | ||
echo "Done. Results written in coverage/" | ||
echo "View HTML results in: file://$(pwd)/coverage/index.html" |
This file was deleted.
Oops, something went wrong.