GNU bug report logs -
#77131
[PATCH emacs-team 00/51] Some test fixes.
Previous Next
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>
Bug is archived. No further changes may be made.
Full log
Message #98 received at 77131 <at> debbugs.gnu.org (full text, mbox):
* 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
This bug report was last modified 98 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.