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

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

[elpa] externals/scanner 1e60cd2 03/56: add test and check targets to Ma


From: Stefan Monnier
Subject: [elpa] externals/scanner 1e60cd2 03/56: add test and check targets to Makefile, gitignore dep
Date: Fri, 10 Apr 2020 13:55:58 -0400 (EDT)

branch: externals/scanner
commit 1e60cd200c73009a75a3e89b79d92b335a6d3ad7
Author: Raffael Stocker <address@hidden>
Commit: Raffael Stocker <address@hidden>

    add test and check targets to Makefile, gitignore dep
---
 .gitignore |  1 +
 Makefile   | 15 +++++++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index f1f8b51..c77799e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 \#*#
 *.elc
 TAGS
+/dep
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 4a60a0a..5b69f09 100644
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,17 @@
 .POSIX:
 EMACS = emacs
 EL = scanner.el
+TEST = scanner-test.el
 ELPA_EXT = dash
-LDFLAGS = -L ./dep/dash -L ../elpa/packages/hydra
+LDFLAGS = -L ./dep/dash
 
-.PHONY: compile clean depclean depsetup depupdate run
+.PHONY: compile test clean depclean depsetup depupdate run
 
-compile: $(EL:.el=.elc)
+compile: $(EL:.el=.elc) $(TEST:.el=.elc)
+test: $(TEST:.el=.elc)
 
 clean:
-       rm -f scanner.elc
+       rm -f scanner.elc scanner-test.elc
 
 depclean:
        rm -rf ./dep/*
@@ -35,6 +37,11 @@ depupdate:
 .el.elc:
        $(EMACS) -Q --batch -L . $(LDFLAGS) -f batch-byte-compile $<
 
+
+check: $(TEST:.el=.elc)
+       $(EMACS) -Q --batch -L . $(LDFLAGS) -l scanner-test.elc \
+       -f ert-run-tests-batch-and-exit
+
 run: $(EL:.el=.elc)
        $(EMACS) -Q -L . $(LDFLAGS) --eval "(load \"scannner\")"        \
        --eval "(scan-blah)" &



reply via email to

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