stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7c79165b53a2b1dd01eabdbbd865425531619a0b

commit 7c79165b53a2b1dd01eabdbbd865425531619a0b
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Wed Mar 2 13:14:00 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 
coding
    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 
them
    automatically. This fixes failures in a coverage run where the file is 
simply
    looked for in the wrong directory.
---
 .lcov-config | 1 +
 Makefile.am  | 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/Makefile.am b/Makefile.am
index 34b9ace..08d8701 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -430,7 +430,7 @@ lcov-reset:
 
 lcov-report:
        $(MKDIR_P) $(top_builddir)/coverage
-       lcov --capture --compat-libtool --no-external --output-file 
$(top_builddir)/coverage/coverage.info --directory $(top_builddir) 
--base-directory $(top_srcdir)/src/
+       lcov --capture --compat-libtool --no-external --config-file 
.lcov-config --output-file $(top_builddir)/coverage/coverage.info --directory 
$(top_builddir)
        lcov --remove $(top_builddir)/coverage/coverage.info '*.h' 
--output-file $(top_builddir)/coverage/coverage.cleaned.info
        lcov --remove $(top_builddir)/coverage/coverage.cleaned.info 
'*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
        lcov --remove $(top_builddir)/coverage/coverage.cleaned2.info '*NONE*' 
--output-file $(top_builddir)/coverage/coverage.cleaned3.info

-- 


Reply via email to