From: Stefan Metzmacher Date: Sat, 16 Sep 2023 18:00:33 +0000 (+0200) Subject: selftest: add some basic testing for the io_uring vfs module X-Git-Tag: tevent-0.16.0~545 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b7f9840f766eb91f1f9df68e6d2a01898612890;p=thirdparty%2Fsamba.git selftest: add some basic testing for the io_uring vfs module We're now able to build it on all linux systems and the ci runners have at least a 5.4 kernel. That's all the current vfs_io_uring requires. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Sun Sep 17 18:04:18 UTC 2023 on atb-devel-224 --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 39831afc599..a28e2be0581 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -2010,6 +2010,11 @@ sub setup_fileserver acl_xattr:security_acl_name = user.hackme read only = no +[io_uring] + path = $share_dir + vfs objects = acl_xattr fake_acls xattr_tdb streams_depot time_audit full_audit io_uring + read only = no + [homes] comment = Home directories browseable = No diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index fa51f7fdcbd..5fece702372 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -1391,6 +1391,18 @@ plansmbtorture4testsuite( "simpleserver", '//$SERVER/external_streams_depot -U$USERNAME%$PASSWORD') +vfs_io_uring_tests = { + "smb2.connect", + "smb2.credits", + "smb2.rw", + "smb2.bench", + "smb2.ioctl", +} +for t in vfs_io_uring_tests: + plansmbtorture4testsuite(t, "fileserver", + '//$SERVER_IP/io_uring -U$USERNAME%$PASSWORD', + "vfs_io_uring") + test = 'rpc.lsa.lookupsids' auth_options = ["", "ntlm", "spnego", "spnego,ntlm", "spnego,smb1", "spnego,smb2"] signseal_options = ["", ",connect", ",packet", ",sign", ",seal"]