aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-12-07 17:49:10 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-12-07 17:53:27 +0100
commit9c38423ecd6e6732f6c5118b036b1fd3d4ed8ddc (patch)
tree66f43d80e18e00c4cc5611dd2eac5f4b753c5b1a /Makefile.am
parentbuild: coverage: disable branch coverage generation to avoid hangs in gcov (diff)
downloadefl-9c38423ecd6e6732f6c5118b036b1fd3d4ed8ddc.tar.gz
build: coverage: work around lcov 1.12 bug by using absolute paths for info files
In case a warning gets printed from lcov some internal function changes the dir to / and thus fails to create files in the given file later on. Using an absolute path here is a workaround to avoid this problem. The fix is in lcoc already but not yet in any release so we better keep this around here. Lcov fix reference: https://github.com/linux-test-project/lcov/commit/ href="./?id=632c25a0d1f5e4d2f4fd5b28ce7c8b86d388c91f">632c25a0d1f5e4d2f4fd5b28ce7c8b86d388c91f
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am28
1 files changed, 14 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am
index 4190502375..1620877789 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -445,24 +445,24 @@ doc:
if EFL_ENABLE_COVERAGE
lcov-reset:
- @rm -rf $(top_builddir)/coverage
- @find $(top_builddir) -name "*.gcda" -delete
- @lcov --zerocounters --directory $(top_builddir)
+ @rm -rf $(abs_top_builddir)/coverage
+ @find $(abs_top_builddir) -name "*.gcda" -delete
+ @lcov --zerocounters --directory $(abs_top_builddir)
lcov-baseline:
- $(MKDIR_P) $(top_builddir)/coverage
- lcov --capture --initial --compat-libtool --no-external --output-file $(top_builddir)/coverage/coverage-baseline.info --directory $(top_builddir) --config-file .lcov-config
+ $(MKDIR_P) $(abs_top_builddir)/coverage
+ lcov --capture --initial --compat-libtool --no-external --output-file $(abs_top_builddir)/coverage/coverage-baseline.info --directory $(abs_top_builddir) --config-file .lcov-config
lcov-report:
- lcov --capture --compat-libtool --no-external --output-file $(top_builddir)/coverage/coverage-check.info --directory $(top_builddir) --config-file .lcov-config
- lcov --no-external --compat-libtool --add-tracefile $(top_builddir)/coverage/coverage-baseline.info --add-tracefile $(top_builddir)/coverage/coverage-check.info --output-file $(top_builddir)/coverage/coverage.info --config-file .lcov-config
- lcov --no-external --compat-libtool --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info --config-file .lcov-config
- lcov --no-external --compat-libtool --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info --config-file .lcov-config
- lcov --no-external --compat-libtool --remove $(top_builddir)/coverage/coverage.cleaned2.info '*NONE*' --output-file $(top_builddir)/coverage/coverage.cleaned3.info --config-file .lcov-config
- lcov --no-external --compat-libtool --remove $(top_builddir)/coverage/coverage.cleaned3.info '*/doc/*' --output-file $(top_builddir)/coverage/coverage.cleaned4.info --config-file .lcov-config
- lcov --no-external --compat-libtool --remove $(top_builddir)/coverage/coverage.cleaned4.info '*usr/include*' --output-file $(top_builddir)/coverage/coverage.cleaned5.info --config-file .lcov-config
- genhtml --config-file .lcov-config --legend -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned5.info
- @echo "Coverage Report at $(top_builddir)/coverage/html"
+ lcov --capture --compat-libtool --no-external --output-file $(abs_top_builddir)/coverage/coverage-check.info --directory $(abs_top_builddir) --config-file .lcov-config
+ lcov --no-external --compat-libtool --add-tracefile $(abs_top_builddir)/coverage/coverage-baseline.info --add-tracefile $(abs_top_builddir)/coverage/coverage-check.info --output-file $(abs_top_builddir)/coverage/coverage.info --config-file .lcov-config
+ lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.info '*.h' --output-file $(abs_top_builddir)/coverage/coverage.cleaned.info --config-file .lcov-config
+ lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned2.info --config-file .lcov-config
+ lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned2.info '*NONE*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned3.info --config-file .lcov-config
+ lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned3.info '*/doc/*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned4.info --config-file .lcov-config
+ lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned4.info '*usr/include*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned5.info --config-file .lcov-config
+ genhtml --config-file .lcov-config --legend -t "$(PACKAGE_STRING)" -o $(abs_top_builddir)/coverage/html $(abs_top_builddir)/coverage/coverage.cleaned5.info
+ @echo "Coverage Report at $(abs_top_builddir)/coverage/html"
endif