diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2019-01-16 16:23:30 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2019-01-17 14:03:30 +0000 |
commit | afb280b56aa71e50dc2acd5b6a6c49635015fde9 (patch) | |
tree | 7c54786ed3170a3fbc9337c756d3b6dcd00602a2 | |
parent | 36cc2c81b0daf10b7879a925913070e815d10807 (diff) |
Fix 'make check-coverage' report generation
Also flex should not generate any #line statements when using --noline
it still does, which points to a file which doesn't exist. This is
ignored by the compiler and lcov, but for genhtml we need to explicitly
disable this error.
Change-Id: I23ab0afd8afe6b311e211b6ac0a004499c697758
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r-- | qtivi.pro | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -26,7 +26,6 @@ GCOV_EXCLUDE = /usr/* \ $$[QT_INSTALL_PREFIX/src]/* \ $$_PRO_FILE_PWD_/tests/* \ $$_PRO_FILE_PWD_/src/3rdparty* \ - $$_PRO_FILE_PWD_/src/ivicore/queryparser/qiviqueryparser.l \ $$OUT_PWD/*/.moc/* \ $$OUT_PWD/*/.rcc/* \ $$OUT_PWD/*/.uic/* \ @@ -51,7 +50,7 @@ global-check-coverage.commands = ( \ lcov --rc lcov_branch_coverage=1 -o $$OUT_PWD/temp.gcov-info `find . -name \"*.gcov-info\" | xargs -n1 echo -a` && \ lcov --rc lcov_branch_coverage=1 -o $$OUT_PWD/qtivi.gcov-info -r temp.gcov-info $$GCOV_EXCLUDE_STR && \ rm -f base.gcov-info test.gcov-info temp.gcov-info && \ - genhtml -o branch-coverage -s -f --legend --branch-coverage --rc lcov_branch_coverage=1 --demangle-cpp qtivi.gcov-info && echo \"\\n\\nCoverage info is available at file://`pwd`/branch-coverage/index.html\" \ + genhtml -o branch-coverage -s -f --legend --branch-coverage --rc lcov_branch_coverage=1 --demangle-cpp qtivi.gcov-info --ignore-errors source && echo \"\\n\\nCoverage info is available at file://`pwd`/branch-coverage/index.html\" \ ) QMAKE_EXTRA_TARGETS -= sub-check-coverage |