Update of /cvsroot/simplemail/simplemail/tests
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28489/tests
Modified Files:
makefile
Log Message:
Added helgrind template.
Index: makefile
===================================================================
RCS file: /cvsroot/simplemail/simplemail/tests/makefile,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- makefile 24 Dec 2013 08:48:34 -0000 1.24
+++ makefile 24 Dec 2013 08:56:21 -0000 1.25
@@ -91,6 +91,23 @@
.PHONY: memleaks
memleaks: $(MEMLEAKS_TARGETS)
+
+# helgrind template
+define helgrind.tmpl
+helgrind-$(1): $(1)
+ifdef USE_VALGRIND_XML
+ valgrind --tool=helgrind --xml=yes --xml-file=$$@.xml ./$$<
+else
+ valgrind --tool=helgrind ./$$<
+endif
+endef
+
+# "instanciate" memleak targets
+$(foreach testexe,$(TESTEXES), \
+ $(eval $(call helgrind.tmpl,$(testexe))) \
+)
+
+
.PHONY: clean
clean:
-rm -Rf test-objs $(TESTEXES) $(addsuffix .o,$(TESTEXES))
|