From 102c57c825d22c8f4741332f1e02e08f66f6cd2f Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 27 Oct 2010 10:42:46 -0700 Subject: test: Add test that emacs interface actually sends mail. Rather than *reall* sending mail here, we instead have a new test program, smtp-dummy which implements (a small piece of) the server-side SMTP protocol and saves a mail message to the filename provided. This gives us reasonable test coverage of a large chunk of the notmuch+emacs code base (down to talking to an SMTP server with the final mail contents). --- test/Makefile.local | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/Makefile.local') diff --git a/test/Makefile.local b/test/Makefile.local index 1cb24027..cf7abc74 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -2,6 +2,11 @@ dir := test +$(dir)/smtp-dummy: $(dir)/smtp-dummy.c + $(call quiet,CC) $^ -o $@ + .PHONY: test -test: all +test: all $(dir)/smtp-dummy @${dir}/notmuch-test $(OPTIONS) + +CLEAN := $(CLEAN) $(dir)/smtp-dummy -- cgit v1.2.3