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: ldb-1.3.6~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00b001b0ce9b606eb4cc8f93747ee70fd0eccfa3;p=thirdparty%2Fsamba.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 (backported from commit aa096ab70a466388a9947f73a525b2dcbb9821e5) --- diff --git a/selftest/knownfail b/selftest/knownfail index eaddaece25c..ba16fd72290 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 f43d2b14d3a..9092c1776c8 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -559,6 +559,10 @@ for t in tests: elif t == "rpc.samba3.netlogon" or t == "rpc.samba3.sessionkey": plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:wksname=samba3rpctest') plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD --option=torture:wksname=samba3rpctest') + 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')