selftest: add some basic testing for the io_uring vfs module
authorStefan Metzmacher <metze@samba.org>
Sat, 16 Sep 2023 18:00:33 +0000 (20:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 17 Sep 2023 18:04:18 +0000 (18:04 +0000)
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 <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 17 18:04:18 UTC 2023 on atb-devel-224

selftest/target/Samba3.pm
source3/selftest/tests.py

index 39831afc599db05fc8f6c22090746d4643ff9150..a28e2be0581fa78058e92ffb56acb6d8e7d8b8a2 100755 (executable)
@@ -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
index fa51f7fdcbd64fb5c200e4d445aa6078dd9ce12a..5fece702372cf1aab4fb1e70a07e7a9d49b8c86b 100755 (executable)
@@ -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"]