guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/24: gnu: emacs-citar: Run tests.


From: guix-commits
Subject: 11/24: gnu: emacs-citar: Run tests.
Date: Wed, 15 Mar 2023 19:18:20 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 9b12dd9ddaf71afe6b37e92dc5715feb99d5a9c6
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed Mar 15 23:31:47 2023 +0100

    gnu: emacs-citar: Run tests.
    
    * gnu/packages/emacs-xyz.scm (emacs-citar)[arguments]: Run tests.
---
 gnu/packages/emacs-xyz.scm | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index dc5baf71c0..e8f0bf8d12 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21782,10 +21782,17 @@ automatically fetched from well-curated sources, and 
formatted as BibTeX.")
                 "186h6wbjwh7ws3jmc81wx2cv7gbppl2j3gwdq67crhml5xjc4fh7"))))
     (build-system emacs-build-system)
     (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-before 'build 'set-home
-                    (lambda _
-                      (setenv "HOME" "/tmp"))))))
+     (list
+      #:tests? #true
+      #:test-command #~(list "emacs" "--batch" "-L" "."
+                             "-l" "test/citar-test.el"
+                             "-l" "test/citar-file-test.el"
+                             "-l" "test/citar-format-test.el"
+                             "-f" "ert-run-tests-batch-and-exit")
+      #:phases #~(modify-phases %standard-phases
+                   (add-before 'build 'set-home
+                     (lambda _
+                       (setenv "HOME" "/tmp"))))))
     (propagated-inputs (list emacs-auctex
                              emacs-citeproc-el
                              emacs-embark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]