From: Sebastian B. <sb...@us...> - 2013-12-24 09:09:15
|
Update of /cvsroot/simplemail/simplemail/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv30448/tests Modified Files: makefile Log Message: Added imap-testsuite makefile target. This will start the imap server, run the unit test and stops the server again. Index: makefile =================================================================== RCS file: /cvsroot/simplemail/simplemail/tests/makefile,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- makefile 24 Dec 2013 09:08:56 -0000 1.33 +++ makefile 24 Dec 2013 09:09:12 -0000 1.34 @@ -114,6 +114,7 @@ DOVECOT_TGZ=$(notdir $(DOVECOT_URL)) DOVECOT_DIR=$(DOVECOT_TGZ:%.tar.gz=%) DOVECOT_ABSDIR=$(shell pwd)/$(DOVECOT_DIR) +DOVECOT=$(DOVECOT_DIR)-root/sbin/dovecot $(DOVECOT_TGZ): wget -N $(DOVECOT_URL) @@ -145,3 +146,11 @@ dovecot-conf: dovecot-bin cp -R $(DOVECOT_DIR)-root/share/doc/dovecot/example-config $(DOVECOT_DIR)-root/etc/dovecot + +.PHONY: imap-testsuite +imap-testsuite: dovecot imap2_unittest + -$(DOVECOT) stop + $(DOVECOT) + sleep 2 + ./imap2_unittest + $(DOVECOT) stop |