stefan pushed a commit to branch master.

commit c20d34a8007c527d1a9531976aaae2e93eea1590
Author: Stefan Schmidt <>
Date:   Wed Mar 2 09:07:41 2016 +0100

    build: fix problems with coverage check build where some files are not found
    Switch to use a lcov config file which geninfo_auto_base and remove hard 
    the base dir  to src/lib. geninfo_auto_base is designed for a use case like
    ours where we have several base dirs (lib, bin, tests, ...) and it detects 
    automatically. This fixes failures in a coverage run like this:
    genhtml: ERROR: cannot read
    Where the file is simply looked for in the wrong directory.
 .lcov-config | 1 +  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.lcov-config b/.lcov-config
new file mode 100644
index 0000000..bb631ac
--- /dev/null
+++ b/.lcov-config
@@ -0,0 +1 @@
+geninfo_auto_base = 1
diff --git a/ b/
index 3ab56f4..3340622 100644
--- a/
+++ b/
@@ -134,7 +134,7 @@ lcov-reset:
        @mkdir $(top_builddir)/coverage
-       lcov --capture --compat-libtool --no-external --output-file 
$(top_builddir)/coverage/ --directory $(top_builddir) 
--base-directory $(top_srcdir)/src/lib/
+       lcov --capture --compat-libtool --no-external --config-file 
.lcov-config --output-file $(top_builddir)/coverage/ --directory 
        lcov --remove $(top_builddir)/coverage/ '*.h' 
--output-file $(top_builddir)/coverage/
        lcov --remove $(top_builddir)/coverage/ 
'*/elm_test_*' --output-file $(top_builddir)/coverage/
        lcov --remove $(top_builddir)/coverage/ 
'*/elm_suite.c' --output-file $(top_builddir)/coverage/


Reply via email to