aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-08-22 23:47:45 -0700
committerGravatar Tom Willemse2019-08-22 23:47:45 -0700
commit2a6371296a5c85caf8af5041a19067aef69dae8c (patch)
tree0e4770b7cafe1412b3eaea9e792a5637441409bc /GNUmakefile
parent58caf38935554d2bafc16080b6906fbe6902a72c (diff)
downloademacs-config-2a6371296a5c85caf8af5041a19067aef69dae8c.tar.gz
emacs-config-2a6371296a5c85caf8af5041a19067aef69dae8c.zip
Split installing and testing packages into separate make targets
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c584d2e..909ce87 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -16,16 +16,21 @@ package-oni-conf:
--funcall package-initialize \
--eval '(package-upload-file (car (file-expand-wildcards "oni-conf/dist/*.tar")))'
-test-%:
+install-%:
emacs --batch \
--load oni-package.el \
--funcall package-initialize \
--eval '(package-refresh-contents)' \
- --load ert \
- --load "test/$*-test.el" \
- --funcall package-initialize \
$(foreach DEP,$(DEPS),--eval "(package-install-file \"$(DEP).el\")") \
--eval "(package-install-file \"$*.el\")" \
+
+test-%: install-%
+ emacs --batch \
+ --load oni-package.el \
+ --funcall package-initialize \
+ --load ert \
+ --load "test/$*-test.el" \
+ --eval "(setq ert-batch-backtrace-right-margin nil)" \
--funcall ert-run-tests-batch-and-exit
clean: