diff options
| author | Nathaniel Nicandro <nathanielnicandro@gmail.com> | 2019-09-18 23:08:37 -0500 |
|---|---|---|
| committer | gcv <vetoshev@gmail.com> | 2019-09-27 12:02:24 -0700 |
| commit | 7d3c966eec9ffcf3aea044fb70a82b8179a44de7 (patch) | |
| tree | bf051ae5cb83e9d5b7dd6c0dc1009bc750b02682 /Makefile | |
| parent | 519838e2647268567c086b77158a55b01feb7f6c (diff) | |
Add test framework
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9771ba8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +EMACS ?= emacs +ELFILES := perspective.el +ELCFILES = $(ELFILES:.el=.elc) + +all: test + +.PHONY: test +test: + $(EMACS) -nw -Q -batch -L . -l ert $(addprefix -l ,$(wildcard test/*.el)) \ + --eval "(ert-run-tests-batch-and-exit)" + +.PHONY: compile +compile: $(ELCFILES) + +$(ELCFILES): %.elc: %.el + $(EMACS) --batch -Q -L . -f batch-byte-compile $< |
