X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib.mk;h=09aae0e87d51ed8f3eb34d439021b0cb13e4e728;hb=2a53b4d0e2c98a14aedf31e38f0ad1fb2e8fe26f;hp=de87d58a18204c58a0721b48dff364c99d3205b5;hpb=aaddd823bcce4c5f751cb694c7c7d5064978213b;p=platform%2Fupstream%2Fglib.git diff --git a/glib.mk b/glib.mk index de87d58..09aae0e 100644 --- a/glib.mk +++ b/glib.mk @@ -52,15 +52,16 @@ lcov: # placing the objects files in the .libs/ directory separate from the *.c # we also have to delete tests/.libs/libmoduletestplugin_*.gcda genlcov: - rm -f $(top_builddir)/tests/.libs/libmoduletestplugin_*.gcda - $(LTP) --directory $(top_builddir) --capture --output-file glib-lcov.info --test-name GLIB_PERF --no-checksum --compat-libtool - LANG=C $(LTP_GENHTML) --prefix $(top_builddir) --output-directory glib-lcov --title "GLib Code Coverage" --legend --show-details glib-lcov.info + $(AM_V_GEN) rm -f $(top_builddir)/tests/.libs/libmoduletestplugin_*.gcda; \ + $(LTP) --quiet --directory $(top_builddir) --capture --output-file glib-lcov.info --test-name GLIB_PERF --no-checksum --compat-libtool --ignore-errors source; \ + $(LTP) --quiet --output-file glib-lcov.info --remove glib-lcov.info docs/reference/\* /tmp/\* gio/tests/gdbus-object-manager-example/\* ; \ + LANG=C $(LTP_GENHTML) --quiet --prefix $(top_builddir) --output-directory glib-lcov --title "GLib Code Coverage" --legend --frames --show-details glib-lcov.info --ignore-errors source @echo "file://$(abs_top_builddir)/glib-lcov/index.html" lcov-clean: - -$(LTP) --directory $(top_builddir) -z - -rm -rf glib-lcov.info glib-lcov - -find -name '*.gcda' -print | xargs rm + if test -n "$(LTP)"; then \ + $(LTP) --quiet --directory $(top_builddir) -z; \ + fi # run tests in cwd as part of make check check-local: test-nonrecursive @@ -163,7 +164,7 @@ installed_test_meta_DATA = $(installed_testcases:=.test) %.test: %$(EXEEXT) Makefile $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ - echo 'Exec=$(installed_testdir)/$<' >> $@.tmp; \ + echo 'Exec=$(installed_testdir)/$(notdir $<)' >> $@.tmp; \ mv $@.tmp $@) CLEANFILES += $(installed_test_meta_DATA)