[PATCH v3 2/3] emacs: Add simple make target to compile emacs lisp tests

Jonas Bernoulli jonas at bernoul.li
Sat Apr 25 13:18:08 PDT 2020


---
 test/Makefile.local | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/Makefile.local b/test/Makefile.local
index 47244e8f..3c043717 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -78,6 +78,10 @@ endif
 
 check: test
 
+compile-elisp-tests:
+	$(EMACS) --batch -L emacs -L test -l notmuch.el -l test-lib.el -f \
+	batch-byte-compile test/*.el
+
 SRCS := $(SRCS) $(test_srcs)
 CLEAN += $(TEST_BINARIES) $(addsuffix .o,$(TEST_BINARIES)) \
 	 $(dir)/database-test.o \
-- 
2.26.0



More information about the notmuch mailing list