summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1a9699)
raw | patch | inline | side by side (parent: f1a9699)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 23 Feb 2014 03:16:16 +0000 (19:16 -0800) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 23 Feb 2014 03:16:16 +0000 (19:16 -0800) |
… rather than guessing ;-) D'oh!
t/coverage.sh | patch | blob | history |
diff --git a/t/coverage.sh b/t/coverage.sh
index 8be94cf6e6bac9394a06b0066498206506af9d37..5dabb13955277df4f73627a72b14eb87ed1b1455 100755 (executable)
--- a/t/coverage.sh
+++ b/t/coverage.sh
./configure --enable-gcov --disable-shared CFLAGS="-O0 -g"
make
-V1=$( grep '^PACKAGE_VERSION' Makefile | cut -d' ' -f3 )
-if test -z "$V1"; then
- # this should not happen
- V1="$V"
-fi
-
lcov --base-directory src --directory src --zerocount
make test
lcov --base-directory src --directory src --no-external \
--capture -o sysdb_coverage.info
+V=$( ./version-gen.sh )
genhtml -o "$srcdir"/t/coverage \
- -t "SysDB $V1 test coverage" --num-spaces=4 --legend \
+ -t "SysDB $V test coverage" --num-spaces=4 --legend \
sysdb_coverage.info