aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorFries <fries1234@protonmail.com>2023-07-24 05:36:47 +0000
committerEfraim Flashner <efraim@flashner.co.il>2023-10-18 11:35:39 +0300
commit839f16dbee6cd0a4511f0f40cc9edab857697f87 (patch)
tree428a45d1ea7e9e72949e8862282db084aaa0c76d /gnu/packages
parent299a223835f875c9fcb526a76bbe0b7f32cbefaf (diff)
downloadguix-839f16dbee6cd0a4511f0f40cc9edab857697f87.tar.gz
guix-839f16dbee6cd0a4511f0f40cc9edab857697f87.zip
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/rust.scm6
1 files changed, 6 insertions, 0 deletions
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