From: Sebastian B. <sb...@us...> - 2013-12-24 09:11:59
|
Update of /cvsroot/simplemail/simplemail/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv30743/tests Modified Files: makefile Log Message: Start the imap server automatically when running an imap test. Index: makefile =================================================================== RCS file: /cvsroot/simplemail/simplemail/tests/makefile,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- makefile 24 Dec 2013 09:11:41 -0000 1.36 +++ makefile 24 Dec 2013 09:11:57 -0000 1.37 @@ -112,7 +112,10 @@ # run template define run.tmpl run-$(1): $(1) + $(if $(findstring imap,$(1)), -$(DOVECOT) stop) + $(if $(findstring imap,$(1)), $(DOVECOT)) ./$$< + $(if $(findstring imap,$(1)), $(DOVECOT) stop) endef # "instanciate" run targets @@ -123,11 +126,14 @@ # memleaks template define memleak.tmpl memleaks-$(1): $(1) + $(if $(findstring imap,$(1)), -$(DOVECOT) stop) + $(if $(findstring imap,$(1)), $(DOVECOT)) ifdef USE_VALGRIND_XML valgrind $(VALGRIND_OPTS) --xml=yes --xml-file=$$@.xml ./$$< else valgrind $(VALGRIND_OPTS) ./$$< endif + $(if $(findstring imap,$(1)), $(DOVECOT) stop) endef # "instanciate" memleak targets @@ -142,11 +148,14 @@ # helgrind template define helgrind.tmpl helgrind-$(1): $(1) + $(if $(findstring imap,$(1)), -$(DOVECOT) stop) + $(if $(findstring imap,$(1)), $(DOVECOT)) ifdef USE_VALGRIND_XML valgrind --tool=helgrind --xml=yes --xml-file=$$@.xml ./$$< else valgrind --tool=helgrind ./$$< endif + $(if $(findstring imap,$(1)), $(DOVECOT) stop) endef # "instanciate" memleak targets |