guix-commits
[Top][All Lists]
Advanced

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

03/194: gnu: rust: Add make-ignore-test-list function.


From: guix-commits
Subject: 03/194: gnu: rust: Add make-ignore-test-list function.
Date: Tue, 3 Oct 2023 14:57:04 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 1201615a936f29170739fa9581b297c53f2ad9d1
Author: Fries <fries1234@protonmail.com>
AuthorDate: Mon Jul 24 05:36:47 2023 +0000

    gnu: rust: Add make-ignore-test-list function.
    
    A little helper function to make creating a list to ignore tests easier.
    
    * gnu/packages/rust.scm (make-ignore-test-list): New function.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/rust.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index f0e921375b..d5481ced23 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -743,6 +743,12 @@ safety and thread safety guarantees.")
         ;; for a precompiled library.
         (patches (search-patches "rust-1.70-fix-rustix-build.patch")))))))
 
+(define (make-ignore-test-list strs)
+  "Function to make creating a list to ignore tests a bit easier."
+  (map (lambda (str)
+    `((,str) (string-append "#[ignore]\n" ,str)))
+    strs))
+
 ;;; Note: Only the latest version of Rust is supported and tested.  The
 ;;; intermediate rusts are built for bootstrapping purposes and should not
 ;;; be relied upon.  This is to ease maintenance and reduce the time



reply via email to

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