branch: elpa/lua-mode
commit 617c3926673a92d4f6874575aea629c026d8d63d
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
make test: test both compiled and uncompiled variants
---
Makefile | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 18b230a..72a895b 100644
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,17 @@ dist:
rm -f $(DISTFILE) && \
git archive --format=zip -o $(DISTFILE) --prefix=lua-mode/ HEAD
-check:
- emacs -Q -batch -l ert \
+.PHONY: test test-compiled test-uncompiled
+# check both regular and compiled versions
+test: test-compiled test-uncompiled
+
+test-compiled: compile
+ $(EMACS) -Q --batch -l ert \
+ -l lua-mode.elc -l ert-tests/lua-font-lock-test-helpers.el \
+ $(addprefix -l ,$(TESTS)) -f ert-run-tests-batch-and-exit
+
+test-uncompiled:
+ $(EMACS) -Q --batch -l ert \
-l lua-mode.el -l ert-tests/lua-font-lock-test-helpers.el \
$(addprefix -l ,$(TESTS)) -f ert-run-tests-batch-and-exit