From 98ae47776ef692c7292ebe2ef583ba3e3a0be933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vegard=20=C3=98ye?= Date: Mon, 21 Mar 2011 15:57:34 +0100 Subject: Add "y or n" prompt to "make emacs" rule Unless one answers "y" within two seconds, the tests are skipped. They can be run manually with `M-x evil-tests-run'. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fb85381..4f9bc22 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,10 @@ clean: .PHONY: emacs emacs: clean - emacs -Q -L . -l evil-tests.el --eval "(evil-mode 1)" --eval "(ert-run-tests-interactively t)" & + emacs -Q -L . -l evil-tests.el --eval "(evil-mode 1)" \ +--eval "(if (y-or-n-p-with-timeout \"Run tests? \" 2 nil) \ +(ert-run-tests-interactively t) \ +(message \"You can run the tests at any time with \`M-x evil-tests-run\'\"))" & .PHONY: term term: terminal -- cgit v1.0