Update of /cvsroot/simplemail/simplemail/tests
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22371
Modified Files:
makefile
Log Message:
Added possibility to skip certain targets for memleaks.
Index: makefile
===================================================================
RCS file: /cvsroot/simplemail/simplemail/tests/makefile,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- makefile 21 Feb 2014 06:36:38 -0000 1.47
+++ makefile 22 Feb 2014 12:36:25 -0000 1.48
@@ -34,6 +34,9 @@
text2html_unittest \
tcp_unittest
+NOMEMLEAKSPERDEFAULT=\
+ index_unittest
+
test-objs/%.o: ../%.c
@mkdir -p $(@D)
$(CC) $(CFLAGS) -c $< -o $@
@@ -123,9 +126,6 @@
./imap2_unittest
$(DOVECOT) stop
-# Define memleak targets
-MEMLEAKS_TARGETS = $(foreach testexe,$(TESTEXES),memleaks-$(testexe))
-
# run template
define run.tmpl
run-$(1): $(1) $(if $(findstring imap,$(1)), dovecot-conf)
@@ -158,6 +158,10 @@
$(eval $(call memleak.tmpl,$(testexe))) \
)
+# Define our default memleak targets, i.e., targets that need
+# to be done for the memleaks target.
+MEMLEAKS_TARGETS = $(foreach testexe,$(filter-out $(NOMEMLEAKSPERDEFAULT),$(TESTEXES)),memleaks-$(testexe))
+
.PHONY: memleaks
memleaks: $(MEMLEAKS_TARGETS)
|