Add core-lib & core-lib-{buffers,package} unit tests + tasks

This commit is contained in:
Henrik Lissner 2017-04-04 22:18:38 -04:00
parent 8b0184181d
commit acb7536e64
6 changed files with 199 additions and 1 deletions

View file

@ -1,7 +1,7 @@
# Ensure emacs always runs from this makefile's PWD
EMACS_FLAGS=--eval "(setq user-emacs-directory default-directory)"
EMACS=emacs --batch $(EMACS_FLAGS) -l core/core.el
TESTS=$(patsubst %,-l %, $(wildcard test/test-*.el))
# Tasks
all: install update autoloads
@ -33,6 +33,12 @@ clean:
clean-cache:
@$(EMACS) -f 'doom/clean-cache'
test: init.el
@$(EMACS) -f 'doom-initialize-autoloads' -l ert $(TESTS) -f ert-run-tests-batch-and-exit
test/%: init.el
@$(EMACS) -f 'doom-initialize-autoloads' -l ert -l $@.el -f ert-run-tests-batch-and-exit
# Syntactic sugar for bootstrapping modules. Allows: make bootstrap javascript
# See doom/bootstrap for more information.