emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode 617c392 224/468: make test: test both compiled an


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode 617c392 224/468: make test: test both compiled and uncompiled variants
Date: Thu, 5 Aug 2021 04:58:41 -0400 (EDT)

branch: elpa/lua-mode
commit 617c3926673a92d4f6874575aea629c026d8d63d
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]