]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:selftest: run smb2.{bench,connect,credits,ioctl,rw} over quic-ngtcp2
authorStefan Metzmacher <metze@samba.org>
Mon, 19 May 2025 12:56:14 +0000 (14:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Jul 2025 10:00:51 +0000 (10:00 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul 17 10:00:51 UTC 2025 on atb-devel-224

source3/selftest/tests.py

index 5df48fda3b71963bb5743a4ccfe6fb834e4e779d..2497211faed2593a33e1f66274586d4015e22621 100755 (executable)
@@ -109,6 +109,7 @@ with_pthreadpool = ("WITH_PTHREADPOOL" in config_hash)
 have_cluster_support = "CLUSTER_SUPPORT" in config_hash
 
 quic_ko_wrapper = ("QUIC_KO_WRAPPER" in config_hash)
+ngtcp2_environ = {'SOCKET_WRAPPER_ALLOW_DGRAM_SEQPACKET_FALLBACK': '1'}
 
 def is_module_enabled(module):
     if module in config_hash["STRING_SHARED_MODULES"]:
@@ -1517,6 +1518,20 @@ for t in smb_transport_tests:
                              '--option=tlsverifypeer=ca_and_name ' +
                              '--option=clientsmbtransport:force_bsd_tstream=yes',
                              description="smb-over-quic-ko-tstream")
+for t in smb_transport_tests:
+    if not quic_ko_wrapper:
+        break
+    # Here we test the client using quic without
+    # quic.ko simulation based on ngtcp2 over udp.
+    # Note the server still uses quic.ko simulation
+    # so this is also behind the quic_ko_wrapper check.
+    plansmbtorture4testsuite(t, "fileserver",
+                             '//$SERVER/tmp -U$USERNAME%$PASSWORD ' +
+                             '--option=clientsmbtransports=quic ' +
+                             '--option=tlsverifypeer=no_check ' +
+                             '--option=clientsmbtransport:force_ngtcp2_quic=yes',
+                             description="smb-over-quic-ngtcp2",
+                             environ=ngtcp2_environ)
 
 test = 'rpc.lsa.lookupsids'
 auth_options = ["", "ntlm", "spnego", "spnego,ntlm", "spnego,smb1", "spnego,smb2"]