branch: externals/gnosis
commit 89009ef6f66b4c6c45f7b83ca01553adaeb9f836
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
makefile: Update tests and add guix shell support.
---
Makefile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 9766e09f57..ebdba9d0eb 100644
--- a/Makefile
+++ b/Makefile
@@ -3,15 +3,20 @@
.SUFFIXES: .el .elc
EMACS = emacs
+GUIX_SHELL ?= guix shell -m manifest.scm --
ORG := doc/gnosis.org
TEXI := doc/gnosis.texi
INFO := doc/gnosis.info
-TEST_FILES := tests/gnosis-test-algorithm.el
tests/gnosis-test-export-import.el tests/gnosis-test-dashboard.el
+TEST_FILES := tests/gnosis-test-algorithm.el \
+ tests/gnosis-test-export-import.el \
+ tests/gnosis-test-dashboard.el \
+ tests/gnosis-test-cloze.el \
+ tests/gnosis-test-bulk-link.el \
all: doc
doc: $(ORG)
- $(EMACS) --batch \
+ $(GUIX_SHELL) $(EMACS) --batch \
-Q \
--load org \
--eval "(with-current-buffer (find-file \"$(ORG)\")
(org-texinfo-export-to-texinfo) (org-texinfo-export-to-info) (save-buffer))" \
@@ -22,7 +27,7 @@ test:
rm -f *.elc
@for f in $(TEST_FILES); do \
echo "Running $$f..."; \
- $(EMACS) --batch \
+ $(GUIX_SHELL) $(EMACS) --batch \
-q \
--eval "(add-to-list 'load-path \"$(shell pwd)\")" \
--load $$f; \