From: Peter Hutterer Date: Wed, 26 Jun 2013 23:24:05 +0000 (+1000) Subject: test: Hook up gcov to require the test name X-Git-Tag: libevdev-0.2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32f86f97f69a9d4135cff7ceea78fe1722221018;p=platform%2Fupstream%2Flibevdev.git test: Hook up gcov to require the test name Make check will simply overwrite results of a previous test. Hook up gcov so that the test has to be explicitly passed to avoid confusion here. Signed-off-by: Peter Hutterer --- diff --git a/test/Makefile.am b/test/Makefile.am index 07b9a70..88b4b8f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -32,7 +32,9 @@ CLEANFILES = gcov-report.txt gcov-clean: @rm -f *.gcov -gcov-report.txt: gcov-clean check-TESTS +gcov-report.txt: gcov-clean $(TEST) + $(AM_V_GEN)test -n "$$TEST" || (echo "Run as 'make gcov TEST='" && exit 1) + $(AM_V_GEN)($(builddir)/$(TEST)) $(AM_V_GEN)(rm -rf $@; \ echo "========== coverage report ========" >> $@; \ for file in `find $(top_srcdir)/libevdev -name "*.c" -printf "%P\n"`; do \