diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-11-30 19:43:18 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-11-30 19:43:18 +0100 |
| commit | 2334c627bed20e87ab071d07ea5e4938f56b54b4 (patch) | |
| tree | 3cded7c1b83c61c99260499f952d04d6b06f6e0d /test | |
| parent | b572104164929b592cd980fad5afa9d216321ec1 (diff) | |
make: Improve test targets
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/test/Makefile b/test/Makefile index 11eec3a..1850c76 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,25 +1,21 @@ -include ../config.mk include ../default.mk +LOAD_PATH += -L ../lisp + test: lisp - @printf "Testing...\n" - @$(EMACS_BATCH) --eval "(progn\ - $$suppress_warnings\ - (load-file \"$(TOP)test/magit-tests.el\")\ - (ert-run-tests-batch-and-exit))" + @printf " Testing...\n" + @$(EMACS_BATCH) -l $(PKG)-tests -f ert-run-tests-batch-and-exit test-interactive: - @$(EMACS_INTR) --eval "(progn\ - (load-file \"$(TOP)test/magit-tests.el\")\ - (ert t))" + @$(EMACS_INTR) -l $(PKG)-tests --eval "(ert t)" -lisp: magit-tests.elc +lisp: $(addprefix ../lisp/,$(ELCS)) $(PKG)-tests.elc %.elc: %.el @printf "Compiling $<\n" - @$(EMACS_BATCH) --eval "(progn\ - (when (file-exists-p \"$@\")\ - (delete-file \"$@\"))\ - (setq with-editor-emacsclient-executable nil)\ - $$suppress_warnings)" \ - -f batch-byte-compile $< + @$(EMACS_BATCH) --funcall batch-byte-compile $< + +clean: + @printf " Cleaning test/*...\n" + @rm -rf $(PKG)-tests.elc |
