X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FMakefile.local;h=8eb0433098b20958e42d6831e5bcc4e3e6e5af6d;hp=a95484417761eefb93c78d63c2912007729722cb;hb=19daa117b90289d724392e04e3647ade6db4dd7b;hpb=e6ba2c63c9ba3d8999bd2f1c5eac3c5bf7c14167 diff --git a/test/Makefile.local b/test/Makefile.local index a9548441..8eb04330 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -2,6 +2,19 @@ dir := test -.PHONY: test -test: all - @${dir}/notmuch-test +smtp_dummy_srcs = \ + $(notmuch_compat_srcs) \ + $(dir)/smtp-dummy.c + +smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o) + +$(dir)/smtp-dummy: $(smtp_dummy_modules) + $(call quiet,CC) $^ -o $@ + +.PHONY: test check +test: all $(dir)/smtp-dummy + @${dir}/notmuch-test $(OPTIONS) + +check: test + +CLEAN := $(CLEAN) $(dir)/smtp-dummy