]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: add some basic testing for aio_pthread
authorStefan Metzmacher <metze@samba.org>
Fri, 20 Apr 2018 09:27:30 +0000 (11:27 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 23 Apr 2018 08:30:19 +0000 (10:30 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
selftest/target/Samba3.pm
source3/selftest/tests.py

index b93cbc2750742894b10167f0c653c5a994d1ff2c..6c86701273874fc6c753c0a49e718a9545124a9a 100755 (executable)
@@ -770,6 +770,12 @@ sub setup_simpleserver
        full_audit:success = none
        full_audit:failure = none
 
+[vfs_aio_pthread]
+       path = $prefix_abs/share
+       read only = no
+       vfs objects = aio_pthread
+       aio_pthread:aio open = yes
+
 [vfs_aio_fork]
        path = $prefix_abs/share
         vfs objects = aio_fork
index a22d5e67ddad47205301ff42ff05641eaa03a450..06bda707ddb1f7c016182fb78f8fb87d29ee63f1 100755 (executable)
@@ -112,8 +112,9 @@ tests = ["MANGLE-ILLEGAL"]
 for t in tests:
     plantestsuite("samba3.smbtorture_s3.plain(%s).%s" % (env, t), env, [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/mangle_illegal', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"])
 
-tests = ["RW1", "RW2", "RW3"]
+tests = ["RW1", "RW2", "RW3", "SMB2-BASIC"]
 for t in tests:
+    plantestsuite("samba3.smbtorture_s3.vfs_aio_pthread(simpleserver).%s" % t, "simpleserver", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/vfs_aio_pthread', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"])
     plantestsuite("samba3.smbtorture_s3.vfs_aio_fork(simpleserver).%s" % t, "simpleserver", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/vfs_aio_fork', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"])
 
 posix_tests = ["POSIX", "POSIX-APPEND", "POSIX-SYMLINK-ACL", "POSIX-SYMLINK-EA", "POSIX-OFD-LOCK",