diff --git a/test/.gitignore b/test/.gitignore index 6f92ab65a..761a54f91 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -1,4 +1,8 @@ *.gcda *.gcno -coverage.info +coverage*.info +coverage coverage-html +coverage-bat +coverage-unit +coverage-pts \ No newline at end of file diff --git a/test/auto-pts/coverage.sh b/test/auto-pts/coverage.sh new file mode 100755 index 000000000..ef83d978f --- /dev/null +++ b/test/auto-pts/coverage.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# collect traces from auto-pts run +lcov --capture --rc lcov_branch_coverage=1 --directory . --exclude "/Applications/*" --exclude "/Library/*" --exclude "/usr/*" --exclude "*/test/*" --output-file coverage-pts.info + +# optional: download unit tests, merge and filter results like in ../Makefile + +# generate html output +genhtml coverage-pts.info --branch-coverage --output-directory coverage-pts