aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-10-27 10:42:46 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-10-27 10:42:46 -0700
commit102c57c825d22c8f4741332f1e02e08f66f6cd2f (patch)
tree8674b1a2789470e376bad45b6875b6152725be76 /test/Makefile.local
parentf30200a4296f972474f9254dc3cba89570cd7bc0 (diff)
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).
Diffstat (limited to 'test/Makefile.local')
-rw-r--r--test/Makefile.local7
1 files changed, 6 insertions, 1 deletions
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