Subject: [PATCH rust-team 5/8] gnu: packages: crates-tls: Add rustls-platform-verifier-test-flags.

From: Herman Rimm <[email-masked]>
Date: Wed, 25 Dec 2024 22:40:31 +0100

* gnu/packages/crates-tls.scm (rustls-platform-verifier-test-flags):
Add variable.

Change-Id: I23b644e697b54be0b367115d601730178f99159e
---
 gnu/packages/crates-tls.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm
index b86cc37b90..fb108c6220 100644
--- a/gnu/packages/crates-tls.scm
+++ b/gnu/packages/crates-tls.scm
@@ -1920,6 +1920,22 @@ (define-public rust-rustls-pki-types-1
      "This crate provides shared types for the rustls PKI ecosystem.")
     (license (list license:expat license:asl2.0))))
 
+(define rustls-platform-verifier-test-flags
+  '(cons* "--"
+          (string-append "--skip=tests::verification_mock::test"
+                         "_verification_without_mock_root")
+          (map (lambda (suffix)
+                 (string-append
+                   "--skip=tests::verification_real_world::tests::"
+                   suffix))
+               '("_1password_com_valid"
+                 "letsencrypt"
+                 "my_1password_com_valid"
+                 "my_1password_com_valid_no_stapled"
+                 "unrelated_chain_not_valid_for_my_1password_com"
+                 "unrelated_chain_valid_for_unrelated_domain"
+                 "unrelated_domain_invalid"))))
+
 (define-public rust-rustls-platform-verifier-0.5
   (package
     (name "rust-rustls-platform-verifier")
-- 
2.45.2