branch: elpa/popup commit 4e8824e18c2b1af3e912e0733bc4f9fba36dba05 Author: Tomohiro Matsuyama <t...@cx4a.org> Commit: Tomohiro Matsuyama <t...@cx4a.org>
Add some make rules for test. --- .gitignore | 1 + Makefile | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44f8384 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tests/ert.el diff --git a/Makefile b/Makefile index 418837a..63e2614 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,22 @@ EMACS=emacs +EMACS23=emacs23 + +.PHONY: test test-nw test-emacs23 test-emacs23-nw travis-ci + +test: + ${EMACS} -Q -L . -l tests/run-test.el + +test-nw: + ${EMACS} -Q -nw -L . -l tests/run-test.el + +test-emacs23: tests/ert.el + ${EMACS23} -Q -L . -l test/ert.el -l tests/run-test.el + +test-emacs23-nw: tests/ert.el + ${EMACS23} -Q -nw -L . -l test/ert.el -l tests/run-test.el travis-ci: - ${EMACS} --version ${EMACS} -batch -Q -l tests/run-test.el + +tests/ert.el: + wget "http://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/ert.el" -O $@