From: Sebastian Harl Date: Sun, 23 Feb 2014 04:14:26 +0000 (-0800) Subject: t/coverage.sh: Fall-back to lcov without --no-external. X-Git-Tag: sysdb-0.1.0~186 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b71f47acb89bd69ab204e9b8f550a2690087dfdc;p=sysdb.git t/coverage.sh: Fall-back to lcov without --no-external. Old versions of lcov don't support that flag. Simply try to fall back in case the first run fails. --- diff --git a/t/coverage.sh b/t/coverage.sh index 5dabb13..29f8c99 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -46,8 +46,11 @@ 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 \