X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FMakefile.local;h=45df4c718fb47f3545202f3d02e75c993cd47338;hb=5a48340bf19c42ccdec9b1777a42a79f6884f49f;hp=cf7abc74a400e3b931af7eee43b09fc13b63a57c;hpb=102c57c825d22c8f4741332f1e02e08f66f6cd2f;p=notmuch diff --git a/test/Makefile.local b/test/Makefile.local index cf7abc74..45df4c71 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -2,11 +2,34 @@ dir := test -$(dir)/smtp-dummy: $(dir)/smtp-dummy.c +extra_cflags += -I. + +smtp_dummy_srcs = \ + $(notmuch_compat_srcs) \ + $(dir)/smtp-dummy.c + +smtp_dummy_modules = $(smtp_dummy_srcs:.c=.o) + +$(dir)/arg-test: $(dir)/arg-test.o command-line-arguments.o util/libutil.a + $(call quiet,CC) -I. $^ -o $@ + +$(dir)/smtp-dummy: $(smtp_dummy_modules) $(call quiet,CC) $^ -o $@ -.PHONY: test -test: all $(dir)/smtp-dummy +$(dir)/symbol-test: $(dir)/symbol-test.o + $(call quiet,CXX) $^ -o $@ -Llib -lnotmuch $(XAPIAN_LDFLAGS) + +.PHONY: test check + +test-binaries: $(dir)/arg-test $(dir)/smtp-dummy $(dir)/symbol-test + +test: all test-binaries @${dir}/notmuch-test $(OPTIONS) -CLEAN := $(CLEAN) $(dir)/smtp-dummy +check: test + +SRCS := $(SRCS) $(smtp_dummy_srcs) +CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o \ + $(dir)/symbol-test $(dir)/symbol-test.o \ + $(dir)/arg-test $(dir)/arg-test.o \ + $(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*