From: Sebastian Harl Date: Sun, 23 Feb 2014 03:16:16 +0000 (-0800) Subject: t/coverage.sh: Use version-gen.sh to determine the current version. X-Git-Tag: sysdb-0.1.0~190 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fad5683471d094f4e4e77da928ff9de3e7d19e5e;p=sysdb.git t/coverage.sh: Use version-gen.sh to determine the current version. … rather than guessing ;-) D'oh! --- diff --git a/t/coverage.sh b/t/coverage.sh index 8be94cf..5dabb13 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -44,18 +44,13 @@ fi ./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