From 333b2fe76a0b3038e2c71d3c4b68fbafe835c8a0 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 23 Feb 2026 09:16:50 +0200 Subject: makefile: Add test-db and use guix-shell. --- Makefile | 15 ++++++++++++--- 1 file 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* -- cgit v1.0