diff options
author | Rhodri James <rhodri@kynesim.co.uk> | 2017-01-30 15:27:54 +0000 |
---|---|---|
committer | Rhodri James <rhodri@kynesim.co.uk> | 2017-01-30 15:27:54 +0000 |
commit | 89d37b3ee3677d246c689e7014aacdcbd6ada5ab (patch) | |
tree | 7945ddb3239714b82d76c81c90dbc8c4102cf5af /expat | |
parent | 25a40afb0ce1cb6306ff87c464f1d4fca20ea86b (diff) | |
download | libexpat-git-89d37b3ee3677d246c689e7014aacdcbd6ada5ab.tar.gz |
Add qa.sh modes for library and application coverage stats
Diffstat (limited to 'expat')
-rwxr-xr-x | expat/qa.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/expat/qa.sh b/expat/qa.sh index 1c7f3f69..cb11b87a 100755 --- a/expat/qa.sh +++ b/expat/qa.sh @@ -45,7 +45,7 @@ main() { local CXX="${GCC_CXX}" BASE_FLAGS+=" -g -fsanitize=address -fno-omit-frame-pointer" ;; - coverage) + coverage | lib-coverage | app-coverage) local CC="${GCC_CC}" local CXX="${GCC_CXX}" BASE_FLAGS+=" --coverage --no-inline" @@ -71,7 +71,7 @@ main() { ;; *) echo "Usage:" 1>&2 - echo " ${0##*/} (address|coverage|egypt|memory|ncc|undefined)" 1>&2 + echo " ${0##*/} (address|coverage|lib-coverage|app-coverage|egypt|memory|ncc|undefined)" 1>&2 exit 1 ;; esac @@ -104,6 +104,12 @@ main() { coverage) find -name '*.gcda' | sort | xargs gcov ;; + lib-coverage) + find lib -name '*.gcda' | sort | xargs gcov + ;; + app-coverage) + find lib xmlwf -name '*.gcda' | sort | xargs gcov + ;; egypt) local DOT_FORMAT="${DOT_FORMAT:-svg}" local o="callgraph.${DOT_FORMAT}" |