mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add core-lib & core-lib-{buffers,package} unit tests + tasks
This commit is contained in:
8
Makefile
8
Makefile
@ -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.
|
||||
|
Reference in New Issue
Block a user