selftest: also run smb2.compound_find against share with async delay set
authorRalph Boehme <slow@samba.org>
Thu, 23 Feb 2017 21:20:39 +0000 (22:20 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 18 Apr 2017 20:54:17 +0000 (22:54 +0200)
Add a share with "smbd:find async delay usec" set to 10000 and run the
test smb2.compound_find added in the previous commit against this new
share as well.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/target/Samba3.pm
source3/selftest/tests.py

index 0aa88ee05caca2668e23327590264bce10c2704a..c241bd14f8dc977f84e2473a99a3ff2972dddd05 100755 (executable)
@@ -1979,6 +1979,10 @@ sub provision($$$$$$$$)
        copy = tmp
        kernel oplocks = yes
        vfs objects = streams_xattr xattr_tdb
+
+[compound_find]
+       copy = tmp
+       smbd:find async delay usec = 10000
        ";
        close(CONF);
 
index 395943923da4293177156832a76097542d4832d3..9bb7903ac32bdbfb51d3e778f733ef386c2fa22b 100755 (executable)
@@ -452,6 +452,10 @@ for t in tests:
             plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER/kernel_oplocks -U$USERNAME%$PASSWORD')
     elif t == "vfs.acl_xattr":
         plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
+    elif t == "smb2.compound_find":
+        plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER/compound_find -U$USERNAME%$PASSWORD')
+        plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
+        plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
     else:
         plansmbtorture4testsuite(t, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
         plansmbtorture4testsuite(t, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')