From: Ralph Boehme Date: Sat, 26 May 2018 14:30:47 +0000 (+0200) Subject: selftest: run smb2.streams tests against a share with vfs_streams_xattr X-Git-Tag: tevent-0.9.37~479 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=aa096ab70a466388a9947f73a525b2dcbb9821e5;p=samba.git selftest: run smb2.streams tests against a share with vfs_streams_xattr The tests are currently only run against streams_depot, where stream IO is handle based, compared to streams_xattr which is path based. vfs_streams_xattr is also used much more in real world setups, so we should run our tests against it. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13451 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/selftest/knownfail b/selftest/knownfail index f718f452073..97bdd71c36a 100644 --- a/selftest/knownfail +++ b/selftest/knownfail @@ -177,6 +177,9 @@ ^samba3.smb2.streams.rename ^samba3.smb2.streams.rename2 ^samba3.smb2.streams.attributes +^samba3.smb2.streams streams_xattr.rename\(nt4_dc\) +^samba3.smb2.streams streams_xattr.rename2\(nt4_dc\) +^samba3.smb2.streams streams_xattr.attributes\(nt4_dc\) ^samba3.smb2.getinfo.complex ^samba3.smb2.getinfo.fsinfo # quotas don't work yet ^samba3.smb2.setinfo.setinfo diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index bd84d001041..983f0ac1ae6 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -568,6 +568,10 @@ for t in tests: plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%%$PASSWORD ' '--option=torture:smburl=smb://$USERNAME:$PASSWORD@$SERVER/tmp ' '--option=torture:replace_smbconf=%s' % os.path.join(srcdir(), "testdata/samba3/smb_new.conf")) + elif t == "smb2.streams": + plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') + plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD') + plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/streams_xattr -U$USERNAME%$PASSWORD', 'streams_xattr') else: plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD') plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')