summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-21 19:22:54 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-21 13:12:33 +0200
commitebb776f51f697ece62ed5c7ee6aa4865397347c2 (patch)
tree52b2484feac9719d8be2b040517e38be31d6e420
parente79ed4fe72208e632cd980d4adec07f1c78f1511 (diff)
downloadsamba-ebb776f51f697ece62ed5c7ee6aa4865397347c2.tar.gz
samba-ebb776f51f697ece62ed5c7ee6aa4865397347c2.tar.bz2
samba-ebb776f51f697ece62ed5c7ee6aa4865397347c2.zip
selftest: Add tests for vfs_aio_fork
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 21 13:12:33 CEST 2012 on sn-devel-104
-rwxr-xr-xselftest/target/Samba3.pm8
-rwxr-xr-xsource3/selftest/tests.py4
2 files changed, 12 insertions, 0 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 31bd15b464..cb11827881 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -344,10 +344,18 @@ sub setup_secshare($$)
print "PROVISIONING server with security=share...";
+ my $prefix_abs = abs_path($path);
+
my $secshare_options = "
security = share
lanman auth = yes
vfs objects = $vfs_modulesdir_abs/xattr_tdb.so $vfs_modulesdir_abs/streams_depot.so
+
+[vfs_aio_fork]
+ path = $prefix_abs/share
+ vfs objects = $vfs_modulesdir_abs/aio_fork.so
+ read only = no
+ vfs_aio_fork:erratic_testing_mode=yes
";
my $vars = $self->provision($path,
diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py
index f9f2e22ce0..2e13ca0923 100755
--- a/source3/selftest/tests.py
+++ b/source3/selftest/tests.py
@@ -102,6 +102,10 @@ for t in tests:
plantestsuite("samba3.smbtorture_s3.crypt_server(s3dc).%s" % t, "s3dc", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/tmpenc', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"])
plantestsuite("samba3.smbtorture_s3.plain(dc).%s" % t, "dc", [os.path.join(samba3srcdir, "script/tests/test_smbtorture_s3.sh"), t, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3, "", "-l $LOCAL_PATH"])
+tests = ["RW1", "RW2", "RW3"]
+for t in tests:
+ plantestsuite("samba3.smbtorture_s3.vfs_aio_fork(secshare).%s" % t, "secshare", [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"]
for t in posix_tests: