aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVegard Øye <vegard_oye@hotmail.com>2011-05-16 22:42:15 +0200
committerVegard Øye <vegard_oye@hotmail.com>2011-05-16 22:42:15 +0200
commit95b27d58f4246c93701f4bf2f3ee71005a98c244 (patch)
tree7e320a25de5032ca85c087b13a4955d6d7cf5b8f /Makefile
parentd9e146432e9072bb43410c679681f7591a377a8d (diff)
Add test prompt to "make terminal"
The tests are run unless one answers "n" within two seconds, like with "make emacs".
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 52d6153..45ace41 100644
--- a/Makefile
+++ b/Makefile
@@ -43,4 +43,7 @@ emacs: clean
term: terminal
terminal: clean
- $(EMACS) -nw -Q -L . -l evil-tests.el --eval "(evil-mode 1)" --eval "(ert-run-tests-interactively t)"
+ $(EMACS) -nw -Q -L . -l evil-tests.el --eval "(evil-mode 1)" \
+--eval "(if (y-or-n-p-with-timeout \"Run tests? \" 2 t) \
+(ert-run-tests-interactively t) \
+(message \"You can run the tests at any time with \`M-x evil-tests-run\'\"))"