test/auto-pts: collect coverage for auto-pts run

This commit is contained in:
Matthias Ringwald 2020-08-29 21:51:25 +02:00
parent b1a1a9bd36
commit 7faa11e2dd
2 changed files with 14 additions and 1 deletions

6
test/.gitignore vendored
View File

@ -1,4 +1,8 @@
*.gcda
*.gcno
coverage.info
coverage*.info
coverage
coverage-html
coverage-bat
coverage-unit
coverage-pts

9
test/auto-pts/coverage.sh Executable file
View File

@ -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