[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
419/470: gnu: Add rust-test-case-2.
From: |
guix-commits |
Subject: |
419/470: gnu: Add rust-test-case-2. |
Date: |
Thu, 16 Mar 2023 03:02:28 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit c423ce498d99ba4e6137f305e25cfadf2dfdac73
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 16:40:50 2023 +0200
gnu: Add rust-test-case-2.
* gnu/packages/crates-io.scm (rust-test-case-2): New variable.
(rust-test-case-1): Inherit from rust-test-case-2.
---
gnu/packages/crates-io.scm | 52 ++++++++++++++++++++++++++++++++++++----------
1 file changed, 41 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ef57fcc705..16d8b923ce 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61444,8 +61444,48 @@ return values to @code{std::io::Result} to indicate
success or failure.")
streams.")
(license license:expat)))
+(define-public rust-test-case-2
+ (package
+ (name "rust-test-case")
+ (version "2.2.2")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "test-case" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1h4qymhy332lzgg79w696qfxg6wdab5birn8xvfgkczzgmdczmi1"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (("=([[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)" _
version)
+ (string-append "^" version)))))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; Not all files included.
+ #:cargo-inputs
+ (("rust-regex" ,rust-regex-1)
+ ("rust-test-case-macros" ,rust-test-case-macros-2))
+ #:cargo-development-inputs
+ (("rust-indexmap" ,rust-indexmap-1)
+ ("rust-insta" ,rust-insta-1)
+ ("rust-itertools" ,rust-itertools-0.10)
+ ("rust-linked-hash-map" ,rust-linked-hash-map-0.5)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-serde-yaml" ,rust-serde-yaml-0.8))))
+ (home-page "https://github.com/frondeus/test-case")
+ (synopsis "Procedural macro attribute for parametrized test cases")
+ (description
+ "This crate provides @code{#[test_case]} procedural macro attribute that
+generates multiple parametrized tests using one body with different input
+parameters. A test is generated for each data set passed in test_case
+attribute. Under the hood, all test cases that share same body are grouped
+into mod, giving clear and readable test results.")
+ (license license:expat)))
+
(define-public rust-test-case-1
(package
+ (inherit rust-test-case-2)
(name "rust-test-case")
(version "1.0.0")
(source
@@ -61455,7 +61495,6 @@ streams.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1j33njgyr4cjhil14va909sg8s6ahzpgcmiaigdg7g22ica6950r"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #false ;XXX: a single test fails, cannot skip it
#:cargo-inputs
@@ -61465,16 +61504,7 @@ streams.")
("rust-version-check" ,rust-version-check-0.9))
#:cargo-development-inputs
(("rust-insta" ,rust-insta-0.12)
- ("rust-lazy-static" ,rust-lazy-static-1))))
- (home-page "https://github.com/frondeus/test-case")
- (synopsis "Procedural macro attribute for parametrized test cases")
- (description
- "This crate provides @code{#[test_case]} procedural macro attribute that
-generates multiple parametrized tests using one body with different input
-parameters. A test is generated for each data set passed in test_case
-attribute. Under the hood, all test cases that share same body are grouped
-into mod, giving clear and readable test results.")
- (license license:expat)))
+ ("rust-lazy-static" ,rust-lazy-static-1))))))
(define-public rust-test-cert-gen-0.7
(package
- 373/470: gnu: rust-web-sys-0.3: Update to 0.3.61., (continued)
- 373/470: gnu: rust-web-sys-0.3: Update to 0.3.61., guix-commits, 2023/03/16
- 376/470: gnu: Add rust-zune-inflate-0.2., guix-commits, 2023/03/16
- 372/470: gnu: rust-wasm-bindgen-test-macro-0.3: Update to 0.3.34., guix-commits, 2023/03/16
- 378/470: gnu: Add rust-maybe-rayon-0.1., guix-commits, 2023/03/16
- 382/470: gnu: Add rust-const-fn-assert-0.1., guix-commits, 2023/03/16
- 383/470: gnu: Add rust-clap-complete-4., guix-commits, 2023/03/16
- 414/470: gnu: Add rust-lscolors-0.13., guix-commits, 2023/03/16
- 393/470: gnu: Remove rust-gl-generator-0.10., guix-commits, 2023/03/16
- 399/470: gnu: gdk-pixbuf: Remove extra inputs., guix-commits, 2023/03/16
- 418/470: gnu: rust-similar-2: Update to 2.2.1., guix-commits, 2023/03/16
- 419/470: gnu: Add rust-test-case-2.,
guix-commits <=
- 406/470: gnu: rust-console-0.15: Update to 0.15.5., guix-commits, 2023/03/16
- 410/470: gnu: rust-insta-1: Update to 1.28.0., guix-commits, 2023/03/16
- 423/470: gnu: Add rust-option-set-0.1., guix-commits, 2023/03/16
- 436/470: gnu: rust-anyhow-1: Update to 1.0.69., guix-commits, 2023/03/16
- 434/470: gnu: rust-gif-0.11: Remove duplicate definition., guix-commits, 2023/03/16
- 443/470: gnu: rust-ring-0.16: Remove pregenerated files., guix-commits, 2023/03/16
- 445/470: gnu: rust-ring-0.13: Remove pregenerated files., guix-commits, 2023/03/16
- 461/470: gnu: rust-pyo3-macros-backend-0.15: Update to 0.15.2., guix-commits, 2023/03/16
- 463/470: gnu: rust-pyo3-0.15: Update to 0.15.2., guix-commits, 2023/03/16
- 83/470: gnu: rust-dota-short-0.3: Update to 0.3.3., guix-commits, 2023/03/16