branch: elpa/bash-completion
commit 2178030cdfce9c5a40435a918d27d33adb2268f2
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>
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