From fad5683471d094f4e4e77da928ff9de3e7d19e5e Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 22 Feb 2014 19:16:16 -0800 Subject: [PATCH] t/coverage.sh: Use version-gen.sh to determine the current version. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … rather than guessing ;-) D'oh! --- t/coverage.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 -- 2.30.2