notmuch/test/Makefile.local
Carl Worth 102c57c825 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).
2010-10-27 10:42:46 -07:00

12 lines
211 B
Makefile

# -*- makefile -*-
dir := test
$(dir)/smtp-dummy: $(dir)/smtp-dummy.c
$(call quiet,CC) $^ -o $@
.PHONY: test
test: all $(dir)/smtp-dummy
@${dir}/notmuch-test $(OPTIONS)
CLEAN := $(CLEAN) $(dir)/smtp-dummy