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>
This commit is contained in:
Fries 2023-07-24 05:36:47 +00:00 committed by Efraim Flashner
parent 299a223835
commit 839f16dbee
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -743,6 +743,12 @@ (define rust-1.70
;; 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