[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 0248258298: Add a target 'check' to the Makefil
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 0248258298: Add a target 'check' to the Makefile. |
Date: |
Mon, 27 Jun 2022 14:58:31 -0400 (EDT) |
branch: elpa/forth-mode
commit 02482582985f5ace243ea07b492ec78520018975
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Lars Brinkhoff <lars@nocrew.org>
Add a target 'check' to the Makefile.
This should be more obvious than 'make -B'.
* Makefile (check): New target.
(FORTH): Use 'gforth-0.7.3' instead of 'gforth', in case somebody has
installed the snapshot version as 'gforth'.
* test/tests.el: Require some things for the case when we are
loaded by 'make check'.
---
Makefile | 6 +++++-
test/tests.el | 7 +++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c55a954a0e..4bae5bf290 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
EMACS = emacs
EMACS_LOAD = $(EMACS) -Q --batch --load
-FORTH = gforth
+FORTH = gforth-0.7.3
SRC = $(wildcard *.el) $(wildcard backend/*.el)
@@ -14,5 +14,9 @@ doc: forth-mode.info
%.info: %.texi
makeinfo $<
+check: forth-mode.elc
+ FORTH=$(FORTH) $(EMACS) -Q --batch -L . -l test/tests.el \
+ -f ert-run-tests-batch-and-exit
+
clean:
rm -f autoloads.el *.elc backend/*.elc
diff --git a/test/tests.el b/test/tests.el
index 085001e709..27391893b9 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -1,3 +1,10 @@
+(require 'forth-mode)
+(require 'forth-interaction-mode)
+(require 'forth-block-mode)
+
+(unless forth-executable
+ (setq forth-executable (getenv "FORTH")))
+
(ert-deftest load-not-block ()
(find-file "test/noblock.fth")
(should (eq major-mode 'forth-mode))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/forth-mode 0248258298: Add a target 'check' to the Makefile.,
ELPA Syncer <=