guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: emacs-ess: Fix build.


From: guix-commits
Subject: branch master updated: gnu: emacs-ess: Fix build.
Date: Thu, 11 Apr 2024 06:12:02 -0400

This is an automated email from the git hooks/post-receive script.

ngz pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new d564e04ded gnu: emacs-ess: Fix build.
d564e04ded is described below

commit d564e04dedbba18744f1071b48b09f190ef4d5ad
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Thu Apr 11 10:29:29 2024 +0200

    gnu: emacs-ess: Fix build.
    
    * gnu/packages/statistics.scm (emacs-ess)[arguments]<#:phases>: Re-instate
    DISABLE-ETESTS function, which properly disables some tests in the
    "ess-test-r-eval.el" file.
    
    Change-Id: I71a6683e9e561f03658f871cabd0cbb36c298199
---
 gnu/packages/statistics.scm | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index a55d931d12..ba8ff10059 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -6888,19 +6888,35 @@ Java package that provides routines for various 
statistical distributions.")
                              (((string-append "^\\(ert-deftest " test-name 
".*")
                                all)
                               (string-append all "(skip-unless nil)\n"))
-                             ...)))))
+                             ...))))
+                       (disable-etests  ;different test syntax
+                        (syntax-rules ()
+                          ((_ file ())
+                           (syntax-error "test names list must not be empty"))
+                          ((_ file (test-name ...))
+                           (emacs-batch-edit-file file
+                             '(progn
+                               (mapc (lambda (test)
+                                       (goto-char (point-min))
+                                       (search-forward
+                                        (format "etest-deftest %s " test))
+                                       (beginning-of-line)
+                                       (kill-sexp))
+                                     (list test-name ...))
+                               (basic-save-buffer)))))))
                     (disable-tests (list "test/ess-test-inf.el"
                                          "test/ess-test-r.el")
                                    ("ess--derive-connection-path"
                                     "ess-eval-line-test"
                                     "ess-eval-region-test"
                                     "ess-mock-remote-process"
-                                    "ess-r-eval-sink-freeze-test"
-                                    "ess-r-eval-ns-env-roxy-tracebug-test"
                                     "ess-r-load-ESSR-github-fetch-no"
                                     "ess-r-load-ESSR-github-fetch-yes"
                                     "ess-set-working-directory-test"
-                                    "ess-test-r-startup-directory")))))
+                                    "ess-test-r-startup-directory"))
+                    (disable-etests "test/ess-test-r-eval.el"
+                                    ("ess-r-eval-ns-env-roxy-tracebug-test"
+                                     "ess-r-eval-sink-freeze-test")))))
               (replace 'check
                 (lambda* (#:key tests? #:allow-other-keys)
                   (when tests? (invoke "make" "test"))))))))



reply via email to

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