summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <public@thanosapollo.org>2026-02-23 09:16:50 +0200
committerThanos Apollo <public@thanosapollo.org>2026-02-23 09:16:50 +0200
commit333b2fe76a0b3038e2c71d3c4b68fbafe835c8a0 (patch)
tree2e222993a0471f6fd27398188a7e7cd9fc1adbb4
parent19363adaed437d330adb95ba564193f77ea1b392 (diff)
makefile: Add test-db and use guix-shell.
-rw-r--r--Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ac6c8d4..3d7eae7 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*