branch: externals/org-gnosis
commit 333b2fe76a0b3038e2c71d3c4b68fbafe835c8a0
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
makefile: Add test-db and use guix-shell.
---
Makefile | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index ac6c8d4e90..3d7eae7dad 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
.POSIX:
-.PHONY: all doc clean test test-parsing test-integration
+.PHONY: all doc clean test test-parsing test-db
.SUFFIXES: .el .elc
EMACS = emacs
@@ -16,12 +16,21 @@ doc: $(ORG)
--eval "(with-current-buffer (find-file \"$(ORG)\")
(org-texinfo-export-to-texinfo) (org-texinfo-export-to-info) (save-buffer))" \
--kill
-test: test-parsing test-integration
+test: test-parsing test-db
test-parsing:
- $(EMACS) --batch \
+ guix shell -m manifest.scm -- $(EMACS) --batch \
+ --eval "(add-to-list 'load-path \".\")" \
+ -l ert \
-l tests/org-gnosis-test-parsing.el \
-f ert-run-tests-batch-and-exit
+test-db:
+ guix shell -m manifest.scm -- $(EMACS) --batch \
+ --eval "(add-to-list 'load-path \".\")" \
+ -l ert \
+ -l tests/org-gnosis-test-db.el \
+ -f ert-run-tests-batch-and-exit
+
clean:
rm -f $(TEXI) $(INFO) *pkg* *autoloads*