From 32f86f97f69a9d4135cff7ceea78fe1722221018 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 27 Jun 2013 09:24:05 +1000 Subject: [PATCH] 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 --- test/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 \ -- 2.7.4