Package: guix-patches;
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Thu, 20 Mar 2025 09:25:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To reply to this bug, email your comments to 77131 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 09:25:02 GMT) Full text and rfc822 format available.Nicolas Graves <ngraves <at> ngraves.fr>
:guix-patches <at> gnu.org
.
(Thu, 20 Mar 2025 09:25:02 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: guix-patches <at> gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH emacs-team 00/51] Some test fixes. Date: Thu, 20 Mar 2025 10:21:23 +0100
Some tests fixes, and moving some packages to a (gnu package emacs-build) (similar to the python one) module. Nicolas Graves (51): gnu: Add (gnu packages emacs-build) module. gnu: emacs-org-sidebar: Disable absent tests. gnu: emacs-magit-todos: Disable absent tests. gnu: Remove emacs-matrix-client. gnu: emacs-pcre2el: Update to 1.12-0.b4d846d. gnu: emacs-pcre2el: Skip failing tests. gnu: Add makel. gnu: Add makem-minimal. gnu: emacs-org-noter: Disable tests. gnu: emacs-gptel: Update to 0.9.8. gnu: notmuch: Update to 0.39. gnu: emacs-notmuch: Disable tests. gnu: emacs-orgit: Disable tests. gnu: emacs-flycheck-grammalecte: Disable tests. gnu: emacs-persp-mode: Fix tests. gnu: emacs-lsp-metals: Disable tests. gnu: emacs-git-email: Disable tests. gnu: emacs-ol-notmuch: Fix tests. gnu: emacs-spamfilter-el: Disable tests. gnu: emacs-semi-epg: Disable tests. gnu: emacs-bbdb-vcard: Skip failing tests. gnu: emacs-notmuch-maildir: Fix tests. gnu: emacs-notmuch-addr: Fix tests. gnu: emacs-lsp-docker: Disable tests. gnu: emacs-lsp-ui: Disable tests. gnu: emacs-mustache: Fix tests. gnu: emacs-lsp-treemacs: Disable tests. gnu: emacs-ripgrep: Fix tests. gnu: emacs-paren-face: Fix tests. gnu: emacs-lsp-java: Disable tests. gnu: emacs-polymode: Skip failing test. gnu: emacs-polymode-org: Skip failing tests. gnu: emacs-scala-mode: Fix tests. gnu: emacs-polymode-markdown: Disable tests. gnu: emacs-poly-noweb: Disable tests. gnu: emacs-tomelr: Fix tests. gnu: emacs-olivetti: Disable tests. gnu: emacs-sly: Skip failing test. gnu: emacs-pcmpl-args: Disable tests. gnu: emacs-minions: Fix tests. gnu: emacs-parseclj: Fix tests. gnu: emacs-cider: Fix tests. gnu: emacs-python-environment: Fix tests. gnu: emacs-parseedn: Fix tests. gnu: emacs-racket-mode: Fix tests. gnu: emacs-password-store: Fix tests. gnu: emacs-helm-pass: Disable tests. gnu: emacs-helm-org-rifle: Fix tests. gnu: emacs-helm-themes: Disable tests. gnu: emacs-org-recent-headings: Fix tests. gnu: emacs-pass: Disable tests. gnu/local.mk | 1 + gnu/packages/admin.scm | 2 +- gnu/packages/emacs-build.scm | 582 +++++++++++++ gnu/packages/emacs-xyz.scm | 844 +++++++------------ gnu/packages/guile-xyz.scm | 1 + gnu/packages/mail.scm | 5 +- gnu/packages/patches/makem-replace-git.patch | 66 ++ 7 files changed, 959 insertions(+), 542 deletions(-) create mode 100644 gnu/packages/emacs-build.scm create mode 100644 gnu/packages/patches/makem-replace-git.patch -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:02 GMT) Full text and rfc822 format available.Message #8 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 03/51] gnu: emacs-magit-todos: Disable absent tests. Date: Thu, 20 Mar 2025 11:08:11 +0100
* gnu/packages/emacs-xyz.scm (emacs-magit-todos)[source]: Delete Makefile and makem.sh to disable tests search, there are none. [arguments]{tests?}: Disable tests. --- gnu/packages/emacs-xyz.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index bd3f379910..b744d72333 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -30749,8 +30749,16 @@ (define-public emacs-magit-todos (file-name (git-file-name name version)) (sha256 (base32 - "0rjr5q73609bs8gx2h5lp7c7bk5nkplfqfd56ifwdrdzdfzn5khy")))) + "0rjr5q73609bs8gx2h5lp7c7bk5nkplfqfd56ifwdrdzdfzn5khy")) + (modules '((guix build utils))) + (snippet #~(begin + (delete-file-recursively "screenshots") + ;; Contents of makem package, but no tests. + (for-each delete-file + '("makem.sh" "Makefile")))))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; No tests in source. (propagated-inputs (list emacs-async emacs-dash -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:02 GMT) Full text and rfc822 format available.Message #11 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 02/51] gnu: emacs-org-sidebar: Disable absent tests. Date: Thu, 20 Mar 2025 11:08:10 +0100
* gnu/packages/emacs-xyz.scm (emacs-org-sidebar)[source]: Delete Makefile and makem.sh to disable tests. --- gnu/packages/emacs-xyz.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 670c298614..bd3f379910 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -12504,7 +12504,13 @@ (define-public emacs-org-sidebar (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1gccih9wgi31m59flljw4cphfyhlfcqbjih91gkcnldq5z7n83nj")))) + (base32 "1gccih9wgi31m59flljw4cphfyhlfcqbjih91gkcnldq5z7n83nj")) + (modules '((guix build utils))) + (snippet #~(begin + (delete-file-recursively "images") + ;; Contents of makem package, but no tests. + (for-each delete-file + '("makem.sh" "Makefile")))))) (build-system emacs-build-system) (propagated-inputs (list emacs-dash -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:03 GMT) Full text and rfc822 format available.Message #14 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 06/51] gnu: emacs-pcre2el: Skip failing tests. Date: Thu, 20 Mar 2025 11:08:14 +0100
* gnu/packages/emacs-xyz.scm (emacs-pcre2el): Skip failing tests. [arguments]: Add {test-command} and phase 'skip-failing-tests. [native-inputs]: Add emacs-ert-runner. --- gnu/packages/emacs-xyz.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 0f60e15d96..3f947888c7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -30718,6 +30718,20 @@ (define-public emacs-pcre2el (base32 "0h73d9f1zj74vjir2kiq4s2g5rai7b59z7da20kh862xnldfcxsx")))) (build-system emacs-build-system) + (arguments + (list + #:test-command #~(list "ert-runner" "-L" "." "pcre2el-tests.el") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'skip-failing-tests + (lambda _ + (let ((unexpected (list "017" "018" "125" "584" "585" "601" "690"))) + (substitute* "pcre2el-tests.el" + (((string-append "\\(ert-deftest rxt-pcre-test-00(" + (string-join unexpected "|") + ") .*") all) + (string-append all "(skip-unless nil)"))))))))) + (native-inputs (list emacs-ert-runner)) (home-page "https://github.com/joddie/pcre2el") (synopsis "Convert between PCRE, Emacs and rx regexp syntax") (description "@code{pcre2el} or @code{rxt} (RegeXp Translator or RegeXp -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:04 GMT) Full text and rfc822 format available.Message #17 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 04/51] gnu: Remove emacs-matrix-client. Date: Thu, 20 Mar 2025 11:08:12 +0100
* gnu/packages/emacs-xyz.scm (emacs-matrix-client): Delete variable. --- gnu/packages/emacs-xyz.scm | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index b744d72333..eb71be599b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -31598,41 +31598,6 @@ (define-public emacs-ov Emacs.") (license license:gpl3+))) -(define-public emacs-matrix-client - (let ((commit "d2ac55293c96d4c95971ed8e2a3f6f354565c5ed")) - (package - (name "emacs-matrix-client") - (version (git-version "0.0.0" "6" commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jgkamat/matrix-client-el") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1scfv1502yg7x4bsl253cpr6plml1j4d437vci2ggs764sh3rcqq")))) - (build-system emacs-build-system) - (propagated-inputs - (list emacs-a - emacs-anaphora - emacs-dash - emacs-esxml - emacs-f - emacs-frame-purpose - emacs-ht - emacs-ov - emacs-rainbow-identifiers - emacs-request - emacs-s - emacs-tracking)) - (home-page "https://github.com/jgkamat/matrix-client-el") - (synopsis "Matrix client for Emacs") - (description "@code{matrix-client} is a simple chat UI to Matrix.org -rooms. It also provides an API which allows Emacs to seamlessly create -RPC channels with users and other software.") - (license license:gpl3+)))) - (define-public emacs-sesman (package (name "emacs-sesman") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:06 GMT) Full text and rfc822 format available.Message #20 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 05/51] gnu: emacs-pcre2el: Update to 1.12-0.b4d846d. Date: Thu, 20 Mar 2025 11:08:13 +0100
* gnu/packages/emacs-xyz.scm (emacs-pcre2el): Update to 1.12-0.b4d846d. --- gnu/packages/emacs-xyz.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index eb71be599b..0f60e15d96 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -30702,20 +30702,21 @@ (define-public emacs-dired-rsync (license license:gpl3+))) (define-public emacs-pcre2el - (let ((commit "018531ba0cf8e2b28d1108136a0e031b6a45f1c1")) ;version bump + (let ((commit "b4d846d80dddb313042131cf2b8fbf647567e000") + (revision "0")) (package (name "emacs-pcre2el") - (version "1.12") + (version (git-version "1.12" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/joddie/pcre2el") - (commit version))) + (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 - "09mzgrxcxr0a4k45k469vj9yh5ld8pi6v6kph7wvjsjd71q9rj4s")))) + "0h73d9f1zj74vjir2kiq4s2g5rai7b59z7da20kh862xnldfcxsx")))) (build-system emacs-build-system) (home-page "https://github.com/joddie/pcre2el") (synopsis "Convert between PCRE, Emacs and rx regexp syntax") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:07 GMT) Full text and rfc822 format available.Message #23 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 09/51] gnu: emacs-org-noter: Disable tests. Date: Thu, 20 Mar 2025 11:08:17 +0100
* gnu/packages/emacs-xyz.scm (emacs-org-noter) [native-inputs]: Add testing inputs: emacs-buttercup, emacs-djvu, emacs-nov-el, emacs-org-roam, emacs-pdf-tools. [arguments]{tests?}: Disable tests. {test-command}: Define buttercup command. {phases}: Set HOME. --- gnu/packages/emacs-xyz.scm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3f947888c7..b76fa48bba 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -35993,8 +35993,22 @@ (define-public emacs-org-noter "modules/org-noter-org-roam.el" "modules/org-noter-pdf.el") #:exclude - #~(list "emacs-devel.el"))) - (native-inputs (list emacs-log4e emacs-with-simulated-input)) + #~(list "emacs-devel.el") + #:tests? #f ; Multiple failures with "Not at a drawer" + #:test-command + #~(list "buttercup" "-L" ".") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" (dirname (getcwd)))))))) + (native-inputs (list emacs-buttercup + emacs-djvu + emacs-log4e + emacs-nov-el + emacs-org-roam + emacs-pdf-tools + emacs-with-simulated-input)) (propagated-inputs (list emacs-org)) (home-page "https://github.com/org-noter/org-noter") (synopsis "Synchronized, Org-mode, document annotator") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:07 GMT) Full text and rfc822 format available.Message #26 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 01/51] gnu: Add (gnu packages emacs-build) module. Date: Thu, 20 Mar 2025 11:08:09 +0100
Move there packages* gnu/packages/emacs-xyz.scm (emacs-ansi, emacs-buttercup, emacs-compat, emacs-commander, emacs-dash, emacs-eldev, emacs-el-mock, emacs-ert-async, emacs-ert-expectations, emacs-ert-runner, emacs-f, emacs-package-lint, emacs-s, emacs-shut-up, emacs-undercover): Move variables... * gnu/packages/emacs-build.scm: ...here. --- gnu/packages/admin.scm | 2 +- gnu/packages/emacs-build.scm | 463 +++++++++++++++++++++++++++++++++++ gnu/packages/emacs-xyz.scm | 432 +------------------------------- gnu/packages/guile-xyz.scm | 1 + 4 files changed, 466 insertions(+), 432 deletions(-) create mode 100644 gnu/packages/emacs-build.scm diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 1a7a577332..cc6f42d2be 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -137,7 +137,7 @@ (define-module (gnu packages admin) #:use-module (gnu packages debian) #:use-module (gnu packages dns) #:use-module (gnu packages elf) - #:use-module (gnu packages emacs-xyz) ; for emacs-ert-runner + #:use-module (gnu packages emacs-build) ; for emacs-ert-runner #:use-module (gnu packages file) #:use-module (gnu packages flex) #:use-module (gnu packages fonts) diff --git a/gnu/packages/emacs-build.scm b/gnu/packages/emacs-build.scm new file mode 100644 index 0000000000..78dfc1ed5b --- /dev/null +++ b/gnu/packages/emacs-build.scm @@ -0,0 +1,463 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2025 Nicolas Graves <ngraves <at> ngraves.fr> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. + +(define-module (gnu packages emacs-build) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix build-system copy) + #:use-module (guix build-system emacs) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages emacs) + #:use-module (gnu packages linux) + #:use-module (gnu packages texinfo) + #:use-module (gnu packages version-control)) + +(define-public emacs-ansi + (let ((commit "2367fba7b3b2340364a30cd6de7f3eb6bb9898a3") + (revision "2")) + (package + (name "emacs-ansi") + (version (git-version "0.4.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rejeep/ansi.el") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1n7h6l4icm6lks3zpvd83j1fzrnspw19rmz7c96vy7pdh1y4v3p3")))) + (build-system emacs-build-system) + ;; Tests for emacs-ansi have a circular dependency with ert-runner, and + ;; therefore cannot be run + (arguments (list #:tests? #f)) + (home-page "https://github.com/rejeep/ansi.el") + (synopsis "Convert strings to ANSI") + (description "@code{emacs-ansi} defines functions that turns simple +strings to ANSI strings. Turning a string into an ANSI string can be to add +color to a text, add color in the background of a text or adding a style, such +as bold, underscore or italic.") + (license license:gpl3+)))) + +(define-public emacs-buttercup + (package + (name "emacs-buttercup") + (version "1.37") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jorgenschaefer/emacs-buttercup") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0gkw1lmy8ynralrs4xwqsd06ww09xk5yqjdgw4r5c0zhp5dxn4ky")))) + (build-system emacs-build-system) + (arguments + (list + #:test-command #~(list "make" "test") + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-bin + (lambda _ + (install-file "bin/buttercup" + (string-append #$output "/bin"))))))) + (home-page "https://github.com/jorgenschaefer/emacs-buttercup") + (synopsis "Behavior driven emacs lisp testing framework") + (description "Buttercup is a behavior-driven development framework for +testing Emacs Lisp code. It groups related tests so they can share +common set-up and tear-down code, and allows the programmer to \"spy\" on +functions to ensure they are called with the right arguments during testing.") + (license license:gpl3+))) + +(define-public emacs-compat + (package + (name "emacs-compat") + (version "30.0.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emacs-compat/compat") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "020rn3l2sn0vzfhx30k47jd2cgvsddk0zfbizgb68hbajcxqfsl4")))) + (build-system emacs-build-system) + (home-page "https://elpa.gnu.org/packages/compat.html") + (synopsis "Emacs Lisp compatibility library") + (description + "To allow for the usage of Emacs functions and macros that are defined +in newer versions of Emacs, @code{compat.el} provides definitions that +are installed ONLY if necessary. These reimplementations of functions +and macros are at least subsets of the actual implementations. Be +sure to read the documentation string to make sure. + +Not every function provided in newer versions of Emacs is provided +here. Some depend on new features from the core, others cannot be +implemented to a meaningful degree. The main audience for this +library are not regular users, but package maintainers. Therefore +commands and user options are usually not implemented here.") + (license license:gpl3+))) + +(define-public emacs-commander + (package + (name "emacs-commander") + (version "0.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rejeep/commander.el") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j6hhyzww7wfwk6bllbb5mk4hw4qs8hsgfbfdifsam9c6i4spm45")))) + (build-system emacs-build-system) + ;; Tests for emacs-commander have a circular dependency with ert-runner, and + ;; therefore cannot be run + (arguments (list #:tests? #f)) + (propagated-inputs + (list emacs-dash emacs-f emacs-s)) + (home-page "https://github.com/rejeep/commander.el") + (synopsis "Emacs command line parser") + (description "@code{emacs-commander} provides command line parsing for +Emacs.") + (license license:gpl3+))) + +(define-public emacs-dash + (package + (name "emacs-dash") + (version "2.19.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/magnars/dash.el") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0z6f8y1m9amhg427iz1d4xcyr6n0kj5w7kmiz134p320ixsdnzd8")))) + (build-system emacs-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-byte-compile-error-on-warn + (lambda _ + (substitute* "Makefile" + (("\\(setq byte-compile-error-on-warn t\\)") + "(setq byte-compile-error-on-warn nil)"))))))) + (home-page "https://github.com/magnars/dash.el") + (synopsis "Modern list library for Emacs") + (description "This package provides a modern list API library for Emacs.") + (license license:gpl3+))) + +(define-public emacs-eldev + (package + (name "emacs-eldev") + (version "1.11.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/emacs-eldev/eldev") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0sf8xyzblc0fs2d65jgcycavnzmrp1wg0sfr29gjkq1kvzyl7phb")))) + (build-system emacs-build-system) + (arguments + (list + #:test-command #~(list "./bin/eldev" "-p" "-dtTC" "test") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'prepare-for-tests + (lambda _ + (setenv "ELDEV_LOCAL" (getcwd)) + (make-file-writable "test/project-i/project-i-autoloads.el"))) + (add-after 'unpack 'skip-failing-tests + ;; FIXME: 2 tests are failing. Skip them for now. + (lambda _ + (delete-file "test/upgrade-self.el"))) + (add-after 'install 'install-eldev-executable + ;; This constructs the eldev executable from templates and + ;; installs it in the specified directory. + (lambda _ + (let ((bin (string-append #$output "/bin")) + (site-lisp (elpa-directory #$output))) + (mkdir-p bin) + (setenv "HOME" (getcwd)) + (invoke "./install.sh" bin) + (substitute* (string-append bin "/eldev") + ;; Point ELDEV_LOCAL to the installation directory so that + ;; eldev doesn't try to bootstrap itself from MELPA when + ;; invoked. + (("export ELDEV_EMACS.*" all) + (string-append "export ELDEV_LOCAL=" site-lisp "\n" all))))))))) + (native-inputs + (list texinfo)) ;for tests + (home-page "https://github.com/emacs-eldev/eldev/") + (synopsis "Emacs-based build tool for Elisp") + (description "Eldev (Elisp Development Tool) is an Emacs-based build tool, +targeted solely at Elisp projects. It is an alternative to Cask. Unlike +Cask, Eldev itself is fully written in Elisp and its configuration files are +also Elisp programs. For those familiar with the Java world, Cask can be seen +as a parallel to Maven — it uses project description, while Eldev is sort of a +parallel to Gradle — its configuration is a program on its own.") + (license license:gpl3+))) + +(define-public emacs-el-mock + (let ((commit "6cfbc9de8f1927295dca6864907fe4156bd71910") + (revision "1")) + (package + (name "emacs-el-mock") + (version (git-version "1.25.1" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rejeep/el-mock.el") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09c3a1771v6kliwj0bn953pxxyjlk6q9kp31cxcr0nraik7d0mhk")))) + (build-system emacs-build-system) + (native-inputs (list emacs-ert-runner + emacs-ert-expectations + emacs-undercover)) + (home-page "https://github.com/rejeep/el-mock.el") + (synopsis "Tiny mock and stub framework in Emacs Lisp") + (description + "Emacs Lisp Mock is a library for mocking and stubbing using readable +syntax. Most commonly Emacs Lisp Mock is used in conjunction with Emacs Lisp +Expectations, but it can be used in other contexts.") + (license license:gpl3+)))) + +(define-public emacs-ert-async + (package + (name "emacs-ert-async") + (version "0.1.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rejeep/ert-async.el") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hn9i405nfhjd1h9vnwj43nxbbz00khrwkjq0acfyxjaz1shfac9")))) + (build-system emacs-build-system) + (home-page "https://github.com/rejeep/ert-async.el") + (synopsis "Async support for ERT") + (description "This package allows ERT to work with asynchronous tests.") + (license license:gpl3+))) + +(define-public emacs-ert-expectations + (package + (name "emacs-ert-expectations") + (version "0.2") + (source + (origin + (method url-fetch) + (uri "https://www.emacswiki.org/emacs/download/ert-expectations.el") + (sha256 + (base32 + "0cwy3ilsid90abzzjb7ha2blq9kmv3gfp3icwwfcz6qczgirq6g7")))) + (build-system emacs-build-system) + (home-page "https://www.emacswiki.org/emacs/ert-expectations.el") + (synopsis "Simple unit test framework for Emacs Lisp") + (description "@code{emacs-ert-expectations} is a simple unit test +framework for Emacs Lisp to be used with @code{ert}.") + (license license:gpl3+))) + +(define-public emacs-ert-runner + (package + (name "emacs-ert-runner") + (version "0.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rejeep/ert-runner.el") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08gygn9fjank5gpi4v6ynrkn0jbknxbwsn7md4p9ndygdbmnkf98")))) + (build-system emacs-build-system) + (inputs + (list bash-minimal + emacs-ansi + emacs-commander + emacs-dash + emacs-f + emacs-s + emacs-shut-up)) + ;; Tests for ert-runner have a circular dependency with ecukes, and therefore + ;; cannot be run + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-executable + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (source-directory (string-append + (getenv "TMPDIR") "/source"))) + (substitute* "bin/ert-runner" + (("ERT_RUNNER=\"\\$\\(dirname \\$\\(dirname \\$0\\)\\)") + (string-append "ERT_RUNNER=\"" (elpa-directory out)))) + (install-file "bin/ert-runner" (string-append out "/bin")) + (wrap-program (string-append out "/bin/ert-runner") + (list "EMACSLOADPATH" ":" 'prefix + ;; Do not capture the transient source directory in + ;; the wrapper. + (delete source-directory + (string-split (getenv "EMACSLOADPATH") + #\:)))))))) + #:include (cons* "^reporters/.*\\.el$" %default-include))) + (home-page "https://github.com/rejeep/ert-runner.el") + (synopsis "Opinionated Ert testing workflow") + (description "@code{ert-runner} is a tool for Emacs projects tested +using ERT. It assumes a certain test structure setup and can therefore make +running tests easier.") + (license license:gpl3+))) +(define-public emacs-f + (package + (name "emacs-f") + (version "0.21.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rejeep/f.el") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ccrcfhqfbv9qff38sfym69mai7k7z89yndi6nip8wi5hpd2addc")))) + (build-system emacs-build-system) + (arguments (list #:tests? #f)) ; circular dependency on ert-runner + (propagated-inputs + (list emacs-s emacs-dash)) + (home-page "https://github.com/rejeep/f.el") + (synopsis "Emacs API for working with files and directories") + (description "This package provides an Emacs library for working with +files and directories.") + (license license:gpl3+))) + +(define-public emacs-package-lint + (package + (name "emacs-package-lint") + (version "0.24") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/purcell/package-lint") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qbzhpmwsgrp6z541jc1cy7jqr7ipdindwfji210279v2w6yrj1p")))) + (arguments + (list #:include #~(cons "^data/" %default-include) + #:tests? #f ; XXX: 8/92 tests failing + #:test-command #~(list "make" "test" "INIT_PACKAGES=t"))) + (build-system emacs-build-system) + (propagated-inputs (list emacs-compat)) + (home-page "https://github.com/purcell/package-lint") + (synopsis "Linting library for Elisp package authors") + (description + "This provides a list of issues with the Emacs package metadata of a file, +e.g., the package dependencies it requires. Checks will currently be enabled +only if a @samp{Package-Requires:} or @samp{Package-Version:} header is +present in the file.") + (license license:gpl3+))) + +(define-public emacs-s + (package + (name "emacs-s") + (version "1.13.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/magnars/s.el") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "010i92kagqbfis46n1ffa28fgkdkjp55n13b6f4izar5r7ixm6wx")))) + (build-system emacs-build-system) + (arguments + `(#:test-command '("./run-tests.sh"))) + (home-page "https://github.com/magnars/s.el") + (synopsis "Emacs string manipulation library") + (description "This package provides an Emacs library for manipulating +strings.") + (license license:gpl3+))) + +(define-public emacs-shut-up + (package + (name "emacs-shut-up") + (version "0.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cask/shut-up") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bnmrwrhra6cpc3jjgwwzrydj5ps7q2dlkh2ag4j7rkyv4dlk351")))) + (build-system emacs-build-system) + (arguments (list #:tests? #f)) ; circular dependency on ert-runner + (home-page "https://github.com/cask/shut-up") + (synopsis "Silence Emacs") + (description "This package silences most output of Emacs when running an +Emacs shell script.") + (license license:expat))) + +(define-public emacs-undercover + (package + (name "emacs-undercover") + (version "0.8.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sviridov/undercover.el") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qmvyy3xg5qi7ws8zcs934d6afsappr1a6pgfp796xpa9vdr4y6j")))) + (build-system emacs-build-system) + (propagated-inputs + (list emacs-dash emacs-shut-up)) + (home-page "https://github.com/sviridov/undercover.el") + (synopsis "Test coverage library for Emacs Lisp") + (description + "Undercover is a test coverage library for software written in Emacs +Lisp.") + (license license:expat))) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 0fc1bf90d3..670c298614 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -203,6 +203,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages djvu) #:use-module (gnu packages ebook) #:use-module (gnu packages emacs) + #:use-module (gnu packages emacs-build) #:use-module (gnu packages enchant) #:use-module (gnu packages fonts) #:use-module (gnu packages freedesktop) @@ -6549,33 +6550,6 @@ (define-public emacs-pdfgrep next matching page.") (license license:gpl3+)))) -(define-public emacs-dash - (package - (name "emacs-dash") - (version "2.19.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/magnars/dash.el") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0z6f8y1m9amhg427iz1d4xcyr6n0kj5w7kmiz134p320ixsdnzd8")))) - (build-system emacs-build-system) - (arguments - (list #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-byte-compile-error-on-warn - (lambda _ - (substitute* "Makefile" - (("\\(setq byte-compile-error-on-warn t\\)") - "(setq byte-compile-error-on-warn nil)"))))))) - (home-page "https://github.com/magnars/dash.el") - (synopsis "Modern list library for Emacs") - (description "This package provides a modern list API library for Emacs.") - (license license:gpl3+))) - (define-public emacs-bui (package (name "emacs-bui") @@ -7041,28 +7015,6 @@ (define-public emacs-undo-fu-session which is restored where possible when the file is loaded again.") (license license:gpl3+)))) -(define-public emacs-s - (package - (name "emacs-s") - (version "1.13.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/magnars/s.el") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "010i92kagqbfis46n1ffa28fgkdkjp55n13b6f4izar5r7ixm6wx")))) - (build-system emacs-build-system) - (arguments - `(#:test-command '("./run-tests.sh"))) - (home-page "https://github.com/magnars/s.el") - (synopsis "Emacs string manipulation library") - (description "This package provides an Emacs library for manipulating -strings.") - (license license:gpl3+))) - (define-public emacs-inflections (package (name "emacs-inflections") @@ -7296,29 +7248,6 @@ (define-public emacs-twittering-mode Emacs.") (license license:gpl2+))) -(define-public emacs-f - (package - (name "emacs-f") - (version "0.21.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rejeep/f.el") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0ccrcfhqfbv9qff38sfym69mai7k7z89yndi6nip8wi5hpd2addc")))) - (build-system emacs-build-system) - (arguments (list #:tests? #f)) ; circular dependency on ert-runner - (propagated-inputs - (list emacs-s emacs-dash)) - (home-page "https://github.com/rejeep/f.el") - (synopsis "Emacs API for working with files and directories") - (description "This package provides an Emacs library for working with -files and directories.") - (license license:gpl3+))) - (define-public emacs-fountain-mode (package (name "emacs-fountain-mode") @@ -7592,33 +7521,6 @@ (define-public emacs-gdscript-mode and code formatting.") (license license:gpl3+))) -(define-public emacs-el-mock - (let ((commit "6cfbc9de8f1927295dca6864907fe4156bd71910") - (revision "1")) - (package - (name "emacs-el-mock") - (version (git-version "1.25.1" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rejeep/el-mock.el") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "09c3a1771v6kliwj0bn953pxxyjlk6q9kp31cxcr0nraik7d0mhk")))) - (build-system emacs-build-system) - (native-inputs (list emacs-ert-runner - emacs-ert-expectations - emacs-undercover)) - (home-page "https://github.com/rejeep/el-mock.el") - (synopsis "Tiny mock and stub framework in Emacs Lisp") - (description - "Emacs Lisp Mock is a library for mocking and stubbing using readable -syntax. Most commonly Emacs Lisp Mock is used in conjunction with Emacs Lisp -Expectations, but it can be used in other contexts.") - (license license:gpl3+)))) - (define-public emacs-ecukes (package (name "emacs-ecukes") @@ -8246,50 +8148,6 @@ (define-public emacs-erc-status-sidebar @code{erc-track} does in the mode line, but in an alternative format.") (license license:gpl3+)))) -(define-public emacs-shut-up - (package - (name "emacs-shut-up") - (version "0.3.3") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/cask/shut-up") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1bnmrwrhra6cpc3jjgwwzrydj5ps7q2dlkh2ag4j7rkyv4dlk351")))) - (build-system emacs-build-system) - (arguments (list #:tests? #f)) ; circular dependency on ert-runner - (home-page "https://github.com/cask/shut-up") - (synopsis "Silence Emacs") - (description "This package silences most output of Emacs when running an -Emacs shell script.") - (license license:expat))) - -(define-public emacs-undercover - (package - (name "emacs-undercover") - (version "0.8.1") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/sviridov/undercover.el") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0qmvyy3xg5qi7ws8zcs934d6afsappr1a6pgfp796xpa9vdr4y6j")))) - (build-system emacs-build-system) - (propagated-inputs - (list emacs-dash emacs-shut-up)) - (home-page "https://github.com/sviridov/undercover.el") - (synopsis "Test coverage library for Emacs Lisp") - (description - "Undercover is a test coverage library for software written in Emacs -Lisp.") - (license license:expat))) - (define-public emacs-paren-face (package (name "emacs-paren-face") @@ -10319,24 +10177,6 @@ (define-public emacs-piem parts for convenience.") (license license:gpl3+))) -(define-public emacs-ert-expectations - (package - (name "emacs-ert-expectations") - (version "0.2") - (source - (origin - (method url-fetch) - (uri "https://www.emacswiki.org/emacs/download/ert-expectations.el") - (sha256 - (base32 - "0cwy3ilsid90abzzjb7ha2blq9kmv3gfp3icwwfcz6qczgirq6g7")))) - (build-system emacs-build-system) - (home-page "https://www.emacswiki.org/emacs/ert-expectations.el") - (synopsis "Simple unit test framework for Emacs Lisp") - (description "@code{emacs-ert-expectations} is a simple unit test -framework for Emacs Lisp to be used with @code{ert}.") - (license license:gpl3+))) - (define-public emacs-deferred (package (name "emacs-deferred") @@ -10530,36 +10370,6 @@ (define-public emacs-combobulate correct movement and editing than you would otherwise have.") (license license:gpl3+)))) -(define-public emacs-compat - (package - (name "emacs-compat") - (version "30.0.2.0") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/emacs-compat/compat") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "020rn3l2sn0vzfhx30k47jd2cgvsddk0zfbizgb68hbajcxqfsl4")))) - (build-system emacs-build-system) - (home-page "https://elpa.gnu.org/packages/compat.html") - (synopsis "Emacs Lisp compatibility library") - (description - "To allow for the usage of Emacs functions and macros that are defined -in newer versions of Emacs, @code{compat.el} provides definitions that -are installed ONLY if necessary. These reimplementations of functions -and macros are at least subsets of the actual implementations. Be -sure to read the documentation string to make sure. - -Not every function provided in newer versions of Emacs is provided -here. Some depend on new features from the core, others cannot be -implemented to a meaningful degree. The main audience for this -library are not regular users, but package maintainers. Therefore -commands and user options are usually not implemented here.") - (license license:gpl3+))) - (define-public emacs-company (package (name "emacs-company") @@ -21921,58 +21731,6 @@ (define-public emacs-evil-commentary lines, and @code{gc} to comment out the target of a motion.") (license license:gpl3+))) -(define-public emacs-ansi - (let ((commit "2367fba7b3b2340364a30cd6de7f3eb6bb9898a3") - (revision "2")) - (package - (name "emacs-ansi") - (version (git-version "0.4.1" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rejeep/ansi.el") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1n7h6l4icm6lks3zpvd83j1fzrnspw19rmz7c96vy7pdh1y4v3p3")))) - (build-system emacs-build-system) - ;; Tests for emacs-ansi have a circular dependency with ert-runner, and - ;; therefore cannot be run - (arguments (list #:tests? #f)) - (home-page "https://github.com/rejeep/ansi.el") - (synopsis "Convert strings to ANSI") - (description "@code{emacs-ansi} defines functions that turns simple -strings to ANSI strings. Turning a string into an ANSI string can be to add -color to a text, add color in the background of a text or adding a style, such -as bold, underscore or italic.") - (license license:gpl3+)))) - -(define-public emacs-commander - (package - (name "emacs-commander") - (version "0.7.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rejeep/commander.el") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1j6hhyzww7wfwk6bllbb5mk4hw4qs8hsgfbfdifsam9c6i4spm45")))) - (build-system emacs-build-system) - ;; Tests for emacs-commander have a circular dependency with ert-runner, and - ;; therefore cannot be run - (arguments (list #:tests? #f)) - (propagated-inputs - (list emacs-dash emacs-f emacs-s)) - (home-page "https://github.com/rejeep/commander.el") - (synopsis "Emacs command line parser") - (description "@code{emacs-commander} provides command line parsing for -Emacs.") - (license license:gpl3+))) - (define-public emacs-eglot (package (name "emacs-eglot") @@ -22159,59 +21917,6 @@ (define-public emacs-eldoc-box hidden.") (license license:gpl3+))) -(define-public emacs-ert-runner - (package - (name "emacs-ert-runner") - (version "0.8.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rejeep/ert-runner.el") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "08gygn9fjank5gpi4v6ynrkn0jbknxbwsn7md4p9ndygdbmnkf98")))) - (build-system emacs-build-system) - (inputs - (list bash-minimal - emacs-ansi - emacs-commander - emacs-dash - emacs-f - emacs-s - emacs-shut-up)) - ;; Tests for ert-runner have a circular dependency with ecukes, and therefore - ;; cannot be run - (arguments - `(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-after 'install 'install-executable - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (source-directory (string-append - (getenv "TMPDIR") "/source"))) - (substitute* "bin/ert-runner" - (("ERT_RUNNER=\"\\$\\(dirname \\$\\(dirname \\$0\\)\\)") - (string-append "ERT_RUNNER=\"" (elpa-directory out)))) - (install-file "bin/ert-runner" (string-append out "/bin")) - (wrap-program (string-append out "/bin/ert-runner") - (list "EMACSLOADPATH" ":" 'prefix - ;; Do not capture the transient source directory in - ;; the wrapper. - (delete source-directory - (string-split (getenv "EMACSLOADPATH") - #\:)))))))) - #:include (cons* "^reporters/.*\\.el$" %default-include))) - (home-page "https://github.com/rejeep/ert-runner.el") - (synopsis "Opinionated Ert testing workflow") - (description "@code{ert-runner} is a tool for Emacs projects tested -using ERT. It assumes a certain test structure setup and can therefore make -running tests easier.") - (license license:gpl3+))) - (define-public emacs-xtest (package (name "emacs-xtest") @@ -25793,60 +25498,6 @@ (define-public emacs-peg according to a parsing expression grammar.") (license license:gpl3+))) -(define-public emacs-eldev - (package - (name "emacs-eldev") - (version "1.11") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/emacs-eldev/eldev") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "144wf5im2fy1fv8jjik1s9zfyicphh2pi4dp6q4airrkiirmmr3m")))) - (build-system emacs-build-system) - (arguments - (list - #:test-command #~(list "./bin/eldev" "-p" "-dtTC" "test") - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'prepare-for-tests - (lambda _ - (setenv "ELDEV_LOCAL" (getcwd)) - (make-file-writable "test/project-i/project-i-autoloads.el"))) - (add-after 'unpack 'skip-failing-tests - ;; FIXME: 2 tests are failing. Skip them for now. - (lambda _ - (delete-file "test/upgrade-self.el"))) - (add-after 'install 'install-eldev-executable - ;; This constructs the eldev executable from templates and - ;; installs it in the specified directory. - (lambda _ - (let ((bin (string-append #$output "/bin")) - (site-lisp (elpa-directory #$output))) - (mkdir-p bin) - (setenv "HOME" (getcwd)) - (invoke "./install.sh" bin) - (substitute* (string-append bin "/eldev") - ;; Point ELDEV_LOCAL to the installation directory so that - ;; eldev doesn't try to bootstrap itself from MELPA when - ;; invoked. - (("export ELDEV_EMACS.*" all) - (string-append "export ELDEV_LOCAL=" site-lisp "\n" all))))))))) - (native-inputs - (list texinfo)) ;for tests - (home-page "https://github.com/emacs-eldev/eldev/") - (synopsis "Emacs-based build tool for Elisp") - (description "Eldev (Elisp Development Tool) is an Emacs-based build tool, -targeted solely at Elisp projects. It is an alternative to Cask. Unlike -Cask, Eldev itself is fully written in Elisp and its configuration files are -also Elisp programs. For those familiar with the Java world, Cask can be seen -as a parallel to Maven — it uses project description, while Eldev is sort of a -parallel to Gradle — its configuration is a program on its own.") - (license license:gpl3+))) - (define-public emacs-with-simulated-input (package (name "emacs-with-simulated-input") @@ -30024,35 +29675,6 @@ (define-public emacs-image+ image, rotate it, save modified images, and more.") (license license:gpl3+)))) -(define-public emacs-package-lint - (package - (name "emacs-package-lint") - (version "0.24") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/purcell/package-lint") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0qbzhpmwsgrp6z541jc1cy7jqr7ipdindwfji210279v2w6yrj1p")))) - (arguments - (list #:include #~(cons "^data/" %default-include) - #:tests? #f ; XXX: 8/92 tests failing - #:test-command #~(list "make" "test" "INIT_PACKAGES=t"))) - (build-system emacs-build-system) - (propagated-inputs (list emacs-compat)) - (home-page "https://github.com/purcell/package-lint") - (synopsis "Linting library for Elisp package authors") - (description - "This provides a list of issues with the Emacs package metadata of a file, -e.g., the package dependencies it requires. Checks will currently be enabled -only if a @samp{Package-Requires:} or @samp{Package-Version:} header is -present in the file.") - (license license:gpl3+))) - (define-public emacs-packed (package (name "emacs-packed") @@ -32030,38 +31652,6 @@ (define-public emacs-sesman targets the Emacs based IDEs (CIDER, ESS, Geiser, Robe, SLIME etc.)") (license license:gpl3+))) -(define-public emacs-buttercup - (package - (name "emacs-buttercup") - (version "1.37") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jorgenschaefer/emacs-buttercup") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0gkw1lmy8ynralrs4xwqsd06ww09xk5yqjdgw4r5c0zhp5dxn4ky")))) - (build-system emacs-build-system) - (arguments - (list - #:test-command #~(list "make" "test") - #:phases - #~(modify-phases %standard-phases - (add-after 'install 'install-bin - (lambda _ - (install-file "bin/buttercup" - (string-append #$output "/bin"))))))) - (home-page "https://github.com/jorgenschaefer/emacs-buttercup") - (synopsis "Behavior driven emacs lisp testing framework") - (description "Buttercup is a behavior-driven development framework for -testing Emacs Lisp code. It groups related tests so they can share -common set-up and tear-down code, and allows the programmer to \"spy\" on -functions to ensure they are called with the right arguments during testing.") - (license license:gpl3+))) - (define-public emacs-cort (package (name "emacs-cort") @@ -34800,26 +34390,6 @@ (define-public emacs-exwm-ss screensaver activation in EXWM.") (license (list license:gpl3+))))) -(define-public emacs-ert-async - (package - (name "emacs-ert-async") - (version "0.1.2") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/rejeep/ert-async.el") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0hn9i405nfhjd1h9vnwj43nxbbz00khrwkjq0acfyxjaz1shfac9")))) - (build-system emacs-build-system) - (home-page "https://github.com/rejeep/ert-async.el") - (synopsis "Async support for ERT") - (description "This package allows ERT to work with asynchronous tests.") - (license license:gpl3+))) - (define-public emacs-prodigy (package (name "emacs-prodigy") diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 30c8e84799..4cb5c3d48d 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -86,6 +86,7 @@ (define-module (gnu packages guile-xyz) #:use-module (gnu packages databases) #:use-module (gnu packages disk) #:use-module (gnu packages emacs) + #:use-module (gnu packages emacs-build) #:use-module (gnu packages emacs-xyz) #:use-module (gnu packages gawk) #:use-module (gnu packages gcc) -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:08 GMT) Full text and rfc822 format available.Message #29 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 10/51] gnu: emacs-gptel: Update to 0.9.8. Date: Thu, 20 Mar 2025 11:08:18 +0100
* gnu/packages/emacs-xyz.scm (emacs-gptel): Update to 0.9.8. --- gnu/packages/emacs-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index b76fa48bba..2c6c8c0174 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -579,7 +579,7 @@ (define-public emacs-geiser (define-public emacs-gptel (package (name "emacs-gptel") - (version "0.9.7") + (version "0.9.8") (source (origin (method git-fetch) (uri (git-reference @@ -588,7 +588,7 @@ (define-public emacs-gptel (file-name (git-file-name name version)) (sha256 (base32 - "15ny2d04ci04swmxikkyb7lsjr51gvxpr2cj02gwx88bidx34md2")))) + "1wjzv39pcg6lcmlw6yc4fdfln2cnshzaa0dxgkniq9dfznf7hnmd")))) (build-system emacs-build-system) (arguments (list -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:09 GMT) Full text and rfc822 format available.Message #32 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 08/51] gnu: Add makem-minimal. Date: Thu, 20 Mar 2025 11:08:16 +0100
* gnu/packages/emacs-build.scm (makem-minimal): New variable. --- gnu/local.mk | 1 + gnu/packages/emacs-build.scm | 59 +++++++++++++++++ gnu/packages/patches/makem-replace-git.patch | 66 ++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 gnu/packages/patches/makem-replace-git.patch diff --git a/gnu/local.mk b/gnu/local.mk index 417cbf080d..21d58b9bef 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1827,6 +1827,7 @@ dist_patch_DATA = \ %D%/packages/patches/mailutils-variable-lookup.patch \ %D%/packages/patches/mandoc-support-zstd-compression.patch \ %D%/packages/patches/make-impure-dirs.patch \ + %D%/packages/patches/makem-replace-git.patch \ %D%/packages/patches/mariadb-rocksdb-atomic-linking.patch \ %D%/packages/patches/mathjax-disable-webpack.patch \ %D%/packages/patches/mathjax-no-a11y.patch \ diff --git a/gnu/packages/emacs-build.scm b/gnu/packages/emacs-build.scm index aa917cc0ac..bc7c9ca708 100644 --- a/gnu/packages/emacs-build.scm +++ b/gnu/packages/emacs-build.scm @@ -521,3 +521,62 @@ (define-public makel (description "This package provides a makefile to help checking Emacs packages.") (license license:gpl3+)))) + +;; This is an alternative version patches for internal Guix tests. +;; The user-facing version is in emacs-xyz.scm +(define-public makem-minimal + (package + (name "makem") + (version "0.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/alphapapa/makem.sh") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xqwfxkxgpcm3k2m2shwkwrm4asl59ik8867c3k1iwfj8xzfp089")) + (modules '((guix build utils))) + (snippet #~(begin + (delete-file-recursively "images"))))) + (build-system emacs-build-system) + (arguments + (let ((patch (local-file + (car (search-patches "makem-replace-git.patch"))))) + (list + #:tests? #f + #:modules + '((guix build emacs-build-system) + (guix build utils) + (guix build emacs-utils) + (srfi srfi-26)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-file + (lambda* (#:key inputs #:allow-other-keys) + (invoke (search-input-file inputs "bin/patch") + "--force" "--no-backup-if-mismatch" + "-p1" "--input" #$patch))) + (add-after 'install 'install-bin + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (mkdir-p bin) + (install-file "makem.sh" bin)))) + (add-after 'install-bin 'wrap-script + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append #$output "/bin/makem.sh") + `("PATH" ":" prefix + ,(map dirname + (map (cut search-input-file inputs <>) + (list "bin/find" + "bin/grep" + "bin/sed"))))))))))) + (native-inputs (list patch)) + (inputs + (list coreutils-minimal grep sed util-linux)) ; for getopt + (home-page "https://github.com/alphapapa/makem.sh") + (synopsis "Makefile-like script to help checking Emacs packages") + (description "This package provides a Makefile-like script and a transient +menu for linting and testing Emacs packages.") + (license license:gpl3+))) diff --git a/gnu/packages/patches/makem-replace-git.patch b/gnu/packages/patches/makem-replace-git.patch new file mode 100644 index 0000000000..eced0618e3 --- /dev/null +++ b/gnu/packages/patches/makem-replace-git.patch @@ -0,0 +1,66 @@ +From 5396f4d6312b24eac79da2f70279df773443fd10 Mon Sep 17 00:00:00 2001 +From: Nicolas Graves <ngraves <at> ngraves.fr> +Date: Wed, 19 Mar 2025 13:02:47 +0100 +Subject: [PATCH] Replace git. + +--- + makem.sh | 34 +++++----------------------------- + 1 file changed, 5 insertions(+), 29 deletions(-) + +diff --git a/makem.sh b/makem.sh +index fd81e0f..4ec9577 100755 +--- a/makem.sh ++++ b/makem.sh +@@ -385,34 +385,13 @@ function byte-compile-file { + + # ** Files + +-function submodules { +- # Echo a list of submodules's paths relative to the repo root. +- # TODO: Parse with bash regexp instead of cut. +- git submodule status | awk '{print $2}' +-} +- +-function project-root { +- # Echo the root of the project (or superproject, if running from +- # within a submodule). +- root_dir=$(git rev-parse --show-superproject-working-tree) +- [[ $root_dir ]] || root_dir=$(git rev-parse --show-toplevel) +- [[ $root_dir ]] || error "Can't find repo root." +- +- echo "$root_dir" +-} +- + function files-project { + # Echo a list of files in project; or with $1, files in it +- # matching that pattern with "git ls-files". Excludes submodules. +- [[ $1 ]] && pattern="/$1" || pattern="." +- +- local excludes +- for submodule in $(submodules) +- do +- excludes+=(":!:$submodule") +- done +- +- git ls-files -- "$pattern" "${excludes[@]}" ++ # matching that pattern with "find". ++ if [[ $1 ]] ++ then find . -type f -name "$1" | sed 's|^\./||' ++ else find . -type f | sed 's|^\./||' ++ fi + } + + function dirs-project { +@@ -1223,9 +1202,6 @@ paths_temp+=("$package_initialize_file") + + trap cleanup EXIT INT TERM + +-# Change to project root directory first. +-cd "$(project-root)" +- + # Discover project files. + files_project_feature=($(files-project-feature)) + files_project_test=($(files-project-test)) +-- +2.48.1 + -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:09 GMT) Full text and rfc822 format available.Message #35 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 07/51] gnu: Add makel. Date: Thu, 20 Mar 2025 11:08:15 +0100
* gnu/packages/emacs-build.scm (makel): New variable. --- gnu/packages/emacs-build.scm | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/emacs-build.scm b/gnu/packages/emacs-build.scm index 78dfc1ed5b..aa917cc0ac 100644 --- a/gnu/packages/emacs-build.scm +++ b/gnu/packages/emacs-build.scm @@ -461,3 +461,63 @@ (define-public emacs-undercover "Undercover is a test coverage library for software written in Emacs Lisp.") (license license:expat))) + +(define-public makel + (let ((commit "2c831098c28a1f581b016532fa1f6e1c596b8ed1") + (revision "0")) + (package + (name "makel") + (version (git-version "0.8.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DamienCassou/makel") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0lmfl27rqh1530j8g4z2k6y6mc25n54bjkqriqdkw3703kliyvry")))) + (build-system copy-build-system) + (arguments + (list + ;; Some tests are currently broken, see + ;; https://github.com/DamienCassou/makel/issues/6 + #:tests? #f + #:modules + '((guix build copy-build-system) + (guix build utils) + (srfi srfi-1) + (srfi srfi-26) + (ice-9 ftw)) + #:install-plan ''(("makel.mk" "include/") + ("README.org" "share/docs/")) + #:phases + #~(modify-phases %standard-phases + (add-before 'install 'inject-deps + (lambda _ + (substitute* "makel.mk" + (("^MAKEL_LOAD_PATH=(.*)$" all rest) + (string-append + "MAKEL_LOAD_PATH=-L " + (string-join + (filter-map + (lambda (dir) + (let ((path (scandir dir))) + (and (eq? (length path) 3) ; removes emacs + (string-append dir "/" (last path))))) + (string-split (getenv "EMACSLOADPATH") #\:)) + " -L ") + " " rest))))) + (add-before 'install 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (with-directory-excursion "test" + (invoke "bash" "run-tests.sh")) + (format #f "Test suite not run.~%"))))))) + (native-inputs (list bash-minimal emacs-minimal)) + (inputs (list emacs-buttercup emacs-package-lint)) + (home-page "https://github.com/DamienCassou/makel") + (synopsis "Makefile to help checking Emacs packages") + (description "This package provides a makefile to help checking Emacs +packages.") + (license license:gpl3+)))) -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:10 GMT) Full text and rfc822 format available.Message #38 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 11/51] gnu: notmuch: Update to 0.39. Date: Thu, 20 Mar 2025 11:08:19 +0100
* gnu/packages/mail.scm (notmuch): Update to 0.39. --- gnu/packages/mail.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index d0de211158..5087cb971b 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1469,14 +1469,14 @@ (define-public notifymuch (define-public notmuch (package (name "notmuch") - (version "0.38.2") + (version "0.39") (source (origin (method url-fetch) (uri (string-append "https://notmuchmail.org/releases/notmuch-" version ".tar.xz")) (sha256 - (base32 "0zll3s39s065pl9228xpklkjklllkyb3bf1szh0fw0rbfkjfp0jj")))) + (base32 "1qq4yzpc704z9lqfpjvgyr8qna9rir7vpliz666sssy4fqmb12xq")))) (build-system gnu-build-system) (arguments (list -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:10 GMT) Full text and rfc822 format available.Message #41 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 12/51] gnu: emacs-notmuch: Disable tests. Date: Thu, 20 Mar 2025 11:08:20 +0100
* gnu/packages/mail.scm (emacs-notmuch)[arguments]{tests?}: Disable them. --- gnu/packages/mail.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 5087cb971b..70727bd896 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1534,6 +1534,7 @@ (define-public emacs-notmuch (arguments (list #:lisp-directory "emacs" + #:tests? #f ; Tests are run in the parent package. #:exclude #~(cons* "make-deps.el" "rstdoc.el" %default-exclude) #:include #~(cons* "notmuch-logo.svg" %default-include) #:phases -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:11 GMT) Full text and rfc822 format available.Message #44 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 13/51] gnu: emacs-orgit: Disable tests. Date: Thu, 20 Mar 2025 11:08:21 +0100
* gnu/packages/emacs-xyz.scm (emacs-orgit)[arguments]{tests?}: Disable them, since there are none. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 2c6c8c0174..f6690ce787 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -32735,6 +32735,8 @@ (define-public emacs-orgit (base32 "0yi73l7hm6x5pyalfmcv0mnklhc574xij35q8zkh6ahrnfbyv8ks")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; A makefile but no tests. (propagated-inputs (list emacs-dash emacs-magit)) (synopsis "Support for Org links to Magit buffers") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:12 GMT) Full text and rfc822 format available.Message #47 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 14/51] gnu: emacs-flycheck-grammalecte: Disable tests. Date: Thu, 20 Mar 2025 11:08:22 +0100
* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte) [arguments]{tests?}: Disable them, since they require being run from a tty. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f6690ce787..1ea5fe6aa1 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -9580,6 +9580,9 @@ (define-public emacs-flycheck-grammalecte (list #:include #~(cons "\\.py$" %default-include) #:emacs emacs-no-x ;need libxml support + #:tests? #f ; Tests require a tty. + #:test-command + #~(list "emacs" "-l" "test-home/classic.el" "example.org") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'specify-python-location -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:12 GMT) Full text and rfc822 format available.Message #50 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 15/51] gnu: emacs-persp-mode: Fix tests. Date: Thu, 20 Mar 2025 11:08:23 +0100
* gnu/packages/emacs-xyz.scm (emacs-persp-mode)[arguments]: Add {test-command} and phase 'tests-add-lexical-bindings. [native-inputs]: Add emacs-buttercup. --- gnu/packages/emacs-xyz.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 1ea5fe6aa1..93547a8d2a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -13933,6 +13933,18 @@ (define-public emacs-persp-mode (base32 "0y29vyvqdfxcpmzkyv2c6msbshx2f680izk2r0djrqj08ii8zmpr")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "buttercup" "-L" "." "-L" "tests") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'tests-add-lexical-bindings + (lambda _ + (substitute* "tests/test-persp-mode.el" + (("\\(require 'buttercup-init\\)" all) + (string-append ";;; -*- lexical-binding: t; -*-\n" + all)))))))) + (native-inputs (list emacs-buttercup)) (home-page "https://github.com/Bad-ptr/persp-mode.el") (synopsis "Switch between named \"perspectives\" shared among frames") (description -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:13 GMT) Full text and rfc822 format available.Message #53 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 17/51] gnu: emacs-git-email: Disable tests. Date: Thu, 20 Mar 2025 11:08:25 +0100
* gnu/packages/emacs-xyz.scm (emacs-git-email)[arguments]: Improve style. {tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9602926da7..144442a6c3 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -22880,10 +22880,12 @@ (define-public emacs-git-email (base32 "0p8c449nvn77bxmq1pinpw47lx6gj1k08yrxgi8bc8xrwkni9glp")))) (build-system emacs-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (add-before 'install 'makeinfo - (lambda _ - (invoke "makeinfo" "doc/git-email.texi")))))) + (list + #:tests? #f ; Makefile but no tests. + #:phases #~(modify-phases %standard-phases + (add-before 'install 'makeinfo + (lambda _ + (invoke "makeinfo" "doc/git-email.texi")))))) (inputs (list mu emacs-magit emacs-notmuch emacs-piem)) (native-inputs (list texinfo)) (license license:gpl3+) -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:14 GMT) Full text and rfc822 format available.Message #56 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 18/51] gnu: emacs-ol-notmuch: Fix tests. Date: Thu, 20 Mar 2025 11:08:26 +0100
* gnu/packages/emacs-xyz.scm (emacs-ol-notmuch) [arguments]{test-command}: Set it to fix tests. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 144442a6c3..176c1973f5 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -10090,6 +10090,9 @@ (define-public emacs-ol-notmuch "1xipph77bzxhd6jspxz0ppja4p0wzrkhp4y41nix3lcky3f7a6s1")) (file-name (git-file-name name version)))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "make" "check-declare"))) (propagated-inputs (list emacs-compat emacs-notmuch emacs-org)) (home-page "https://github.com/tarsius/ol-notmuch") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:14 GMT) Full text and rfc822 format available.Message #59 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 19/51] gnu: emacs-spamfilter-el: Disable tests. Date: Thu, 20 Mar 2025 11:08:27 +0100
* gnu/packages/emacs-xyz.scm (emacs-spamfilter-el) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 176c1973f5..0a60dd839a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -40560,6 +40560,7 @@ (define-public emacs-spamfilter-el (build-system emacs-build-system) (arguments (list + #:tests? #f ; No tests. #:phases #~(modify-phases %standard-phases (add-after 'unpack 'convert-encoding -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:15 GMT) Full text and rfc822 format available.Message #62 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 20/51] gnu: emacs-semi-epg: Disable tests. Date: Thu, 20 Mar 2025 11:08:28 +0100
* gnu/packages/emacs-xyz.scm (emacs-semi-epg) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 0a60dd839a..31dd2e72fb 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -42457,6 +42457,8 @@ (define-public emacs-semi-epg (base32 "13sfwv889i99l5zv10ibzm221wvwbp3m45nf4nsr0dhvln90zrjj")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; No tests. (propagated-inputs (list emacs-flim-lb)) (inputs (list emacs-bbdb-vcard)) (home-page "https://www.emacswiki.org/emacs/WanderLust") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:15 GMT) Full text and rfc822 format available.Message #65 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 16/51] gnu: emacs-lsp-metals: Disable tests. Date: Thu, 20 Mar 2025 11:08:24 +0100
* gnu/packages/emacs-xyz.scm (emacs-lsp-metals)[arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 93547a8d2a..9602926da7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33510,6 +33510,8 @@ (define-public emacs-lsp-metals (base32 "0whjz5vh9xf35nvr5an52d7qsf2ayr2pfwvr37qhz1rjg0rv2kzd")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; Makefile but no tests. (propagated-inputs (list emacs-dap-mode emacs-lsp-treemacs emacs-scala-mode)) (home-page "https://github.com/emacs-lsp/lsp-metals") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:16 GMT) Full text and rfc822 format available.Message #68 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 21/51] gnu: emacs-bbdb-vcard: Skip failing tests. Date: Thu, 20 Mar 2025 11:08:29 +0100
* gnu/packages/emacs-xyz.scm (emacs-bbdb-vcard)[arguments] {test-command}: Set it. {phases}: Add phase 'patch-tests to make it run. Some tests are failing. --- gnu/packages/emacs-xyz.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 31dd2e72fb..41d13cc70d 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -4464,6 +4464,21 @@ (define-public emacs-bbdb-vcard (base32 "1sr5kd2gvw1b4hl147yb60cgx6j730vdnpyr09p7vmpw65hzwlwm")))) (build-system emacs-build-system) + (arguments + (list + #:test-command #~(list "make" "test") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'patch-tests + (lambda _ + (substitute* "Makefile" + (("test: \\$\\(ELCS\\)") + "test:")) + ;; FIXME Unclear why these tests fail. + (substitute* "bbdb-vcard-tests.el" + (("\\(ert-deftest bbdb-vcard-test-(bad-1|rfc2426) .*" all) + (string-append all "(skip-unless nil)")))))))) + (native-inputs (list which)) (propagated-inputs (list emacs-bbdb)) (home-page "https://github.com/tohojo/bbdb-vcard") (synopsis -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:16 GMT) Full text and rfc822 format available.Message #71 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 23/51] gnu: emacs-notmuch-addr: Fix tests. Date: Thu, 20 Mar 2025 11:08:31 +0100
* gnu/packages/emacs-xyz.scm (emacs-notmuch-addr) [arguments]{test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8298d80dff..5bae1e8b77 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33673,6 +33673,9 @@ (define-public emacs-notmuch-addr (sha256 (base32 "1xr78yw679swbl1bcwhk5k6qj1l9zr9nyl34ry2bpdryi370zkkp")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "make" "check-declare"))) (propagated-inputs (list emacs-compat emacs-notmuch)) (synopsis "Improved address completion for Notmuch") (description -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:17 GMT) Full text and rfc822 format available.Message #74 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 22/51] gnu: emacs-notmuch-maildir: Fix tests. Date: Thu, 20 Mar 2025 11:08:30 +0100
* gnu/packages/emacs-xyz.scm (emacs-notmuch-maildir)[arguments] {test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 41d13cc70d..8298d80dff 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33716,6 +33716,9 @@ (define-public emacs-notmuch-maildir (sha256 (base32 "00b0jzb6k629bwnrci36wmi2s48cddqva3v8b0bwz2ik43ba8d0n")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "make" "check-declare"))) (propagated-inputs (list emacs-compat emacs-notmuch)) (home-page "https://git.sr.ht/~tarsius/notmuch-maildir") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:17 GMT) Full text and rfc822 format available.Message #77 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 25/51] gnu: emacs-lsp-ui: Disable tests. Date: Thu, 20 Mar 2025 11:08:33 +0100
* gnu/packages/emacs-xyz.scm (emacs-lsp-ui) [arguments]{test-command}: Set it. [native-inputs]: Add emacs-ert-runner, emacs-rustic. --- gnu/packages/emacs-xyz.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index dac0ac3dfa..3278fc9fc6 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33557,6 +33557,16 @@ (define-public emacs-lsp-ui (base32 "162bxyhiqz4saxvh6n3sdb9hx7px5wpy45wbfg5aiqzlqwgqyg42")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(apply list "ert-runner" "-L" "." + "-t" "'!no-win'" "-t" "'!org'" + (apply append + (map + (lambda (file) + (list "-l" file)) + (find-files "test" "\\.el")))))) + (native-inputs (list emacs-ert-runner emacs-rustic)) (propagated-inputs (list emacs-dash emacs-lsp-mode emacs-markdown-mode emacs-flycheck)) (home-page "https://github.com/emacs-lsp/lsp-ui") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:18 GMT) Full text and rfc822 format available.Message #80 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 27/51] gnu: emacs-lsp-treemacs: Disable tests. Date: Thu, 20 Mar 2025 11:08:35 +0100
* gnu/packages/emacs-xyz.scm (emacs-lsp-treemacs) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index ba84d2f59f..f2d611e89c 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33131,7 +33131,8 @@ (define-public emacs-lsp-treemacs dir)))))))) (build-system emacs-build-system) (arguments - (list #:include #~(cons "^icons\\/" %default-include))) + (list #:tests? #f ; No tests. + #:include #~(cons "^icons\\/" %default-include))) (propagated-inputs (list emacs-lsp-mode emacs-treemacs)) (home-page "https://github.com/emacs-lsp/lsp-treemacs") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:18 GMT) Full text and rfc822 format available.Message #83 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 26/51] gnu: emacs-mustache: Fix tests. Date: Thu, 20 Mar 2025 11:08:34 +0100
* gnu/packages/emacs-xyz.scm (emacs-mustache) [arguments]{test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3278fc9fc6..ba84d2f59f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -21290,6 +21290,10 @@ (define-public emacs-mustache (sha256 (base32 "1n2ymd92qpvsby6ms0l3kjhdzzc47rri2aiscc6bs07hm4mjpr9q")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "emacs" "-Q" "-batch" "-L" "." "-l" "mustache-tests" + "-f" "ert-run-tests-batch-and-exit"))) (propagated-inputs (list emacs-dash emacs-ht emacs-s)) (home-page "https://github.com/Wilfred/mustache.el") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:10:19 GMT) Full text and rfc822 format available.Message #86 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 28/51] gnu: emacs-ripgrep: Fix tests. Date: Thu, 20 Mar 2025 11:08:36 +0100
* gnu/packages/emacs-xyz.scm (emacs-ripgrep) [arguments]{test-command}: Set it. [native-inputs]: Add emacs-ert-runner. --- gnu/packages/emacs-xyz.scm | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f2d611e89c..dfd4945880 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -7926,15 +7926,16 @@ (define-public emacs-ripgrep (base32 "1a5rdpmvsgsjlc9sywism9pq7jd6n9qbcdsvpbfkq1npwhpifkbj")))) (build-system emacs-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - ;; The repository contains both ripgrep and projectile-ripgrep - ;; packages. The latter has been merged into projectile itself. - (add-after 'unpack 'delete-projectile-ripgrep - (lambda _ - (delete-file "projectile-ripgrep.el")))))) - (propagated-inputs - (list ripgrep)) + (list #:test-command #~(list "ert-runner") + #:phases + #~(modify-phases %standard-phases + ;; The repository contains both ripgrep and projectile-ripgrep + ;; packages. The latter has been merged into projectile itself. + (add-after 'unpack 'delete-projectile-ripgrep + (lambda _ + (delete-file "projectile-ripgrep.el")))))) + (native-inputs (list emacs-ert-runner)) + (propagated-inputs (list ripgrep)) (home-page "https://github.com/nlamirault/ripgrep.el") (synopsis "Search using ripgrep from inside Emacs") (description "@code{ripgrep} is an Emacs search package based on the @@ -33236,7 +33237,9 @@ (define-public emacs-dap-mode (base32 "177ira42l1p7zjb24c0vp4biip9sczlvbgzfahp4mhgfd9h8a6bx")))) (build-system emacs-build-system) (arguments - (list #:include #~(cons* "\\.png$" %default-include))) + (list #:include #~(cons* "\\.png$" %default-include) + #:test-command #~(list "ert-runner" "-L" "."))) + (native-inputs (list emacs-ert-runner)) (propagated-inputs (list emacs-bui emacs-lsp-docker -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:02 GMT) Full text and rfc822 format available.Message #89 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 34/51] gnu: emacs-polymode-markdown: Disable tests. Date: Thu, 20 Mar 2025 11:08:42 +0100
* gnu/packages/emacs-xyz.scm (emacs-polymode-markdown) [arguments]{tests?}: Disable them. {test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index b28d95581a..cc08c08d34 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -23853,6 +23853,9 @@ (define-public emacs-polymode-markdown (sha256 (base32 "1q4qq0ql08hxkdrd2aal03560k612my7bvnfpfij3g432hn0p7v6")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f ; XXX: FIXME Multiple failing tests. + #:test-command #~(list "make" "test"))) (propagated-inputs (list emacs-markdown-mode emacs-polymode)) (properties '((upstream-name . "poly-markdown"))) -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:02 GMT) Full text and rfc822 format available.Message #92 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 29/51] gnu: emacs-paren-face: Fix tests. Date: Thu, 20 Mar 2025 11:08:37 +0100
* gnu/packages/emacs-xyz.scm (emacs-paren-face) [arguments]{test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index dfd4945880..685ef35031 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -8178,6 +8178,8 @@ (define-public emacs-paren-face (sha256 (base32 "1j619m08lz6bg2kr4jm2rbyn2r8a9f1z124ashzjkiwky0mvs1v9")))) (build-system emacs-build-system) + (arguments + (list #:test-command #~(list "make" "check-declare"))) (propagated-inputs (list emacs-compat)) (home-page "https://github.com/tarsius/paren-face") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:03 GMT) Full text and rfc822 format available.Message #95 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 35/51] gnu: emacs-poly-noweb: Disable tests. Date: Thu, 20 Mar 2025 11:08:43 +0100
* gnu/packages/emacs-xyz.scm (emacs-poly-noweb) [arguments]{tests?}: Disable them. {test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index cc08c08d34..9e65dda8f9 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -23879,6 +23879,9 @@ (define-public emacs-poly-noweb (sha256 (base32 "1jl5h4nf10xd2gdlsxi6h2n3z5zh26ffcixn68xfp5q4zl34zk8p")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f ; XXX: FIXME Multiple failing tests. + #:test-command #~(list "make" "test"))) (propagated-inputs (list emacs-polymode)) (home-page "https://github.com/polymode/poly-noweb") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:04 GMT) Full text and rfc822 format available.Message #98 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 36/51] gnu: emacs-tomelr: Fix tests. Date: Thu, 20 Mar 2025 11:08:44 +0100
* gnu/packages/emacs-xyz.scm (emacs-tomelr) [arguments]{test-command}: Set it. {phases}: Add phase 'patch-tests to fix test run. --- gnu/packages/emacs-xyz.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9e65dda8f9..fb24751c04 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -41784,6 +41784,19 @@ (define-public emacs-tomelr (base32 "03iih7arjlfg8gdp4v2xglas9z519q1s11l28igr8l0m5y0pdrnk")) (file-name (git-file-name name version)))) (build-system emacs-build-system) + (arguments + (list + #:test-command + #~(list "emacs" "--batch" "-L" "test" "-l" "all-tests.el" + "-f" "ert-run-tests-batch-and-exit") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'patch-tests + (lambda _ + (setenv "HOME" (dirname (getcwd))) + (substitute* "test/all-tests.el" + (("\\(file-truename \\(vc-git-root default-directory\\)\\)") + (format #f "~s" (getcwd))))))))) (propagated-inputs (list emacs-map emacs-seq)) (home-page "https://github.com/kaushalmodi/tomelr/") (synopsis "Emacs-Lisp library for converting S-expressions to TOML") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:04 GMT) Full text and rfc822 format available.Message #101 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 31/51] gnu: emacs-polymode: Skip failing test. Date: Thu, 20 Mar 2025 11:08:39 +0100
* gnu/packages/emacs-xyz.scm (emacs-polymode) [arguments]{test-command}: Set it. {phases}: Add phase 'patch-tests to ignore some tests. --- gnu/packages/emacs-xyz.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a48302e617..80bab56b15 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -23748,6 +23748,17 @@ (define-public emacs-polymode ;; XXX: Cherry-picked from upstream, remove when bumping to 0.2.3. (search-patches "emacs-polymode-fix-lexical-variable-error.patch")))) (build-system emacs-build-system) + (arguments + (list + #:test-command #~(list "make" "test") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'patch-tests + (lambda _ + (substitute* "tests/define-tests.el" + (("\\(ert-deftest define/hooks-run-in-indirect-buffers \\(\\)" + all) + (string-append all "(skip-unless nil)")))))))) (home-page "https://github.com/polymode/polymode") (synopsis "Framework for multiple Emacs modes based on indirect buffers") (description -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:05 GMT) Full text and rfc822 format available.Message #104 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 24/51] gnu: emacs-lsp-docker: Disable tests. Date: Thu, 20 Mar 2025 11:08:32 +0100
* gnu/packages/emacs-xyz.scm (emacs-lsp-docker) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 5bae1e8b77..dac0ac3dfa 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33155,6 +33155,9 @@ (define-public emacs-lsp-docker (base32 "1ry8yxrb0172n1lnqi4av4wmqvhaqyh55ih2xs0hnd8b6ziywafq")))) (build-system emacs-build-system) + (arguments + ;; XXX: Tests are currently run interactively. See test/README.md. + (list #:tests? #f)) (propagated-inputs (list emacs-lsp-mode emacs-yaml)) (home-page "https://github.com/emacs-lsp/lsp-docker") (synopsis "Leverage LSP mode in Docker environment") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:05 GMT) Full text and rfc822 format available.Message #107 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 30/51] gnu: emacs-lsp-java: Disable tests. Date: Thu, 20 Mar 2025 11:08:38 +0100
* gnu/packages/emacs-xyz.scm (emacs-lsp-java) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 685ef35031..a48302e617 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -33514,6 +33514,8 @@ (define-public emacs-lsp-java (sha256 (base32 "0qw824vdqk92r8hrrjsi7pd00rw60wf5jfjk1x3nhs06hijs0x0s")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; No tests. (propagated-inputs (list emacs-dap-mode emacs-lsp-mode emacs-markdown-mode -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:05 GMT) Full text and rfc822 format available.Message #110 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 32/51] gnu: emacs-polymode-org: Skip failing tests. Date: Thu, 20 Mar 2025 11:08:40 +0100
* gnu/packages/emacs-xyz.scm (emacs-polymode-org) [arguments]{test-command}: Set it. {phases}: Add phase 'patch-tests to skip failing tests. --- gnu/packages/emacs-xyz.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 80bab56b15..82b8c8e009 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -23920,6 +23920,17 @@ (define-public emacs-polymode-org (sha256 (base32 "1srnwcsn2bh8gqzxixkhffk7gbnk66kd4dgvxbnps5nxqc6v0qhc")))) (build-system emacs-build-system) + (arguments + (list + #:test-command #~(list "make" "test") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'patch-tests + (lambda _ + (substitute* "tests/poly-org-tests.el" + (("\\(ert-deftest poly-org/change-spans \\(\\)" + all) + (string-append all "(skip-unless nil)")))))))) (propagated-inputs (list emacs-polymode)) (properties '((upstream-name . "poly-org"))) -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:06 GMT) Full text and rfc822 format available.Message #113 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 33/51] gnu: emacs-scala-mode: Fix tests. Date: Thu, 20 Mar 2025 11:08:41 +0100
* gnu/packages/emacs-xyz.scm (emacs-scala-mode) [arguments]{test-command}: Set it. [native-inputs]: Add emacs-ert-runner. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 82b8c8e009..b28d95581a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -11102,6 +11102,9 @@ (define-public emacs-scala-mode (sha256 (base32 "1072lsin7dxadc0xyhy42wd0cw549axbbd4dy95wfmfcc1xbzjwv")))) (build-system emacs-build-system) + (arguments + (list #:test-command #~(list "ert-runner"))) + (native-inputs (list emacs-ert-runner)) (home-page "https://github.com/hvesalai/emacs-scala-mode") (synopsis "Emacs major mode for Scala") (description -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:07 GMT) Full text and rfc822 format available.Message #116 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 37/51] gnu: emacs-olivetti: Disable tests. Date: Thu, 20 Mar 2025 11:08:45 +0100
* gnu/packages/emacs-xyz.scm (emacs-olivetti) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index fb24751c04..31ba6b68da 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -6937,6 +6937,8 @@ (define-public emacs-olivetti (sha256 (base32 "0q1z07z0nkvzplmsqni25hqhv81x3r7f1xahjjkskmllrhksz0bh")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; Linting but not testing. (home-page "https://github.com/rnkn/olivetti") (synopsis "Emacs minor mode for a nice writing environment") (description "This package provides an Emacs minor mode that puts writing -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:08 GMT) Full text and rfc822 format available.Message #119 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 38/51] gnu: emacs-sly: Skip failing test. Date: Thu, 20 Mar 2025 11:08:46 +0100
* gnu/packages/emacs-xyz.scm (emacs-sly) [arguments]: Improve style. {phases}: Add phase patch-tests to ignore a single failing test. [native-inputs]: Add sbcl. --- gnu/packages/emacs-xyz.scm | 75 ++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 31ba6b68da..377917d5f5 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17486,42 +17486,47 @@ (define-public emacs-sly "15nyr02ykkws4q79jcmxcawddg8sgq9v5l8k7jv7gg3hnpzxjlb2")))) (build-system emacs-build-system) (native-inputs - (list texinfo)) + (list sbcl texinfo)) (arguments - `(#:include (cons* "^contrib\\/" "^lib\\/" "^slynk\\/" %default-include) - #:phases - ;; The package provides autoloads. - (modify-phases %standard-phases - (delete 'make-autoloads) - (add-before 'install 'install-doc - (lambda* (#:key outputs #:allow-other-keys) - (let* ((out (assoc-ref outputs "out")) - (info-dir (string-append out "/share/info")) - (doc-dir (string-append out "/share/doc/" - ,name "-" ,version)) - (doc-files '( ;; "doc/sly-refcard.pdf" ; See sly-refcard.pdf below. - "README.md" "NEWS.md" "PROBLEMS.md" - "CONTRIBUTING.md"))) - (with-directory-excursion "doc" - (substitute* "Makefile" - (("infodir=/usr/local/info") - (string-append "infodir=" info-dir)) - ;; Don't rebuild contributors.texi since we are not in - ;; the git repo. - (("contributors.texi: Makefile texinfo-tabulate.awk") - "contributors.texi:")) - (invoke "make" "html/index.html") - (invoke "make" "sly.info") - ;; TODO: We need minimal texlive with "preprint" package - ;; (for fullpage.sty). (invoke "make" "sly-refcard.pdf") - (install-file "sly.info" info-dir) - (copy-recursively "html" (string-append doc-dir "/html"))) - (for-each (lambda (f) - (install-file f doc-dir) - (delete-file f)) - doc-files) - (delete-file-recursively "doc") - #t)))))) + (list + #:include #~(cons* "^contrib\\/" "^lib\\/" "^slynk\\/" %default-include) + #:phases + #~(modify-phases %standard-phases + (delete 'make-autoloads) ; The package provides autoloads. + (add-before 'install 'install-doc + (lambda _ + (let* ((info-dir (string-append #$output "/share/info")) + (doc-dir (string-append #$output "/share/doc/" + #$name "-" #$version)) + (doc-files '( ;; "doc/sly-refcard.pdf" ; See sly-refcard.pdf below. + "README.md" "NEWS.md" "PROBLEMS.md" + "CONTRIBUTING.md"))) + (with-directory-excursion "doc" + (substitute* "Makefile" + (("infodir=/usr/local/info") + (string-append "infodir=" info-dir)) + ;; Don't rebuild contributors.texi since we are not in + ;; the git repo. + (("contributors.texi: Makefile texinfo-tabulate.awk") + "contributors.texi:")) + (invoke "make" "html/index.html") + (invoke "make" "sly.info") + ;; TODO: We need minimal texlive with "preprint" package + ;; (for fullpage.sty). (invoke "make" "sly-refcard.pdf") + (install-file "sly.info" info-dir) + (copy-recursively "html" (string-append doc-dir "/html"))) + (for-each (lambda (f) + (install-file f doc-dir) + (delete-file f)) + doc-files) + (delete-file-recursively "doc")))) + (add-before 'check 'patch-tests + (lambda _ + (setenv "HOME" (dirname (getcwd))) + (substitute* "test/sly-stickers-tests.el" + (("\ +\\(define-sly-ert-test stickers-when-invalid-dont-stick .*" all) + (string-append all " (skip-unless nil)\n")))))))) (home-page "https://github.com/joaotavora/sly") (synopsis "Sylvester the Cat's Common Lisp IDE") (description -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:08 GMT) Full text and rfc822 format available.Message #122 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 39/51] gnu: emacs-pcmpl-args: Disable tests. Date: Thu, 20 Mar 2025 11:08:47 +0100
* gnu/packages/emacs-xyz.scm (emacs-pcmpl-args) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 377917d5f5..4c39a8590c 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -40074,6 +40074,8 @@ (define-public emacs-pcmpl-args (base32 "19xwwpfcf0l9jh7xixyjd5adivj27jw00zvxb7n1240k5p332pzi")) (file-name (git-file-name name version)))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; No tests. (home-page "https://github.com/JonWaltman/pcmpl-args.el") (synopsis "Enhanced shell command completion") (description -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:08 GMT) Full text and rfc822 format available.Message #125 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 40/51] gnu: emacs-minions: Fix tests. Date: Thu, 20 Mar 2025 11:08:48 +0100
* gnu/packages/emacs-xyz.scm (emacs-minions) [arguments]{test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 4c39a8590c..f5c67fb7be 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -2275,6 +2275,9 @@ (define-public emacs-minions (sha256 (base32 "1rinshdxln1wvzf7by8gq9wiqgcqy406k5jl1f86jd17b3wv5bxx")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "make" "check-declare"))) (propagated-inputs (list emacs-compat emacs-dash)) (home-page "https://github.com/tarsius/minions") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:09 GMT) Full text and rfc822 format available.Message #128 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 41/51] gnu: emacs-parseclj: Fix tests. Date: Thu, 20 Mar 2025 11:08:49 +0100
* gnu/packages/emacs-xyz.scm (emacs-parseclj) [arguments]{test-command}: Set it. [native-inputs]: Add emacs-eldev. --- gnu/packages/emacs-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f5c67fb7be..267c4ee4b5 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -38419,6 +38419,10 @@ (define-public emacs-parseclj (sha256 (base32 "1iz7qbsq4whmb3iqy777jlm47chjp62313hc6nfcp0lfqsanmcmv")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "eldev" "--use-emacsloadpath" "-dtT" "-p" "test"))) + (native-inputs (list emacs-eldev)) (propagated-inputs (list emacs-a)) (home-page "https://cider.mx") (synopsis "Clojure parser for Emacs Lisp") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:11:09 GMT) Full text and rfc822 format available.Message #131 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 42/51] gnu: emacs-cider: Fix tests. Date: Thu, 20 Mar 2025 11:08:50 +0100
* gnu/packages/emacs-xyz.scm (emacs-cider)[arguments]: Improve style. {test-command}: Set it. {phases}: Add phase 'skip-failing-tests. --- gnu/packages/emacs-xyz.scm | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 267c4ee4b5..b9266dd437 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17411,17 +17411,24 @@ (define-public emacs-cider (base32 "02lilk85a7h9wxxvxr6k69p12wslbl9xp3jkcbdn11078fwhif6j")))) (build-system emacs-build-system) (arguments - '(#:include (cons* "^lein\\.sh$" "^clojure\\.sh$" %default-include) - #:exclude ;don't exclude 'cider-test.el' - '("^\\.dir-locals\\.el$" "^test/") - #:phases - ;; XXX: file "test/cider-tests.el" contains a bogus "/bin/command" - ;; string, and `patch-el-files' phase chokes on it (even though the - ;; file is excluded from installation). Remove the phase altogether - ;; since there is no "/bin/executable" to replace in the code base - ;; anyway. - (modify-phases %standard-phases - (delete 'patch-el-files)))) + (list + #:include #~(cons* "^lein\\.sh$" "^clojure\\.sh$" %default-include) + #:exclude ;don't exclude 'cider-test.el' + #~(list "^\\.dir-locals\\.el$" "^test/") + #:test-command + #~(list "eldev" "--use-emacsloadpath" "-dtT" "-p" "test") + #:phases + ;; XXX: file "test/cider-tests.el" contains a bogus "/bin/command" + ;; string, and `patch-el-files' phase chokes on it (even though the + ;; file is excluded from installation). Remove the phase altogether + ;; since there is no "/bin/executable" to replace in the code base + ;; anyway. + #~(modify-phases %standard-phases + (delete 'patch-el-files) + (add-before 'check 'skip-failing-tests + (lambda _ ;; Require network. + (delete-file "test/cider-jar-tests.el")))))) + (native-inputs (list emacs-buttercup emacs-eldev)) (propagated-inputs (list emacs-clojure-mode emacs-parseedn -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:02 GMT) Full text and rfc822 format available.Message #134 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 43/51] gnu: emacs-python-environment: Fix tests. Date: Thu, 20 Mar 2025 11:08:51 +0100
* gnu/packages/emacs-xyz.scm (emacs-python-environment) [arguments]{test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index b9266dd437..cebad173c6 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -11650,6 +11650,9 @@ (define-public emacs-python-environment (sha256 (base32 "0q6bib9nr6xiq6npzbngyfcjk87yyvwzq1zirr3z1h5wadm34lsk")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "emacs" "--batch" "-f" "ert-run-tests-batch-and-exit"))) (propagated-inputs (list emacs-deferred)) (home-page "https://github.com/tkf/emacs-python-environment") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:02 GMT) Full text and rfc822 format available.Message #137 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 44/51] gnu: emacs-parseedn: Fix tests. Date: Thu, 20 Mar 2025 11:08:52 +0100
* gnu/packages/emacs-xyz.scm (emacs-parseedn) [arguments]{test-command}: Set it. [native-inputs]: Add emacs-eldev. --- gnu/packages/emacs-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index cebad173c6..ac254be614 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -38406,6 +38406,10 @@ (define-public emacs-parseedn (sha256 (base32 "0b2jralm5lm4z4lpkn8ygzfga67xsalaszc8gqqv36khmz2mrckc")))) (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "eldev" "--use-emacsloadpath" "-dtT" "-p" "test"))) + (native-inputs (list emacs-eldev)) (propagated-inputs (list emacs-a emacs-parseclj)) (home-page "https://cider.mx") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:03 GMT) Full text and rfc822 format available.Message #140 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 45/51] gnu: emacs-racket-mode: Fix tests. Date: Thu, 20 Mar 2025 11:08:53 +0100
* gnu/packages/emacs-xyz.scm (emacs-racket-mode) [arguments]{test-command}: Set it. {phases}: Add phase 'pre-check and skip failing tests. --- gnu/packages/emacs-xyz.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index ac254be614..a31809a61f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -28089,7 +28089,18 @@ (define-public emacs-racket-mode (build-system emacs-build-system) (arguments (list - #:include #~(list "\\.el$" "\\.rkt$"))) + #:include #~(list "\\.el$" "\\.rkt$") + #:test-command #~(list "make" "test") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" (dirname (getcwd))) + (substitute* "test/racket-tests.el" + (("\\(ert-deftest racket-tests/(repl|run) .*" all) + (string-append all "(skip-unless nil)")))))))) + (native-inputs + (list racket)) (propagated-inputs (list emacs-faceup emacs-paredit emacs-pos-tip emacs-s)) (home-page "https://www.racket-mode.com/") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:03 GMT) Full text and rfc822 format available.Message #143 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 46/51] gnu: emacs-password-store: Fix tests. Date: Thu, 20 Mar 2025 11:08:54 +0100
* gnu/packages/emacs-xyz.scm (emacs-password-store) [arguments]{test-command}: Set it. --- gnu/packages/emacs-xyz.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a31809a61f..6c31f8f9ec 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -24751,6 +24751,7 @@ (define-public emacs-password-store (build-system emacs-build-system) (arguments (list + #:test-command #~(list "make" "test") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'extract-el-file -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:04 GMT) Full text and rfc822 format available.Message #146 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 47/51] gnu: emacs-helm-pass: Disable tests. Date: Thu, 20 Mar 2025 11:08:55 +0100
* gnu/packages/emacs-xyz.scm (emacs-helm-pass) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 6c31f8f9ec..37cdf5f460 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -29729,6 +29729,9 @@ (define-public emacs-helm-pass (base32 "19w24isddzamkikq17vbv3y7ha22i7wc09d2nqw1j0qwhrrfkng9")))) (build-system emacs-build-system) + (arguments + ;; There's a test dir, but it's only for dev environment. + (list #:tests? #f)) (propagated-inputs (list emacs-helm emacs-password-store)) (home-page "https://github.com/emacs-helm/helm-pass") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:04 GMT) Full text and rfc822 format available.Message #149 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 48/51] gnu: emacs-helm-org-rifle: Fix tests. Date: Thu, 20 Mar 2025 11:08:56 +0100
* gnu/packages/emacs-xyz.scm (emacs-helm-org-rifle) [arguments]{test-command}: Set it. [native-inputs]: Add emacs-buttercup. --- gnu/packages/emacs-xyz.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 37cdf5f460..00de41d3c0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -20083,6 +20083,10 @@ (define-public emacs-helm-org-rifle (base32 "0pm6va26kadjvbai4qsnjc2bk379w2nk6h3b5f0c2yv3q5na0p49")))) (build-system emacs-build-system) + (arguments + (list #:test-command #~(list "buttercup" "-L" "."))) + (native-inputs + (list emacs-buttercup)) (propagated-inputs (list emacs-dash emacs-f emacs-helm emacs-org emacs-s)) (home-page "https://github.com/alphapapa/helm-org-rifle") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:06 GMT) Full text and rfc822 format available.Message #152 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 51/51] gnu: emacs-pass: Disable tests. Date: Thu, 20 Mar 2025 11:08:59 +0100
* gnu/packages/emacs-xyz.scm (emacs-pass) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 96d81cf0dd..82890dfc70 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -24846,6 +24846,15 @@ (define-public emacs-pass (sha256 (base32 "0jc8j421mlflspg24jvrqc2n3y5n3cpk3hjy560il8g36xi1049p")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f ; Tests require a tty. + #:test-command + #~(apply list "emacs" + (append + (apply append + (map (lambda (file) (list "-l" file)) + (find-files "." "\\.el"))) + (list "-f" "ert-run-tests-batch-and-exit"))))) (propagated-inputs (list emacs-password-store emacs-f)) (home-page "https://github.com/NicolasPetton/pass") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:07 GMT) Full text and rfc822 format available.Message #155 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 49/51] gnu: emacs-helm-themes: Disable tests. Date: Thu, 20 Mar 2025 11:08:57 +0100
* gnu/packages/emacs-xyz.scm (emacs-helm-themes) [arguments]{tests?}: Disable them. --- gnu/packages/emacs-xyz.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 00de41d3c0..648d852d30 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -37603,6 +37603,8 @@ (define-public emacs-helm-themes (base32 "1p62gg8nnb6kmb9mk66230p0ap0zwwzhzdxr3j34z5ls574vr6s7")))) (build-system emacs-build-system) + (arguments + (list #:tests? #f)) ; No tests despite Makefile. (propagated-inputs (list emacs-helm)) (home-page "https://github.com/emacsorphanage/helm-themes") (synopsis "Emacs theme selection with Helm interface") -- 2.48.1
guix-patches <at> gnu.org
:bug#77131
; Package guix-patches
.
(Thu, 20 Mar 2025 10:13:07 GMT) Full text and rfc822 format available.Message #158 received at 77131 <at> debbugs.gnu.org (full text, mbox):
From: Nicolas Graves <ngraves <at> ngraves.fr> To: 77131 <at> debbugs.gnu.org Cc: Nicolas Graves <ngraves <at> ngraves.fr> Subject: [PATCH 50/51] gnu: emacs-org-recent-headings: Fix tests. Date: Thu, 20 Mar 2025 11:08:58 +0100
* gnu/packages/emacs-xyz.scm (emacs-org-recent-headings) [source]: Remove makem script. [arguments]{phases}: Add phase 'inject-makem. [native-inputs]: Add makem-minimal. --- gnu/packages/emacs-xyz.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 648d852d30..96d81cf0dd 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -25316,8 +25316,19 @@ (define-public emacs-org-recent-headings (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "1y11rlnhi36lzhc1cagninv6hlcwbvj88xfr0g0xzpbzy7hys021")))) + (base32 "1y11rlnhi36lzhc1cagninv6hlcwbvj88xfr0g0xzpbzy7hys021")) + ;; Contents of makem package, but no tests. + (snippet #~(for-each delete-file '("makem.sh" "Makefile"))))) (build-system emacs-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'inject-makem + (lambda* (#:key inputs #:allow-other-keys) + (symlink (search-input-file inputs "/bin/makem.sh") + "makem.sh")))))) + (native-inputs + (list makem-minimal)) (propagated-inputs (list emacs-dash emacs-frecency emacs-helm emacs-org emacs-s)) (home-page "https://github.com/alphapapa/org-recent-headings") -- 2.48.1
Liliana Marie Prikler <liliana.prikler <at> gmail.com>
:Nicolas Graves <ngraves <at> ngraves.fr>
:Message #163 received at 77131-done <at> debbugs.gnu.org (full text, mbox):
From: Liliana Marie Prikler <liliana.prikler <at> gmail.com> To: Nicolas Graves <ngraves <at> ngraves.fr>, andrew <at> trop.in, csantosb <at> inventati.org, divya <at> subvertising.org, ian <at> retrospec.tv, cox.katherine.e+guix <at> gmail.com Cc: 77131-done <at> debbugs.gnu.org Subject: Re: [Nicolas Graves via Guix-patches via] [bug#77131] [PATCH emacs-team 00/51] Some test fixes. Date: Fri, 21 Mar 2025 18:59:03 +0100
Hi, Am Donnerstag, dem 20.03.2025 um 23:04 +0100 schrieb Nicolas Graves: > Nicolas Graves (51): > gnu: Add (gnu packages emacs-build) module. Reworded slightly to honour our ChangeLog format. > gnu: emacs-org-sidebar: Disable absent tests. > gnu: emacs-magit-todos: Disable absent tests. > gnu: Remove emacs-matrix-client. > gnu: emacs-pcre2el: Update to 1.12-0.b4d846d. > gnu: emacs-pcre2el: Skip failing tests. > gnu: Add makel. > gnu: Add makem-minimal. > gnu: emacs-org-noter: Disable tests. > gnu: emacs-gptel: Update to 0.9.8. > gnu: notmuch: Update to 0.39. > gnu: emacs-notmuch: Disable tests. > gnu: emacs-orgit: Disable tests. > gnu: emacs-flycheck-grammalecte: Disable tests. > gnu: emacs-persp-mode: Fix tests. > gnu: emacs-lsp-metals: Disable tests. > gnu: emacs-git-email: Disable tests. > gnu: emacs-ol-notmuch: Fix tests. > gnu: emacs-spamfilter-el: Disable tests. > gnu: emacs-semi-epg: Disable tests. > gnu: emacs-bbdb-vcard: Skip failing tests. > gnu: emacs-notmuch-maildir: Fix tests. > gnu: emacs-notmuch-addr: Fix tests. > gnu: emacs-lsp-docker: Disable tests. > gnu: emacs-lsp-ui: Disable tests. > gnu: emacs-mustache: Fix tests. > gnu: emacs-lsp-treemacs: Disable tests. > gnu: emacs-ripgrep: Fix tests. > gnu: emacs-paren-face: Fix tests. > gnu: emacs-lsp-java: Disable tests. > gnu: emacs-polymode: Skip failing test. > gnu: emacs-polymode-org: Skip failing tests. > gnu: emacs-scala-mode: Fix tests. > gnu: emacs-polymode-markdown: Disable tests. > gnu: emacs-poly-noweb: Disable tests. > gnu: emacs-tomelr: Fix tests. > gnu: emacs-olivetti: Disable tests. > gnu: emacs-sly: Skip failing test. > gnu: emacs-pcmpl-args: Disable tests. > gnu: emacs-minions: Fix tests. > gnu: emacs-parseclj: Fix tests. > gnu: emacs-cider: Fix tests. > gnu: emacs-python-environment: Fix tests. > gnu: emacs-parseedn: Fix tests. > gnu: emacs-racket-mode: Fix tests. > gnu: emacs-password-store: Fix tests. > gnu: emacs-helm-pass: Disable tests. > gnu: emacs-helm-org-rifle: Fix tests. > gnu: emacs-helm-themes: Disable tests. > gnu: emacs-org-recent-headings: Fix tests. > gnu: emacs-pass: Disable tests. Pushed to emacs-team. Cheers
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.