[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
366/379: gnu: rust-ring-0.16: Enable tests.
From: |
guix-commits |
Subject: |
366/379: gnu: rust-ring-0.16: Enable tests. |
Date: |
Thu, 29 Jun 2023 12:35:26 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit f45f100478d17cc8f0ae4dcd58edde448ddbc6a8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 22 22:25:41 2023 +0300
gnu: rust-ring-0.16: Enable tests.
* gnu/packages/crates-io.scm (rust-ring-0.16)[source]: Add a patch with
the missing test file.
[arguments]: Don't skip tests.
* gnu/packages/patches/rust-ring-0.16-test-files.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
---
gnu/local.mk | 1 +
gnu/packages/crates-io.scm | 6 +--
.../patches/rust-ring-0.16-test-files.patch | 54 ++++++++++++++++++++++
3 files changed, 58 insertions(+), 3 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 1925bc6ecb..319a5e3c50 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1889,6 +1889,7 @@ dist_patch_DATA =
\
%D%/packages/patches/rustc-1.54.0-src.patch \
%D%/packages/patches/rust-1.64-fix-riscv64-bootstrap.patch \
%D%/packages/patches/rust-ring-0.16-missing-files.patch \
+ %D%/packages/patches/rust-ring-0.16-test-files.patch \
%D%/packages/patches/i3status-rust-enable-unstable-features.patch \
%D%/packages/patches/rust-ndarray-remove-blas-src-dep.patch \
%D%/packages/patches/rust-ndarray-0.13-remove-blas-src.patch \
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d19534b254..49303cc972 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -52098,7 +52098,8 @@ Digital Signature Algorithm} (ECDSA).")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1z682xp7v38ayq9g9nkbhhfpj6ygralmlx7wdmsfv8rnw99cylrh"))
- (patches (search-patches "rust-ring-0.16-missing-files.patch"))
+ (patches (search-patches "rust-ring-0.16-missing-files.patch"
+ "rust-ring-0.16-test-files.patch"))
(modules '((guix build utils)))
(snippet
'(begin
@@ -52112,8 +52113,7 @@ Digital Signature Algorithm} (ECDSA).")
(format #t "")))))))
(build-system cargo-build-system)
(arguments
- `(#:tests? #false ;missing file
- #:cargo-inputs
+ `(#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
("rust-once-cell" ,rust-once-cell-1)
("rust-spin" ,rust-spin-0.5)
diff --git a/gnu/packages/patches/rust-ring-0.16-test-files.patch
b/gnu/packages/patches/rust-ring-0.16-test-files.patch
new file mode 100644
index 0000000000..dbe5c0f4ee
--- /dev/null
+++ b/gnu/packages/patches/rust-ring-0.16-test-files.patch
@@ -0,0 +1,54 @@
+This file exists in the upstream repository at the commit which
+corresponds to the ring-0.16.20 release, but was excluded from the
+release tarball.
+
+---
+ tests/ed25519_verify_tests.txt | 34 ++++++++++++++++++++++++++++++++++
+ 1 file changed, 34 insertions(+)
+ create mode 100644 tests/ed25519_verify_tests.txt
+
+diff --git a/tests/ed25519_verify_tests.txt b/tests/ed25519_verify_tests.txt
+new file mode 100644
+index 0000000..74c94b3
+--- /dev/null
++++ b/tests/ed25519_verify_tests.txt
+@@ -0,0 +1,34 @@
++# BoringSSL TEST(Ed25519Test Malleability)
++
++# Control; S is in range.
++MESSAGE = 54657374
++SIG =
7c38e026f29e14aabd059a0f2db8b0cd783040609a8be684db12f82a27774ab07a9155711ecfaf7f99f277bad0c6ae7e39d4eef676573336a5c51eb6f946b30d
++PUB = 7d4d0e7f6153a69b6242b522abbee685fda4420f8834b108c3bdae369ef549fa
++Result = P
++
++# Same as above, but with the order L added to S so it is out of range.
++# BoringSSL commit 472ba2c2dd52d06a657a63b7fbf02732a6649d21
++MESSAGE = 54657374
++SIG =
7c38e026f29e14aabd059a0f2db8b0cd783040609a8be684db12f82a27774ab067654bce3832c2d76f8f6f5dafc08d9339d4eef676573336a5c51eb6f946b31d
++PUB = 7d4d0e7f6153a69b6242b522abbee685fda4420f8834b108c3bdae369ef549fa
++Result = F
++
++
++# BoringSSL commit 3094902fcdc2db2cc832fa854b9a6a8be383926c
++MESSAGE = 124e583f8b8eca58bb29c271b41d36986bbc45541f8e51f9cb0133eca447601e
++SIG =
dac119d6ca87fc59ae611c157048f4d4fc932a149dbe20ec6effd1436abf83ea05c7df0fef06147241259113909bc71bd3c53ba4464ffcad3c0968f2ffffff0f
++PUB = 100fdf47fb94f1536a4f7c3fda27383fa03375a8f527c537e6f1703c47f94f86
++Result = P
++
++# Control. Same key as above; same message and signature as below, except S
is in range.
++PUB = 100fdf47fb94f1536a4f7c3fda27383fa03375a8f527c537e6f1703c47f94f86
++MESSAGE = 6a0bc2b0057cedfc0fa2e3f7f7d39279b30f454a69dfd1117c758d86b19d85e0
++SIG =
0971f86d2c9c78582524a103cb9cf949522ae528f8054dc20107d999be673ff4f58ac9d20ec563133cabc6230b1db8625f8446639ede46ad4df4053000000000
++Result = P
++
++# Same key as above, but S is out of range.
++# BoringSSL commit 472ba2c2dd52d06a657a63b7fbf02732a6649d21
++PUB = 100fdf47fb94f1536a4f7c3fda27383fa03375a8f527c537e6f1703c47f94f86
++MESSAGE = 6a0bc2b0057cedfc0fa2e3f7f7d39279b30f454a69dfd1117c758d86b19d85e0
++SIG =
0971f86d2c9c78582524a103cb9cf949522ae528f8054dc20107d999be673ff4e25ebf2f2928766b1248bec6e91697775f8446639ede46ad4df4053000000010
++Result = F
+--
+Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
+GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
+Confidentiality cannot be guaranteed on emails sent or received unencrypted
+
- 340/379: gnu: Add rust-line-col-0.2., (continued)
- 340/379: gnu: Add rust-line-col-0.2., guix-commits, 2023/06/29
- 342/379: gnu: Add rust-idea-0.5., guix-commits, 2023/06/29
- 346/379: gnu: Add rust-file-diff-1., guix-commits, 2023/06/29
- 349/379: gnu: Add rust-eax-0.5., guix-commits, 2023/06/29
- 351/379: gnu: Add rust-cvt-0.1., guix-commits, 2023/06/29
- 356/379: gnu: Add rust-cmac-0.7., guix-commits, 2023/06/29
- 357/379: gnu: Add rust-clap-mangen-0.2., guix-commits, 2023/06/29
- 359/379: gnu: Add rust-cfb-mode-0.8., guix-commits, 2023/06/29
- 363/379: gnu: rust-clap-complete-4: Update to 4.3.0., guix-commits, 2023/06/29
- 364/379: gnu: fd: Adjust for newer rust-clap-4., guix-commits, 2023/06/29
- 366/379: gnu: rust-ring-0.16: Enable tests.,
guix-commits <=
- 369/379: gnu: Add rust-flamer-0.4., guix-commits, 2023/06/29
- 370/379: gnu: Add rust-idna-0.4., guix-commits, 2023/06/29
- 379/379: gnu: rust-unicode-normalization-0.1: Update to 0.1.22., guix-commits, 2023/06/29
- 376/379: gnu: rust-curl-sys-0.4: Update to 0.4.63+curl-8.1.2., guix-commits, 2023/06/29
- 375/379: gnu: newsboat: Update to 2.32., guix-commits, 2023/06/29
- 377/379: gnu: rust-form-urlencoded-1: Update to 1.2.0., guix-commits, 2023/06/29
- 378/379: gnu: rust-percent-encoding-2: Update to 2.3.0., guix-commits, 2023/06/29