mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-29 06:04:11 +01:00
102c57c825
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).
12 lines
211 B
Makefile
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
|