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

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

[nongnu] elpa/bash-completion 2178030cdf 225/313: Allow running unit and


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 2178030cdf 225/313: Allow running unit and integration tests separately.
Date: Sat, 3 Dec 2022 10:59:33 -0500 (EST)

branch: elpa/bash-completion
commit 2178030cdfce9c5a40435a918d27d33adb2268f2
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Allow running unit and integration tests separately.
---
 Makefile | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 1d414beaf9..d704525a25 100644
--- a/Makefile
+++ b/Makefile
@@ -2,22 +2,39 @@ CASK ?= cask
 EMACS ?= emacs
 BASH ?= bash
 
+setup_bash=test/.set-bash-prog.el
+
 all: test
+.PHONY: all
 
 test: clean-elc
-       ${MAKE} unit
+       ${MAKE} ert
        ${MAKE} compile
-       ${MAKE} unit
+       ${MAKE} ert
        ${MAKE} clean-elc
+.PHONY: test
 
 unit:
-       @echo '(setq bash-completion-prog "${BASH}")' >test/.set-bash-prog.el
-       ${CASK} exec ert-runner -l test/.set-bash-prog.el
+       ${CASK} exec ert-runner  test/bash-completion-test.el
+.PHONY: unit
+
+integration: setup_bash
+       ${CASK} exec ert-runner -l $(setup_bash) -p integration 
test/bash-completion-integration-test.el
+.PHONY: integration
+
+ert: setup_bash
+       ${CASK} exec ert-runner -l $(setup_bash)
+.PHONY: ert
 
 compile:
        ${CASK} build
+.PHONY: compile
 
 clean-elc:
        ${CASK} clean-elc
+.PHONY: clean-elc
+
+setup_bash:
+       @echo '(setq bash-completion-prog "${BASH}")' >$(setup_bash)
+.PHONY: setup_bash
 
-.PHONY:        all test unit



reply via email to

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