From: Ralph Boehme Date: Thu, 26 Jul 2018 16:13:44 +0000 (+0200) Subject: selftest: run smbtorture3 SMB2-BASIC tests against additional shares X-Git-Tag: ldb-1.5.0~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=409d462f4976334189c751287a9fadc314a3a20e;p=thirdparty%2Fsamba.git selftest: run smbtorture3 SMB2-BASIC tests against additional shares This runs the smbtorture3 SMB2-BASIC and smb2.compound_find tests against shares with "smbd:async dosmode" enabled. On the vfs_aio_pthread_async_dosmode_force_sync* shares we force a sync threadpool which ensures we test behaviour on systems that don't support unshare(CLONE_FS) and also don't support per-thread-credentials. This simulates the code path of non linux systems. And makes sure that we don't regress there. We also test with xattr_tdb and without. Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Ralph Boehme Signed-off-by: Stefan Metzmacher Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Fri Jul 27 16:04:02 CEST 2018 on sn-devel-144 --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 253acf7aa5f..5b8cf9ea6d8 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -777,6 +777,48 @@ sub setup_simpleserver aio_pthread:aio open = yes smbd:async dosmode = no +[vfs_aio_pthread_async_dosmode_default1] + path = $prefix_abs/share + read only = no + vfs objects = aio_pthread + store dos attributes = yes + aio_pthread:aio open = yes + smbd:async dosmode = yes + +[vfs_aio_pthread_async_dosmode_default2] + path = $prefix_abs/share + read only = no + vfs objects = aio_pthread xattr_tdb + store dos attributes = yes + aio_pthread:aio open = yes + smbd:async dosmode = yes + +[vfs_aio_pthread_async_dosmode_force_sync1] + path = $prefix_abs/share + read only = no + vfs objects = aio_pthread + store dos attributes = yes + aio_pthread:aio open = yes + smbd:async dosmode = yes + # This simulates non linux systems + smbd:force sync user path safe threadpool = yes + smbd:force sync user chdir safe threadpool = yes + smbd:force sync root path safe threadpool = yes + smbd:force sync root chdir safe threadpool = yes + +[vfs_aio_pthread_async_dosmode_force_sync2] + path = $prefix_abs/share + read only = no + vfs objects = aio_pthread xattr_tdb + store dos attributes = yes + aio_pthread:aio open = yes + smbd:async dosmode = yes + # This simulates non linux systems + smbd:force sync user path safe threadpool = yes + smbd:force sync user chdir safe threadpool = yes + smbd:force sync root path safe threadpool = yes + smbd:force sync root chdir safe threadpool = yes + [vfs_aio_fork] path = $prefix_abs/share vfs objects = aio_fork diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index bf0ba2a4454..b2b2ff26077 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -119,6 +119,17 @@ 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"]) +shares = [ + "vfs_aio_pthread_async_dosmode_default1", + "vfs_aio_pthread_async_dosmode_default2", + "vfs_aio_pthread_async_dosmode_force_sync1", + "vfs_aio_pthread_async_dosmode_force_sync2" +] +for s in shares: + plantestsuite("samba3.smbtorture_s3.%s(simpleserver).SMB2-BASIC" % s, "simpleserver", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), 'SMB2-BASIC', '//$SERVER_IP/' + s, '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"]) + t = "smb2.compound_find" + plansmbtorture4testsuite(t, "simpleserver", "//%s/%s %s" % ('$SERVER_IP', s, ' -U$USERNAME%$PASSWORD'), description=s) + posix_tests = ["POSIX", "POSIX-APPEND", "POSIX-SYMLINK-ACL", "POSIX-SYMLINK-EA", "POSIX-OFD-LOCK", "POSIX-STREAM-DELETE", "WINDOWS-BAD-SYMLINK" ]