From 7faa11e2dd3a54e893c40ca8e518b758ee703a46 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 29 Aug 2020 21:51:25 +0200 Subject: [PATCH] test/auto-pts: collect coverage for auto-pts run --- test/.gitignore | 6 +++++- test/auto-pts/coverage.sh | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 test/auto-pts/coverage.sh 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