Permalink
Browse files

make test

  • Loading branch information...
1 parent 35c5ad0 commit 749ecb4bb12329f451a384fcfa1821a226a0e504 @sigma committed Mar 14, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 Makefile
View
@@ -14,6 +14,7 @@ MISC = README
EMACS = emacs
SITEFLAG = --no-site-file
EFLAGS =
+BATCH = $(EMACS) $(EFLAGS) $(SITEFLAG) -batch -q -L .
PREFIX = /usr/local
ELISPDIR = $(PREFIX)/share/emacs/site-lisp/$(PKGNAME)
@@ -32,14 +33,12 @@ autoloads: $(AUTODEF)
$(AUTODEF): $(PKGNAME)-auto.in $(SOURCE)
cp $(PKGNAME)-auto.in $(AUTODEF)
rm -f $(AUTODEF)c
- @$(EMACS) -q $(SITEFLAG) -batch -L . \
- -l $(PKGNAME)-auto \
+ @$(BATCH) -l $(PKGNAME)-auto \
-f gh-generate-autoloads \
$(shell pwd | sed -e 's|^/cygdrive/\([a-z]\)|\1:|')/$(AUTODEF) .
%.elc: %.el
- @$(EMACS) -q $(SITEFLAG) $(EFLAGS) -batch -L . \
- -f batch-byte-compile $<
+ @$(BATCH) -f batch-byte-compile $<
clean:
rm -f *~ $(TARGET) $(PKGNAME).info $(PKGNAME).html
@@ -81,3 +80,7 @@ docs: info html
docsclean:
rm -f doc/$(PKGNAME).info doc/$(PKGNAME).html
+
+test: lisp
+ @$(BATCH) -l tests/gh-tests.el -l tests/gh-gist-tests.el \
+ -f ert-run-tests-batch-and-exit

0 comments on commit 749ecb4

Please sign in to comment.