summary refs log tree commit diff
diff options
context:
space:
mode:
authorSuhail <suhail@bayesians.ca>2024-02-22 22:39:57 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2024-02-22 22:39:57 +0100
commit34ce59bb0668e75d40f42b89e36dc9af6f548e4c (patch)
tree3b43009b1b454d672465f2005ce9ec50588f24c3
parentc97de01740ad336efba5830def0907f3daa9c0b8 (diff)
downloadguix-34ce59bb0668e75d40f42b89e36dc9af6f548e4c.tar.gz
gnu: emacs-ox-tufte: Run tests.
* gnu/packages/emacs-xyz.scm (emacs-ox-tufte)[arguments]: Run tests.
[native-inputs]: Add EMACS-BUTTERCUP and EMACS-ELDEV.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Change-Id: I5773c512d298c9469da92343db6d53a45082aba6
-rw-r--r--gnu/packages/emacs-xyz.scm22
1 files changed, 21 insertions, 1 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cee7247e48..1cf03a8183 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -33576,8 +33576,28 @@ simple but powerful Org contents.")
        (sha256
         (base32 "15jfwrdawj8flgyfqhsfhdlnam6n5gzw5minnixwxyp69q5vxnpw"))))
     (build-system emacs-build-system)
+    (arguments
+     (list
+      #:include #~(cons "^src/" %default-include)
+      #:tests? #t
+      ;; <https://github.com/emacs-eldev/eldev/issues/99#issuecomment-1912637609>
+      #:test-command #~(list "eldev" "-X" "-dtTC" "test")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'configure-eldev
+            (lambda _
+              (setenv "HOME"
+                      (string-append (getcwd) "/.eldev"))
+              (with-output-to-file "Eldev-local"
+                (lambda _
+                  (format #t "~s"
+                          '(dolist (d (split-string (getenv
+                                                     "EMACSLOADPATH")
+                                                    ":" t))
+                                   (ignore-errors
+                                    (eldev-use-local-dependency d)))))))))))
+    (native-inputs (list emacs-buttercup emacs-eldev))
     (propagated-inputs (list emacs-org))
-    (arguments '(#:include (cons "^src/" %default-include)))
     (home-page "https://github.com/ox-tufte/ox-tufte")
     (synopsis "Tufte HTML Org mode export backend")
     (description