GNU bug report logs - #77131
[PATCH emacs-team 00/51] Some test fixes.

Previous Next

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>

Bug is archived. No further changes may be made.

Full log


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





This bug report was last modified 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.