]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
ERT window should occupy the whole frame
[gnu-emacs-elpa] / Makefile
index f95e01eab941fed8afe3b275cc43f62125a866ee..ff1dc3e6fafe293a80ccd1079e66ff8afc6e95da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 EMACS=emacs
 CURL=curl --silent
-ERT_URL=http://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/ert.el
+ERT_URL=http://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/ert.el?h=emacs-24
 
 .PHONY: ert test test-batch
 
@@ -22,14 +22,13 @@ clean:
        @rm -rf company-*/ company-*.tar company-*.tar.bz2
 
 test:
-       ${EMACS} -Q -nw --eval "(add-to-list 'load-path \".\")" \
-       -l company-tests.el --eval "(ert t)"
+       ${EMACS} -Q -nw -L . -l company-tests.el \
+       --eval "(let (pop-up-windows) (ert t))"
 
 test-batch:
-       ${EMACS} -Q --batch --eval "(add-to-list 'load-path \".\")" \
-       -l company-tests.el --eval "(ert-run-tests-batch-and-exit \
-         '(not (tag interactive)))"
+       ${EMACS} -Q --batch -L . -l company-tests.el \
+       --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
 
 downloads:
-       ${EMACS} -Q --batch -l ert ||
+       ${EMACS} -Q --batch -l ert || \
        ${CURL} ${ERT_URL} > ert.el