]> code.delx.au - gnu-emacs-elpa/blobdiff - Makefile
ERT window should occupy the whole frame
[gnu-emacs-elpa] / Makefile
index d49adf31e104a38190ee35686bc2d7a363b2f05c..ff1dc3e6fafe293a80ccd1079e66ff8afc6e95da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+EMACS=emacs
+CURL=curl --silent
+ERT_URL=http://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/ert.el?h=emacs-24
+
+.PHONY: ert test test-batch
+
 package: *.el
        @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \
        tar cjvf company-$$ver.tar.bz2 --mode 644 `git ls-files '*.el' | xargs`
@@ -8,9 +14,21 @@ elpa: *.el
        mkdir -p "$$dir"; \
        cp `git ls-files '*.el' | xargs` company-$$version; \
        echo "(define-package \"company\" \"$$version\" \
-       \"extensible inline text completion mechanism\")" \
+       \"Modular in-buffer completion framework\")" \
        > "$$dir"/company-pkg.el; \
        tar cvf company-$$version.tar --mode 644 "$$dir"
 
 clean:
        @rm -rf company-*/ company-*.tar company-*.tar.bz2
+
+test:
+       ${EMACS} -Q -nw -L . -l company-tests.el \
+       --eval "(let (pop-up-windows) (ert t))"
+
+test-batch:
+       ${EMACS} -Q --batch -L . -l company-tests.el \
+       --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
+
+downloads:
+       ${EMACS} -Q --batch -l ert || \
+       ${CURL} ${ERT_URL} > ert.el