X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FMakefile.local;h=45df4c718fb47f3545202f3d02e75c993cd47338;hb=1dd76ab9b681d6f1f59e7f076015e8f12f45f477;hp=9b3308a1bbb511840818396a69b5d55125805e0b;hpb=9756b9dcb93c1babf5083cd91ad242b148c426a3;p=notmuch diff --git a/test/Makefile.local b/test/Makefile.local index 9b3308a1..45df4c71 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -2,19 +2,34 @@ dir := test +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 $@ +$(dir)/symbol-test: $(dir)/symbol-test.o + $(call quiet,CXX) $^ -o $@ -Llib -lnotmuch $(XAPIAN_LDFLAGS) + .PHONY: test check -test: all $(dir)/smtp-dummy + +test-binaries: $(dir)/arg-test $(dir)/smtp-dummy $(dir)/symbol-test + +test: all test-binaries @${dir}/notmuch-test $(OPTIONS) check: test -CLEAN := $(CLEAN) $(dir)/smtp-dummy $(dir)/smtp-dummy.o +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.*