Code

t/coverage.sh: Use version-gen.sh to determine the current version.
authorSebastian Harl <sh@tokkee.org>
Sun, 23 Feb 2014 03:16:16 +0000 (19:16 -0800)
committerSebastian Harl <sh@tokkee.org>
Sun, 23 Feb 2014 03:16:16 +0000 (19:16 -0800)
… rather than guessing ;-) D'oh!

t/coverage.sh

index 8be94cf6e6bac9394a06b0066498206506af9d37..5dabb13955277df4f73627a72b14eb87ed1b1455 100755 (executable)
@@ -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