Add unit-test framework & stubs

This commit is contained in:
Henrik Lissner 2017-02-03 19:17:09 -05:00
parent 4de4545929
commit 70a1fb52cc
4 changed files with 4 additions and 7 deletions

View file

@ -27,7 +27,10 @@ clean-elc:
@rm -fv init.elc
@find {core,modules} -type f -iname '*.elc' -exec rm \-fv {} \;
test:
@$(EMACS) --batch -l test/init.el -f 'doom!run-tests'
init.el:
@[ -f init.el ] || $(error No init.el file, please create one or copy init.example.el)
.PHONY: all
.PHONY: all test

View file

View file

@ -1,6 +0,0 @@
;;; test-helper.el
(require 'ert)
(provide 'test-helper)
;;; test-helper.el ends here