[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
261/469: gnu: Add rust-test-case-2.
From: |
guix-commits |
Subject: |
261/469: gnu: Add rust-test-case-2. |
Date: |
Tue, 25 Apr 2023 15:03:37 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 697d0d586d840bc1f8080328fbf1666fe612d0d4
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 a1674cc07b..029f1017e3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61631,8 +61631,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
@@ -61642,7 +61682,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
@@ -61652,16 +61691,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
- 239/469: gnu: Add rust-webp-0.2., (continued)
- 239/469: gnu: Add rust-webp-0.2., guix-commits, 2023/04/25
- 243/469: gnu: Add rust-exr-1., guix-commits, 2023/04/25
- 245/469: gnu: gdk-pixbuf: Adjust skipped failing tests., guix-commits, 2023/04/25
- 248/469: gnu: rust-console-0.15: Update to 0.15.5., guix-commits, 2023/04/25
- 250/469: gnu: Add rust-crossterm-winapi-0.9., guix-commits, 2023/04/25
- 241/469: gnu: Add rust-libwebp-sys-0.4., guix-commits, 2023/04/25
- 251/469: gnu: rust-ctrlc-3: Update to 3.2.5., guix-commits, 2023/04/25
- 257/469: gnu: rust-nix-0.26: Update to 0.26.2., guix-commits, 2023/04/25
- 259/469: gnu: rust-signal-hook-mio-0.2: Update to 0.2.3., guix-commits, 2023/04/25
- 260/469: gnu: rust-similar-2: Update to 2.2.1., guix-commits, 2023/04/25
- 261/469: gnu: Add rust-test-case-2.,
guix-commits <=
- 262/469: gnu: fd: Update to 8.7.0., guix-commits, 2023/04/25
- 263/469: gnu: Add rust-test-case-macros-2., guix-commits, 2023/04/25
- 268/469: gnu: Add rust-argmax-0.3., guix-commits, 2023/04/25
- 273/469: gnu: Remove rust-tokio-1.8., guix-commits, 2023/04/25
- 282/469: gnu: rust-env-logger-0.9: Update to 0.9.3., guix-commits, 2023/04/25
- 288/469: gnu: Add rust-if-addrs-sys-0.3., guix-commits, 2023/04/25
- 155/469: gnu: Add rust-ntest-proc-macro-helper-0.8., guix-commits, 2023/04/25
- 157/469: gnu: Remove rust-uint-0.4., guix-commits, 2023/04/25
- 159/469: gnu: Remove rust-tinyvec-0.3., guix-commits, 2023/04/25
- 254/469: gnu: Add rust-jemallocator-0.5., guix-commits, 2023/04/25