From 2a6371296a5c85caf8af5041a19067aef69dae8c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 22 Aug 2019 23:47:45 -0700 Subject: Split installing and testing packages into separate make targets --- GNUmakefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'GNUmakefile') 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: -- cgit v1.2.3-54-g00ecf