branch: externals/eglot
commit fab7f8bcdae2419494996938ea2787950edfde5e
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Improve Makefile test targets
* Makefile (eglot-check): new target.
(jsonrpc-check): Use SELECTOR.
(check): Calle eglot-check and jsonrpc-check
---
Makefile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 6b95f9c..df15914 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
# Variables
#
EMACS=emacs
+SELECTOR=t
LOAD_PATH=-L .
@@ -20,15 +21,17 @@ compile: $(ELCFILES)
# Automated tests
#
-check: compile jsonrpc-check
+eglot-check: compile
$(EMACS) -Q --batch $(LOAD_PATH) \
-l eglot-tests \
- -f ert-run-tests-batch-and-exit \
+ --eval '(ert-run-tests-batch-and-exit (quote $(SELECTOR)))'
jsonrpc-check: jsonrpc.elc jsonrpc-tests.elc
$(EMACS) -Q --batch $(LOAD_PATH) \
-l jsonrpc-tests \
- -f ert-run-tests-batch-and-exit \
+ --eval '(ert-run-tests-batch-and-exit (quote $(SELECTOR)))'
+
+check: eglot-check jsonrpc-check
# Cleanup
#