diff --git a/t/coverage.sh b/t/coverage.sh
index 5dabb13955277df4f73627a72b14eb87ed1b1455..1de97641e0138ed8a663d0c9620b5257ab1421d7 100755 (executable)
--- a/t/coverage.sh
+++ b/t/coverage.sh
cp -a "$srcdir"/.git .
# reset all files which are not part of the tarball
- git checkout HEAD .gitignore .travis.yml
+ git checkout HEAD .gitignore .travis.yml t/cibuild.sh
fi
-./configure --enable-gcov --disable-shared CFLAGS="-O0 -g"
+# rebuild build system to refresh version number, etc.
+rm -f version
+touch configure.ac && make configure
+
+./configure --enable-gcov CFLAGS="-O0 -g"
make
lcov --base-directory src --directory src --zerocount
make test
+# old versions of lcov don't support --no-external
lcov --base-directory src --directory src --no-external \
- --capture -o sysdb_coverage.info
+ --capture -o sysdb_coverage.info \
+ || lcov --base-directory src --directory src \
+ --capture -o sysdb_coverage.info
V=$( ./version-gen.sh )
genhtml -o "$srcdir"/t/coverage \