lilyp pushed a commit to branch master
in repository guix.

commit 3b134b014a77d1bea77e4867f78797db61b1a365
Author: Cayetano Santos <[email protected]>
AuthorDate: Thu Apr 10 11:25:22 2025 +0200

    gnu: emacs-emms: Activate tests and build info.
    
    * gnu/packages/emacs-xyz.scm (emacs-emms): Activate tests and build info.
    
    Change-Id: I232dd25a30156374d5e12f73948b26b6b274cc54
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/emacs-xyz.scm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6221198aad..518bca5c21 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4129,8 +4129,23 @@ light user interface.")
     (name "emacs-emms")
     (build-system emacs-build-system)
     (arguments
-     `(#:phases
+     `(#:tests? #t
+       #:test-command
+       (list "emacs" "-Q" "--batch"
+             "--eval=(cd \"test/\")"
+             "-l" "emms-tests.el"
+             "-l" "emms-info-native-tests.el"
+             "-l" "emms-info-native-ogg-tests.el"
+             "-l" "emms-info-native-mp3-tests.el"
+             "-l" "emms-info-native-flac-tests.el"
+             "-l" "emms-info-native-vorbis-tests.el"
+             "-f" "ert-run-tests-batch-and-exit")
+       #:phases
        (modify-phases %standard-phases
+         (add-before 'install 'make-info
+           (lambda _
+             (invoke "make" "-C" "doc" "all")
+             (rename-file "doc/emms.info" "emms.info")))
          (add-after 'unpack 'set-external-programs
            ;; Specify the absolute file names of the various programs
            ;; so that everything works out-of-the-box. (tinytag missing)
@@ -4174,6 +4189,7 @@ light user interface.")
                   (string-append "\"" vorbiscomment "\"")))
                (substitute* "emms-info-exiftool.el"
                  (("\"exiftool\"") (string-append "\"" exiftool "\"")))))))))
+    (native-inputs (list texinfo))
     (inputs
      (list emacs-emms-print-metadata
            alsa-utils

Reply via email to