2 # This script generates a list of testsuites that should be run as part of
3 # the Samba 3 test suite.
5 # The output of this script is parsed by selftest.pl, which then decides
6 # which of the tests to actually run. It will, for example, skip all tests
7 # listed in selftest/skip or only run a subset during "make quicktest".
9 # The idea is that this script outputs all of the tests of Samba 3, not
10 # just those that are known to pass, and list those that should be skipped
11 # or are known to fail in selftest/skip or selftest/samba3-knownfail. This makes it
12 # very easy to see what functionality is still missing in Samba 3 and makes
13 # it possible to run the testsuite against other servers, such as Samba 4 or
14 # Windows that have a different set of features.
16 # The syntax for a testsuite is "-- TEST --" on a single line, followed
17 # by the name of the test, the environment it needs and the command to run, all
18 # three separated by newlines. All other lines in the output are considered
25 sys
.path
.insert(0, os
.path
.normpath(os
.path
.join(os
.path
.dirname(__file__
), "../../selftest")))
26 import selftesthelpers
27 from selftesthelpers
import bindir
, srcdir
, scriptdir
, binpath
28 from selftesthelpers
import plantestsuite
, samba3srcdir
29 from selftesthelpers
import planpythontestsuite
30 from selftesthelpers
import smbtorture3
, configuration
, smbclient3
, smbtorture4
31 from selftesthelpers
import net
, wbinfo
, dbwrap_tool
, rpcclient
, python
32 from selftesthelpers
import smbget
, smbcacls
, smbcquotas
, ntlm_auth3
33 from selftesthelpers
import valgrindify
, smbtorture4_testsuites
34 from selftesthelpers
import smbtorture4_options
35 from selftesthelpers
import smbcontrol
36 from selftesthelpers
import smbstatus
37 from selftesthelpers
import timelimit
38 smbtorture4_options
.extend([
39 '--option=torture:sharedelay=100000',
40 '--option=torture:writetimeupdatedelay=500000',
44 def plansmbtorture4testsuite(name
, env
, options
, description
='', environ
=None):
46 modname
= "samba3.%s" % (name
, )
48 modname
= "samba3.%s %s" % (name
, description
)
50 selftesthelpers
.plansmbtorture4testsuite(
51 name
, env
, options
, target
='samba3', modname
=modname
, environ
=environ
)
53 def compare_versions(version1
, version2
):
54 for i
in range(max(len(version1
),len(version2
))):
55 v1
= version1
[i
] if i
< len(version1
) else 0
56 v2
= version2
[i
] if i
< len(version2
) else 0
65 config_h
= os
.environ
["CONFIG_H"]
67 samba4bindir
= bindir()
68 config_h
= os
.path
.join(samba4bindir
, "default/include/config.h")
70 bbdir
= os
.path
.join(srcdir(), "testprogs/blackbox")
72 # check available features
74 f
= open(config_h
, 'r')
77 config_hash
= dict((x
[0], ' '.join(x
[1:]))
78 for x
in map(lambda line
: line
.strip().split(' ')[1:],
79 filter(lambda line
: (line
[0:7] == '#define') and (len(line
.split(' ')) > 2), lines
)))
83 linux_kernel_version
= None
84 if platform
.system() == 'Linux':
85 m
= re
.search(r
'(\d+).(\d+).(\d+)', platform
.release())
87 linux_kernel_version
= [int(m
.group(1)), int(m
.group(2)), int(m
.group(3))]
89 have_linux_kernel_oplocks
= False
90 if "HAVE_KERNEL_OPLOCKS_LINUX" in config_hash
:
91 if compare_versions(linux_kernel_version
, [5,3,1]) >= 0:
92 have_linux_kernel_oplocks
= True
94 have_inotify
= ("HAVE_INOTIFY" in config_hash
)
95 have_ldwrap
= ("HAVE_LDWRAP" in config_hash
)
96 with_pthreadpool
= ("WITH_PTHREADPOOL" in config_hash
)
98 have_cluster_support
= "CLUSTER_SUPPORT" in config_hash
100 def is_module_enabled(module
):
101 if module
in config_hash
["STRING_SHARED_MODULES"]:
103 if module
in config_hash
["STRING_STATIC_MODULES"]:
107 plantestsuite("samba3.blackbox.success", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_success.sh")])
108 plantestsuite("samba3.blackbox.failure", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_failure.sh")])
110 plantestsuite("samba3.local_s3", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_local_s3.sh")])
112 plantestsuite("samba3.blackbox.registry.upgrade", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_registry_upgrade.sh"), net
, dbwrap_tool
])
115 "FDPASS", "LOCK1", "LOCK2", "LOCK3", "LOCK4", "LOCK5", "LOCK6", "LOCK7",
121 "UNLINK", "BROWSE", "ATTR", "TRANS2", "TORTURE",
122 "OPLOCK1", "OPLOCK2", "OPLOCK4", "STREAMERROR",
123 "DIR", "DIR1", "DIR-CREATETIME", "TCON", "TCONDEV", "RW1", "RW2", "RW3", "LARGE_READX", "RW-SIGNING",
124 "OPEN", "XCOPY", "RENAME", "DELETE", "DELETE-LN", "PROPERTIES", "W2K",
125 "TCON2", "IOCTL", "CHKPATH", "FDSESS", "CHAIN1", "CHAIN2", "OWNER-RIGHTS",
126 "CHAIN3", "PIDHIGH", "CLI_SPLICE",
127 "UID-REGRESSION-TEST", "SHORTNAME-TEST",
128 "CASE-INSENSITIVE-CREATE", "SMB2-BASIC", "NTTRANS-FSCTL", "SMB2-NEGPROT",
129 "SMB2-SESSION-REAUTH", "SMB2-SESSION-RECONNECT", "SMB2-FTRUNCATE",
130 "SMB2-ANONYMOUS", "SMB2-DIR-FSYNC",
138 "SMB1-WILD-MANGLE-UNLINK",
139 "SMB1-WILD-MANGLE-RENAME"]
141 for t
in fileserver_tests
:
142 fileserver_env
= "fileserver_smb1"
144 fileserver_env
= "fileserver"
145 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
, fileserver_env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
146 plantestsuite("samba3.smbtorture_s3.crypt_client.%s" % t
, "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "-e", "-l $LOCAL_PATH"])
148 # this is a negative test to verify that the server rejects
149 # access without encryption
150 plantestsuite("samba3.smbtorture_s3.crypt_server.%s" % t
, "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmpenc', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
151 if t
== "CLI_SPLICE":
152 # We must test this against the SMB1 fallback.
153 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
, "fileserver_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH", "-mNT1"])
154 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
, "ad_dc_ntvfs", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
157 plantestsuite("samba3.smbtorture_s3.%s.sasl-sign" % t
, "ad_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER/tmp', '$DC_USERNAME', '$DC_PASSWORD', smbtorture3
, "-T 'clientldapsaslwrapping=sign'", "", "-l $LOCAL_PATH"])
158 plantestsuite("samba3.smbtorture_s3.%s.sasl-seal" % t
, "ad_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER/tmp', '$DC_USERNAME', '$DC_PASSWORD', smbtorture3
, "-T 'clientldapsaslwrapping=seal'", "", "-l $LOCAL_PATH"])
159 plantestsuite("samba3.smbtorture_s3.%s.ldaps" % t
, "ad_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER/tmp', '$DC_USERNAME', '$DC_PASSWORD', smbtorture3
, "-T 'clientldapsaslwrapping=ldaps'", "", "-l $LOCAL_PATH"])
160 plantestsuite("samba3.smbtorture_s3.%s.starttls" % t
, "ad_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER/tmp', '$DC_USERNAME', '$DC_PASSWORD', smbtorture3
, "-T 'clientldapsaslwrapping=starttls'", "", "-l $LOCAL_PATH"])
162 if have_linux_kernel_oplocks
:
164 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
,
166 [os
.path
.join(samba3srcdir
,
167 "script/tests/test_smbtorture_s3.sh"),
177 # RENAME-ACCESS needs to run against a special share - acl_xattr_ign_sysacl_windows
179 plantestsuite("samba3.smbtorture_s3.plain.%s" % "RENAME-ACCESS", "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), "RENAME-ACCESS", '//$SERVER_IP/acl_xattr_ign_sysacl_windows', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
180 plantestsuite("samba3.smbtorture_s3.crypt_client.%s" % "RENAME-ACCESS", "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), "RENAME-ACCESS", '//$SERVER_IP/acl_xattr_ign_sysacl_windows', '$USERNAME', '$PASSWORD', smbtorture3
, "-e", "-l $LOCAL_PATH"])
183 tests
= ["OPLOCK-CANCEL"]
185 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
188 tests
= ["MANGLE-ILLEGAL"]
190 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/mangle_illegal', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
192 tests
= ["RW1", "RW2", "RW3", "SMB2-BASIC"]
194 if t
== "SMB2-BASIC":
197 env
= "fileserver_smb1"
199 plantestsuite("samba3.smbtorture_s3.vfs_aio_pthread(%s).%s" % (env
, t
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/vfs_aio_pthread', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
200 plantestsuite("samba3.smbtorture_s3.vfs_aio_fork(%s).%s" % (env
, t
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/vfs_aio_fork', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
202 plantestsuite("samba3.smbtorture_s3.hidenewfiles",
204 [os
.path
.join(samba3srcdir
,
205 "script/tests/test_smbtorture_s3.sh"),
206 'hide-new-files-timeout',
207 '//$SERVER_IP/hidenewfiles',
213 plantestsuite("samba3.smbtorture_s3.hidenewfiles_showdirs",
215 [os
.path
.join(samba3srcdir
,
216 "script/tests/test_smbtorture_s3.sh"),
217 'hide-new-files-timeout-showdirs',
218 '//$SERVER_IP/hidenewfiles',
225 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-TRUNCATED-SESSSETUP",
227 [os
.path
.join(samba3srcdir
,
228 "script/tests/test_smbtorture_s3.sh"),
229 'SMB1-TRUNCATED-SESSSETUP',
236 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-NEGOTIATE-EXIT",
238 [os
.path
.join(samba3srcdir
,
239 "script/tests/test_smbtorture_s3.sh"),
240 'SMB1-NEGOTIATE-EXIT',
247 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-NEGOTIATE-TCON",
249 [os
.path
.join(samba3srcdir
,
250 "script/tests/test_smbtorture_s3.sh"),
251 'SMB1-NEGOTIATE-TCON',
259 # MSDFS attribute tests.
261 plantestsuite("samba3.smbtorture_s3.smb2.MSDFS-ATTRIBUTE",
263 [os
.path
.join(samba3srcdir
,
264 "script/tests/test_smbtorture_s3.sh"),
266 '//$SERVER_IP/msdfs-share',
273 plantestsuite("samba3.smbtorture_s3.smb1.MSDFS-ATTRIBUTE",
275 [os
.path
.join(samba3srcdir
,
276 "script/tests/test_smbtorture_s3.sh"),
278 '//$SERVER_IP/msdfs-share',
286 # SMB2-DFS-PATHS needs to run against a special share msdfs-pathname-share
287 # This is an empty DFS share with no links, used merely to test
288 # incoming DFS pathnames and how they map to local paths.
290 plantestsuite("samba3.smbtorture_s3.smb2.SMB2-DFS-PATHS",
292 [os
.path
.join(samba3srcdir
,
293 "script/tests/test_smbtorture_s3.sh"),
295 '//$SERVER_IP/msdfs-pathname-share',
301 # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15277
302 # MacOSX clients send a leading '\\' character for DFS paths.
304 plantestsuite("samba3.smbtorture_s3.smb2.SMB2-DFS-FILENAME-LEADING-BACKSLASH",
306 [os
.path
.join(samba3srcdir
,
307 "script/tests/test_smbtorture_s3.sh"),
308 'SMB2-DFS-FILENAME-LEADING-BACKSLASH',
309 '//$SERVER_IP/msdfs-pathname-share',
315 # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15422
316 # Prevent bad pipenames.
318 plantestsuite("samba3.smbtorture_s3.smb2.SMB2-INVALID-PIPENAME",
320 [os
.path
.join(samba3srcdir
,
321 "script/tests/test_smbtorture_s3.sh"),
322 'SMB2-INVALID-PIPENAME',
330 # SMB2-NON-DFS-SHARE needs to run against a special share non-msdfs-pathname-share
331 # This is an empty non-DFS share with no links, used merely to test
332 # incoming DFS pathnames and how they map to local paths. We are testing
333 # what happens if we set the FLAGS2_DFS_PATHNAMES and send DFS paths
334 # on a non-DFS share.
336 plantestsuite("samba3.smbtorture_s3.smb2.SMB2-NON-DFS-SHARE",
338 [os
.path
.join(samba3srcdir
,
339 "script/tests/test_smbtorture_s3.sh"),
340 'SMB2-NON-DFS-SHARE',
341 '//$SERVER_IP/non-msdfs-pathname-share',
348 # SMB2-DFS-SHARE-NON-DFS-PATH needs to run against a special share msdfs-pathname-share
349 # This is an empty DFS share with no links, used merely to test
350 # incoming non-DFS pathnames and how they map to local paths.
352 plantestsuite("samba3.smbtorture_s3.smb2.SMB2-DFS-SHARE-NON-DFS-PATH",
354 [os
.path
.join(samba3srcdir
,
355 "script/tests/test_smbtorture_s3.sh"),
356 'SMB2-DFS-SHARE-NON-DFS-PATH',
357 '//$SERVER_IP/msdfs-pathname-share',
364 # SMB1-DFS-PATHS needs to run against a special share msdfs-pathname-share
365 # This is an empty DFS share with no links, used merely to test
366 # incoming DFS pathnames and how they map to local paths.
368 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-DFS-PATHS",
370 [os
.path
.join(samba3srcdir
,
371 "script/tests/test_smbtorture_s3.sh"),
373 '//$SERVER_IP/msdfs-pathname-share',
380 # SMB1-DFS-SEARCH-PATHS needs to run against a special share msdfs-pathname-share
381 # This is an empty DFS share with no links, used merely to test
382 # incoming DFS pathnames and how they map to local paths.
384 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-DFS-SEARCH-PATHS",
386 [os
.path
.join(samba3srcdir
,
387 "script/tests/test_smbtorture_s3.sh"),
388 'SMB1-DFS-SEARCH-PATHS',
389 '//$SERVER_IP/msdfs-pathname-share',
396 # SMB1-DFS-OPERATIONS needs to run against a special share msdfs-pathname-share
397 # This is an empty DFS share with no links, used merely to test
398 # incoming DFS pathnames and how they map to local paths.
400 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-DFS-OPERATIONS",
402 [os
.path
.join(samba3srcdir
,
403 "script/tests/test_smbtorture_s3.sh"),
404 'SMB1-DFS-OPERATIONS',
405 '//$SERVER_IP/msdfs-pathname-share',
411 # SMB1-DFS-BADPATH needs to run against a special share msdfs-pathname-share
412 # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15419
414 plantestsuite("samba3.smbtorture_s3.smb1.SMB1-DFS-BADPATH",
416 [os
.path
.join(samba3srcdir
,
417 "script/tests/test_smbtorture_s3.sh"),
419 '//$SERVER_IP/msdfs-pathname-share',
426 # SMB2-STREAM-ACL needs to run against a special share - vfs_wo_fruit
428 plantestsuite("samba3.smbtorture_s3.plain.%s" % "SMB2-STREAM-ACL",
430 [os
.path
.join(samba3srcdir
,
431 "script/tests/test_smbtorture_s3.sh"),
433 '//$SERVER_IP/vfs_wo_fruit',
441 # SMB2-LIST-DIR-ASYNC needs to run against a special share vfs_aio_pthread_async_dosmode_default1
443 plantestsuite("samba3.smbtorture_s3.plain.%s" % "SMB2-LIST-DIR-ASYNC",
445 [os
.path
.join(samba3srcdir
,
446 "script/tests/test_smbtorture_s3.sh"),
447 'SMB2-LIST-DIR-ASYNC',
448 '//$SERVER_IP/vfs_aio_pthread_async_dosmode_default1',
455 # SMB2-DEL-ON-CLOSE-NONEMPTY needs to run against a special fileserver share veto_files_delete
457 plantestsuite("samba3.smbtorture_s3.plain.%s" % "SMB2-DEL-ON-CLOSE-NONEMPTY",
459 [os
.path
.join(samba3srcdir
,
460 "script/tests/test_smbtorture_s3.sh"),
461 'SMB2-DEL-ON-CLOSE-NONEMPTY',
462 '//$SERVER_IP/veto_files_delete',
470 # SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES needs to run against a special fileserver share delete_yes_unwrite
472 plantestsuite("samba3.smbtorture_s3.plain.%s" % "SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES",
474 [os
.path
.join(samba3srcdir
,
475 "script/tests/test_smbtorture_s3.sh"),
476 'SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-YES',
477 '//$SERVER_IP/delete_yes_unwrite',
485 # SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO needs to run against a special fileserver share delete_no_unwrite
487 plantestsuite("samba3.smbtorture_s3.plain.%s" % "SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO",
489 [os
.path
.join(samba3srcdir
,
490 "script/tests/test_smbtorture_s3.sh"),
491 'SMB2-DEL-ON-CLOSE-NONWRITE-DELETE-NO',
492 '//$SERVER_IP/delete_no_unwrite',
500 # Test doing an async read + disconnect on a pipe doesn't crash the server.
501 # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15423
503 plantestsuite("samba3.smbtorture_s3.plain.%s" % "SMB2-PIPE-READ-ASYNC-DISCONNECT",
505 [os
.path
.join(samba3srcdir
,
506 "script/tests/test_smbtorture_nocrash_s3.sh"),
507 'SMB2-PIPE-READ-ASYNC-DISCONNECT',
516 "vfs_aio_pthread_async_dosmode_default1",
517 "vfs_aio_pthread_async_dosmode_default2"
520 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"])
521 t
= "smb2.compound_find"
522 plansmbtorture4testsuite(t
, "simpleserver", "//%s/%s %s" % ('$SERVER_IP', s
, ' -U$USERNAME%$PASSWORD'), description
=s
)
524 posix_tests
= ["POSIX", "POSIX-APPEND", "POSIX-SYMLINK-ACL", "POSIX-SYMLINK-EA", "POSIX-OFD-LOCK",
525 "POSIX-STREAM-DELETE", "WINDOWS-BAD-SYMLINK", "POSIX-MKDIR",
526 "POSIX-BLOCKING-LOCK",
528 "POSIX-ACL-SHAREROOT",
533 "POSIX-SYMLINK-PARENT",
534 "POSIX-SYMLINK-CHMOD",
535 "POSIX-DIR-DEFAULT-ACL",
536 "POSIX-SYMLINK-RENAME",
537 "POSIX-SYMLINK-GETPATHINFO",
538 "POSIX-SYMLINK-SETPATHINFO",
541 for t
in posix_tests
:
542 plantestsuite("samba3.smbtorture_s3.plain.%s" % t
, "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/posix_share', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
543 plantestsuite("samba3.smbtorture_s3.crypt.%s" % t
, "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/posix_share', '$USERNAME', '$PASSWORD', smbtorture3
, "-e", "-l $LOCAL_PATH"])
552 "LOCAL-STR-MATCH-MSWILD",
553 "LOCAL-STR-MATCH-REGEX-SUB1",
554 "LOCAL-string_to_sid",
555 "LOCAL-sid_to_string",
556 "LOCAL-binary_to_sid",
559 "LOCAL-CONVERT-STRING",
560 "LOCAL-CONV-AUTH-INFO",
561 "LOCAL-IDMAP-TDB-COMMON",
562 "LOCAL-MESSAGING-READ1",
563 "LOCAL-MESSAGING-READ2",
564 "LOCAL-MESSAGING-READ3",
565 "LOCAL-MESSAGING-READ4",
566 "LOCAL-MESSAGING-FDPASS1",
567 "LOCAL-MESSAGING-FDPASS2",
568 "LOCAL-MESSAGING-FDPASS2a",
569 "LOCAL-MESSAGING-FDPASS2b",
570 "LOCAL-MESSAGING-SEND-ALL",
571 "LOCAL-PTHREADPOOL-TEVENT",
572 "LOCAL-CANONICALIZE-PATH",
573 "LOCAL-DBWRAP-WATCH1",
574 "LOCAL-DBWRAP-WATCH2",
575 "LOCAL-DBWRAP-WATCH3",
576 "LOCAL-DBWRAP-WATCH4",
577 "LOCAL-DBWRAP-DO-LOCKED1",
587 "LOCAL-NAMEMAP-CACHE1",
588 "LOCAL-IDMAP-CACHE1",
589 "LOCAL-TDB-VALIDATE",
590 "LOCAL-hex_encode_buf",
591 "LOCAL-remove_duplicate_addrs2"]
593 for t
in local_tests
:
594 plantestsuite("samba3.smbtorture_s3.%s" % t
, "none", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//foo/bar', '""', '""', smbtorture3
, ""])
596 plantestsuite("samba.vfstest.stream_depot", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/stream-depot/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
597 plantestsuite("samba.vfstest.xattr-tdb-1", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/xattr-tdb-1/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
598 plantestsuite("samba.vfstest.acl", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/vfstest-acl/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
599 plantestsuite("samba.vfstest.catia", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/vfstest-catia/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
601 "samba.vfstest.full_audit_segfault",
603 [os
.path
.join(samba3srcdir
,
604 "script/tests/full_audit_segfault/run.sh"),
609 plantestsuite("samba3.blackbox.smbclient_basic.NT1", "nt4_dc_schannel", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, "-mNT1"])
610 plantestsuite("samba3.blackbox.smbclient_basic.NT1", "nt4_dc_smb1", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, "-mNT1"])
611 plantestsuite("samba3.blackbox.smbclient_basic.SMB2_02", "nt4_dc_schannel", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, "-mSMB2_02"])
612 plantestsuite("samba3.blackbox.smbclient_basic.SMB2_10", "nt4_dc_schannel", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, "-mSMB2_10"])
613 plantestsuite("samba3.blackbox.smbclient_basic.SMB3_02", "nt4_dc_schannel", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, "-mSMB3_02"])
614 plantestsuite("samba3.blackbox.smbclient_basic.SMB3_11", "nt4_dc_schannel", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, "-mSMB3_11"])
616 plantestsuite("samba3.blackbox.smbclient_usernamemap", "ad_member_idmap_nss:local", [os
.path
.join(samba3srcdir
, "script/tests/test_usernamemap.sh"), '$SERVER', smbclient3
])
618 plantestsuite("samba3.blackbox.smbclient_basic", "ad_member", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_basic.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
])
619 for options
in ["", "--option=clientntlmv2auth=no", "--option=clientusespnego=no", "--option=clientusespnego=no --option=clientntlmv2auth=no", "--option=clientntlmv2auth=no --option=clientlanmanauth=yes --max-protocol=LANMAN2", "--option=clientntlmv2auth=no --option=clientlanmanauth=yes --option=clientmaxprotocol=NT1"]:
620 if "NT1" in options
or "LANMAN2" in options
:
621 env
= "nt4_dc_smb1_done"
624 plantestsuite("samba3.blackbox.smbclient_auth.plain.%s" % (options
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, options
])
626 for env
in ["nt4_dc", "nt4_member", "ad_member", "ad_dc", "s4member", "fl2000dc"]:
627 plantestsuite("samba3.blackbox.smbclient_machine_auth.plain", "%s:local" % env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_machine_auth.sh"), '$SERVER', smbclient3
, configuration
])
629 if smb1_env
== "ad_dc" or smb1_env
== "nt4_dc":
630 smb1_env
= smb1_env
+ "_smb1_done"
631 plantestsuite("samba3.blackbox.smbclient_ntlm.plain NT1", smb1_env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$DC_USERNAME', '$DC_PASSWORD', "never", smbclient3
, "NT1", configuration
])
632 plantestsuite("samba3.blackbox.smbclient_ntlm.plain SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$DC_USERNAME', '$DC_PASSWORD', "never", smbclient3
, "SMB3", configuration
])
635 plantestsuite("samba3.blackbox.smbclient_log_basename", "ad_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_log_basename.sh"), '$SERVER', smbclient3
, '$PREFIX', configuration
])
637 for options
in ["--option=clientntlmv2auth=no", "--option=clientusespnego=no --option=clientntlmv2auth=no", "--option=clientusespnego=no --option=clientntlmv2auth=no -mNT1", ""]:
638 # don't attempt to run SMB1 tests in nt4_member or ad_member
639 # as these test envs don't support SMB1, use nt4_dc instead
640 environs
= ["nt4_member", "ad_member"]
641 if "NT1" in options
or "LANMAN2" in options
:
642 environs
= ["nt4_dc_smb1_done"]
644 plantestsuite("samba3.blackbox.smbclient_auth.plain.%s" % (options
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, options
])
645 plantestsuite("samba3.blackbox.smbclient_auth.plain.%s.member_creds" % (options
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$SERVER/$USERNAME', '$PASSWORD', smbclient3
, configuration
, options
])
647 for env
in ["nt4_member", "ad_member"]:
648 plantestsuite("samba3.blackbox.smbclient_auth.empty_domain.domain_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '/$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, options
])
649 plantestsuite("samba3.blackbox.smbclient_auth.empty_domain.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '/$USERNAME', '$PASSWORD', smbclient3
, configuration
, options
])
650 plantestsuite("samba3.blackbox.smbclient_auth.dot_domain.domain_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', './$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, options
])
651 plantestsuite("samba3.blackbox.smbclient_auth.dot_domain.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', './$USERNAME', '$PASSWORD', smbclient3
, configuration
, options
])
652 plantestsuite("samba3.blackbox.smbclient_auth.upn.domain_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME@$REALM', '$DC_PASSWORD', smbclient3
, configuration
, options
])
653 plantestsuite("samba3.blackbox.smbclient_auth.upn.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$USERNAME@$SERVER', '$PASSWORD', smbclient3
, configuration
, options
])
656 plantestsuite("samba3.blackbox.smbspool", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbspool.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', env
])
658 env
= "ad_member_fips"
659 plantestsuite("samba3.blackbox.krbsmbspool", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbspool_krb.sh"), '$SERVER', 'bob', 'Secret007', '$REALM'])
661 plantestsuite("samba3.blackbox.printing_var_exp", "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_printing_var_exp.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD'])
663 for env
in ["ad_member:local", "nt4_dc:local"]:
664 plantestsuite("samba3.blackbox.smbpasswd", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbpasswd.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD'])
667 plantestsuite("samba3.blackbox.smbclient_auth.plain.ipv6", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IPV6', '$SERVER/$USERNAME', '$PASSWORD', smbclient3
, configuration
])
669 for env
in ["nt4_member", "ad_member"]:
670 plantestsuite("samba3.blackbox.net_cred_change", "%s:local" % env
, [os
.path
.join(samba3srcdir
, "script/tests/test_net_cred_change.sh"), configuration
])
672 plantestsuite("samba3.blackbox.net_cred_change_at", "ad_member_s3_join:local", [os
.path
.join(samba3srcdir
, "script/tests/test_net_cred_change_at.sh"), configuration
, '$DC_SERVER'])
674 "samba3.blackbox.update_keytab",
675 "ad_member_idmap_nss:local",
677 os
.path
.join(samba3srcdir
, "script/tests/test_update_keytab.sh"),
683 "samba3.blackbox.update_keytab_clustered",
684 "clusteredmember:local",
686 os
.path
.join(samba3srcdir
, "script/tests/test_update_keytab_clustered.sh"),
693 t
= "--krb5auth=$DOMAIN/$DC_USERNAME%$DC_PASSWORD"
694 plantestsuite("samba3.wbinfo_simple.%s" % t
, "%s:local" % env
, [os
.path
.join(srcdir(), "nsswitch/tests/test_wbinfo_simple.sh"), t
])
695 plantestsuite("samba3.wbinfo_name_lookup", env
,
696 [os
.path
.join(srcdir(),
697 "nsswitch/tests/test_wbinfo_name_lookup.sh"),
698 '$DOMAIN', '$REALM', '$DC_USERNAME'])
701 plantestsuite("samba3.wbinfo_user_info_cached", env
,
702 [os
.path
.join(srcdir(),
703 "nsswitch/tests/test_wbinfo_user_info_cached.sh"),
704 '$DOMAIN', '$REALM', 'joe', 'Secret007', '"Samba Users"', env
])
705 plantestsuite("samba3.wbinfo_user_info_cached.trustdom", env
,
706 [os
.path
.join(srcdir(),
707 "nsswitch/tests/test_wbinfo_user_info_cached.sh"),
708 '$TRUST_F_BOTH_DOMAIN', '$TRUST_F_BOTH_REALM', 'joe', 'Secret007', '"Samba Users"', env
])
710 env
= "ad_member:local"
711 plantestsuite("samba3.wbinfo_user_info", env
,
712 [os
.path
.join(srcdir(),
713 "nsswitch/tests/test_wbinfo_user_info.sh"),
714 '$DOMAIN', '$REALM', '$DOMAIN', 'alice', 'alice', 'jane', 'jane.doe', env
])
716 plantestsuite("samba3.winbind_call_depth_trace", env
,
717 [os
.path
.join(srcdir(),
718 "source3/script/tests/test_winbind_call_depth_trace.sh"),
719 smbcontrol
, configuration
, '$PREFIX', env
])
721 env
= "fl2008r2dc:local"
722 plantestsuite("samba3.wbinfo_user_info", env
,
723 [os
.path
.join(srcdir(),
724 "nsswitch/tests/test_wbinfo_user_info.sh"),
725 '$TRUST_DOMAIN', '$TRUST_REALM', '$DOMAIN', 'alice', 'alice', 'jane', 'jane.doe', env
])
727 env
= "nt4_member:local"
728 plantestsuite("samba3.wbinfo_sids_to_xids", env
,
729 [os
.path
.join(srcdir(),
730 "nsswitch/tests/test_wbinfo_sids_to_xids.sh")])
732 "samba.wbinfo_lookuprids_cache",
734 [os
.path
.join(samba3srcdir
,
735 "script/tests/test_wbinfo_lookuprids_cache.sh")])
738 t
= "WBCLIENT-MULTI-PING"
739 plantestsuite("samba3.smbtorture_s3.%s" % t
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//foo/bar', '""', '""', smbtorture3
, ""])
740 plantestsuite("samba3.substitutions", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_substitutions.sh"), "$SERVER", "alice", "Secret007", "$PREFIX"])
742 for env
in ["maptoguest", "simpleserver"]:
743 plantestsuite("samba3.blackbox.smbclient_auth.plain.local_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbclient3
, configuration
+ " --option=clientntlmv2auth=no --option=clientlanmanauth=yes"])
746 plantestsuite("samba3.blackbox.smbclient_auth.plain.bad_username", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', 'notmy$USERNAME', '$PASSWORD', smbclient3
, configuration
+ " --option=clientntlmv2auth=no --option=clientlanmanauth=yes"])
747 plantestsuite("samba3.blackbox.smbclient_ntlm.plain.NT1", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$USERNAME', '$PASSWORD', "baduser", smbclient3
, "NT1", configuration
])
748 plantestsuite("samba3.blackbox.smbclient_ntlm.plain.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$USERNAME', '$PASSWORD', "baduser", smbclient3
, "SMB3", configuration
])
751 env
= "nt4_dc_smb1_done"
752 plantestsuite("samba3.blackbox.smbclient_s3.NT1.plain", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "NT1"])
754 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.plain", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "SMB3"])
756 for env
in ["nt4_member", "ad_member"]:
757 plantestsuite("samba3.blackbox.smbclient_s3.NT1.plain.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "NT1"])
758 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.plain.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "SMB3"])
760 env
= "nt4_dc_smb1_done"
761 plantestsuite("samba3.blackbox.smbclient_s3.NT1.sign", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "NT1", "--client-protection=sign"])
763 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.sign", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$DC_USERNAME', '$DC_PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "SMB3", "--client-protection=sign"])
765 for env
in ["nt4_member", "ad_member"]:
766 plantestsuite("samba3.blackbox.smbclient_s3.NT1.sign.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "NT1", "--client-protection=sign"])
767 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.sign.member_creds", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$SERVER', '$SERVER/$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "SMB3", "--client-protection=sign"])
769 env
= "nt4_dc_smb1_done"
771 plantestsuite("samba3.blackbox.smbclient_s3.NT1.crypt", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "NT1", "--client-protection=encrypt"])
773 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.crypt", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_s3.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, wbinfo
, net
, configuration
, "SMB3", "--client-protection=encrypt"])
775 for env
in ["fileserver"]:
776 plantestsuite("samba3.blackbox.preserve_case.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_preserve_case.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, "NT1"])
777 plantestsuite("samba3.blackbox.preserve_case.SMB2+", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_preserve_case.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, '"SMB2 SMB3"'])
778 plantestsuite("samba3.blackbox.dfree_command.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_dfree_command.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, "NT1"])
779 plantestsuite("samba3.blackbox.dfree_command.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_dfree_command.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, "SMB3"])
780 plantestsuite("samba3.blackbox.dfree_quota.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_dfree_quota.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
, smbcquotas
, smbcacls
, "NT1"])
781 plantestsuite("samba3.blackbox.dfree_quota.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_dfree_quota.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
, smbcquotas
, smbcacls
, "SMB3"])
782 plantestsuite("samba3.blackbox.smbcquotas", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbcquota.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbcquotas
])
783 plantestsuite("samba3.blackbox.valid_users", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_valid_users.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
])
784 plantestsuite("samba3.blackbox.force_create_mode", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_force_create_mode.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', env
, smbclient3
])
785 plantestsuite("samba3.blackbox.dropbox", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_dropbox.sh"), '$SERVER', '$DOMAIN', 'gooduser', '$PASSWORD', '$PREFIX', env
, smbclient3
])
786 plantestsuite("samba3.blackbox.offline", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_offline.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/offline', smbclient3
])
787 plantestsuite("samba3.blackbox.recycle", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_recycle.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', '$PREFIX', smbclient3
])
788 plantestsuite("samba3.blackbox.fakedircreatetimes", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_fakedircreatetimes.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/fakedircreatetimes', '$PREFIX', smbclient3
])
789 plantestsuite("samba3.blackbox.shadow_copy2.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_shadow_copy.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbclient3
, '-m', 'NT1'])
790 plantestsuite("samba3.blackbox.shadow_copy2.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_shadow_copy.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbclient3
, '-m', 'SMB3'])
791 plantestsuite("samba3.blackbox.shadow_copy_torture", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_shadow_copy_torture.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbtorture4
, smbclient3
])
792 plantestsuite("samba3.blackbox.smbclient.forceuser_validusers", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_forceuser_validusers.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
])
793 plantestsuite("samba3.blackbox.netshareenum", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_shareenum.sh"), '$SERVER', '$USERNAME', '$PASSWORD', rpcclient
])
794 plantestsuite("samba3.blackbox.acl_xattr.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_acl_xattr.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, '-mNT1'])
795 plantestsuite("samba3.blackbox.acl_xattr.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_acl_xattr.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, '-mSMB3'])
796 plantestsuite("samba3.blackbox.worm.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_worm.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/worm', '$PREFIX', smbclient3
, '-mNT1'])
797 plantestsuite("samba3.blackbox.worm.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_worm.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/worm', '$PREFIX', smbclient3
, '-mSMB3'])
798 plantestsuite("samba3.blackbox.smb2.not_casesensitive", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smb2_not_casesensitive.sh"), '//$SERVER/tmp', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
])
799 plantestsuite("samba3.blackbox.inherit_owner.default.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'tmp', '0', '0', '-m', 'NT1'])
800 plantestsuite("samba3.blackbox.inherit_owner.default.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'tmp', '0', '0', '-m', 'SMB3'])
801 plantestsuite("samba3.blackbox.inherit_owner.full.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'inherit_owner', '1', '1', '-m', 'NT1'])
802 plantestsuite("samba3.blackbox.inherit_owner.full.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'inherit_owner', '1', '1', '-m', 'SMB3'])
803 plantestsuite("samba3.blackbox.inherit_owner.unix.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'inherit_owner_u', '0', '1', '-m', 'NT1'])
804 plantestsuite("samba3.blackbox.inherit_owner.unix.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'inherit_owner_u', '0', '1', '-m', 'SMB3'])
805 plantestsuite("samba3.blackbox.large_acl.NT1", env
+ "_smb1_done", [os
.path
.join(samba3srcdir
, "script/tests/test_large_acl.sh"), '$SERVER', '$USERNAME', '$PASSWORD', smbclient3
, smbcacls
, '-m', 'NT1'])
806 plantestsuite("samba3.blackbox.large_acl.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_large_acl.sh"), '$SERVER', '$USERNAME', '$PASSWORD', smbclient3
, smbcacls
, '-m', 'SMB3'])
807 plantestsuite("samba3.blackbox.give_owner", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_give_owner.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'tmp'])
808 plantestsuite("samba3.blackbox.delete_stream", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_delete_stream.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'acl_streams_xattr'])
809 plantestsuite("samba3.blackbox.homes", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_homes.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', '$PREFIX', smbclient3
, configuration
])
810 plantestsuite("samba3.blackbox.force_group_change", env
,
811 [os
.path
.join(samba3srcdir
, "script/tests/test_force_group_change.sh"),
812 '$SERVER', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
, smbcontrol
])
813 plantestsuite("samba3.blackbox.zero-data", env
,
814 [os
.path
.join(samba3srcdir
, "script/tests/test_zero_data.sh"),
815 '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH'])
816 plantestsuite("samba3.blackbox.timestamps", env
,
817 [os
.path
.join(samba3srcdir
, "script/tests/test_timestamps.sh"),
818 '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
])
819 plantestsuite("samba3.blackbox.volumeserialnumber", env
,
820 [os
.path
.join(samba3srcdir
, "script/tests/test_volume_serial_number.sh"),
821 '$SERVER_IP', '$USERNAME', '$PASSWORD', 'volumeserialnumber', smbclient3
])
822 plantestsuite("samba3.blackbox.smb1_system_security", env
+ "_smb1_done",
823 [os
.path
.join(samba3srcdir
, "script/tests/test_smb1_system_security.sh"),
824 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbtorture3
, net
, 'tmp'])
825 plantestsuite("samba3.blackbox.sacl_get_set", env
,
826 [os
.path
.join(samba3srcdir
, "script/tests/test_sacl_set_get.sh"),
827 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbtorture3
, net
, 'tmp'])
828 plantestsuite("samba3.blackbox.NT1.shadow_copy_torture", env
+ "_smb1_done",
829 [os
.path
.join(samba3srcdir
, "script/tests/test_smb1_shadow_copy_torture.sh"),
830 '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbtorture4
])
831 plantestsuite("samba3.blackbox.smbclient_iconv.SMB2", env
,
832 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_iconv.sh"),
833 '$SERVER', '$SERVER_IP', 'bad_iconv', '$USERNAME', '$PASSWORD', smbclient3
])
834 plantestsuite("samba3.blackbox.smbclient_iconv.NT1", env
+ "_smb1_done",
835 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_iconv.sh"),
836 '$SERVER', '$SERVER_IP', 'bad_iconv', '$USERNAME', '$PASSWORD', smbclient3
, '-mNT1'])
837 plantestsuite("samba3.blackbox.smbclient_iconv.CORE", env
+ "_smb1_done",
838 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_iconv.sh"),
839 '$SERVER', '$SERVER_IP', 'bad_iconv', '$USERNAME', '$PASSWORD', smbclient3
, '-mCORE'])
840 plantestsuite("samba3.blackbox.test_veto_rmdir", env
,
841 [os
.path
.join(samba3srcdir
, "script/tests/test_veto_rmdir.sh"),
842 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/veto', smbclient3
])
843 plantestsuite("samba3.blackbox.test_dangle_rmdir", env
,
844 [os
.path
.join(samba3srcdir
, "script/tests/test_delete_veto_files_only_rmdir.sh"),
845 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/veto', smbclient3
])
846 plantestsuite("samba3.blackbox.test_list_servers.NT1",
848 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_list_servers.sh"),
855 plantestsuite("samba3.blackbox.test_list_servers.SMB2",
857 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_list_servers.sh"),
865 plantestsuite("samba3.blackbox.test_symlink_traversal.SMB2", env
,
866 [os
.path
.join(samba3srcdir
, "script/tests/test_symlink_traversal_smb2.sh"),
867 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/local_symlinks',
868 '$PREFIX', smbclient3
])
870 plantestsuite("samba3.blackbox.test_symlink_traversal.SMB1", env
+ "_smb1_done",
871 [os
.path
.join(samba3srcdir
, "script/tests/test_symlink_traversal_smb1.sh"),
872 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/local_symlinks',
873 '$PREFIX', smbclient3
])
875 plantestsuite("samba3.blackbox.test_symlink_traversal.SMB1.posix", env
+ "_smb1_done",
876 [os
.path
.join(samba3srcdir
, "script/tests/test_symlink_traversal_smb1_posix.sh"),
877 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/local_symlinks',
878 '$PREFIX', smbclient3
])
880 plantestsuite("samba3.blackbox.test_symlink_rename.SMB1.posix", env
+ "_smb1_done",
881 [os
.path
.join(samba3srcdir
, "script/tests/test_symlink_rename_smb1_posix.sh"),
882 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/local_symlinks',
883 '$PREFIX', smbclient3
])
885 plantestsuite("samba3.blackbox.test_veto_files", env
,
886 [os
.path
.join(samba3srcdir
, "script/tests/test_veto_files.sh"),
887 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/veto', smbclient3
])
889 plantestsuite("samba3.blackbox.stream_dir_rename", env
,
890 [os
.path
.join(samba3srcdir
, "script/tests/test_stream_dir_rename.sh"),
891 '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
])
893 plantestsuite("samba3.blackbox.test_symlink_dosmode", env
,
894 [os
.path
.join(samba3srcdir
, "script/tests/test_symlink_dosmode.sh"),
895 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/local_symlinks',
896 '$PREFIX', smbclient3
])
901 # Test smbclient/tarmode
902 plantestsuite("samba3.blackbox.smbclient_tarmode.NT1", env
+ "_smb1_done",
903 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.sh"),
904 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD',
905 '$LOCAL_PATH/tarmode/smbclient_tar', '$PREFIX', smbclient3
, configuration
, "-mNT1"])
906 plantestsuite("samba3.blackbox.smbclient_tarmode.SMB3", env
,
907 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.sh"),
908 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD',
909 '$LOCAL_PATH/tarmode/smbclient_tar', '$PREFIX', smbclient3
, configuration
, "-mSMB3"])
911 # Test suite for new smbclient/tar with libarchive (GSoC 13)
912 plantestsuite("samba3.blackbox.smbclient_tar.NT1", env
+ "_smb1_done",
913 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.pl"),
914 '-n', '$SERVER', '-i', '$SERVER_IP', '-s', 'tarmode2',
915 '-u', '$USERNAME', '-p', '$PASSWORD', '-l', '$LOCAL_PATH/tarmode2',
916 '-d', 'smbclient_tar.NT1', '-b', smbclient3
,
917 '--subunit', '--', configuration
, '-mNT1'])
918 plantestsuite("samba3.blackbox.smbclient_tar.SMB3", env
,
919 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.pl"),
920 '-n', '$SERVER', '-i', '$SERVER_IP', '-s', 'tarmode2',
921 '-u', '$USERNAME', '-p', '$PASSWORD', '-l', '$LOCAL_PATH/tarmode2',
922 '-d', 'smbclient_tar.SMB3', '-b', smbclient3
,
923 '--subunit', '--', configuration
, '-mSMB3'])
924 plantestsuite("samba3.blackbox.fifo", env
,
925 [os
.path
.join(samba3srcdir
, "script/tests/test_fifo.sh"),
926 '$SERVER', '$DOMAIN', 'gooduser', '$PASSWORD', '$PREFIX', env
, smbclient3
])
927 plantestsuite("samba3.blackbox.test_full_audit_success_badname", env
,
928 [os
.path
.join(samba3srcdir
, "script/tests/test_bad_auditnames.sh"),
929 '$SERVER', 'full_audit_success_bad_name', '$USERNAME', '$PASSWORD', smbclient3
])
930 plantestsuite("samba3.blackbox.test_full_audit_fail_badname", env
,
931 [os
.path
.join(samba3srcdir
, "script/tests/test_bad_auditnames.sh"),
932 '$SERVER', 'full_audit_fail_bad_name', '$USERNAME', '$PASSWORD', smbclient3
])
933 plantestsuite("samba3.blackbox.fruit.resource_stream", env
,
934 [os
.path
.join(samba3srcdir
, "script/tests/test_fruit_resource_stream.sh"),
935 '$SERVER', 'fruit_resource_stream', '$USERNAME', '$PASSWORD',
936 '$LOCAL_PATH/fruit_resource_stream', smbclient3
])
938 plantestsuite("samba3.blackbox.smbclient_old_dir", "fileserver_smb1",
939 [os
.path
.join(samba3srcdir
,
940 "script/tests/test_old_dirlisting.sh"),
941 timelimit
, smbclient3
])
943 for env
in ["fileserver:local"]:
944 plantestsuite("samba3.blackbox.net_usershare", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_net_usershare.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbclient3
])
946 plantestsuite("samba3.blackbox.smbstatus", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbstatus.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$USERID', '$LOCAL_PATH', '$PREFIX', smbclient3
, smbstatus
, configuration
, "SMB3"])
947 plantestsuite("samba3.blackbox.net_registry_import", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_import.sh"), '$SERVER', '$LOCAL_PATH', '$USERNAME', '$PASSWORD'])
950 plantestsuite("samba3.blackbox.smbget",
953 os
.path
.join(samba3srcdir
, "script/tests/test_smbget.sh"),
961 '$DOMAIN_USER_PASSWORD',
962 '$LOCAL_PATH/smbget',
966 plantestsuite("samba3.blackbox.server_addresses",
968 [os
.path
.join(samba3srcdir
,
969 "script/tests/test_server_addresses.sh")])
971 # TODO encrypted against member, with member creds, and with DC creds
972 plantestsuite("samba3.blackbox.net.misc NT1", "ad_dc_smb1_done:local",
973 [os
.path
.join(samba3srcdir
, "script/tests/test_net_misc.sh"),
974 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, "NT1"])
975 plantestsuite("samba3.blackbox.net.misc SMB3", "ad_dc:local",
976 [os
.path
.join(samba3srcdir
, "script/tests/test_net_misc.sh"),
977 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, "SMB3"])
978 plantestsuite("samba3.blackbox.net.local.registry", "nt4_dc:local",
979 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry.sh"),
980 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
981 plantestsuite("samba3.blackbox.net.registry.check", "nt4_dc:local",
982 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_check.sh"),
983 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, dbwrap_tool
])
984 plantestsuite("samba3.blackbox.net.rpc.registry", "nt4_dc",
985 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry.sh"),
986 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, 'rpc'])
988 plantestsuite("samba3.blackbox.net.local.registry.roundtrip", "nt4_dc:local",
989 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_roundtrip.sh"),
990 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
991 plantestsuite("samba3.blackbox.net.rpc.registry.roundtrip", "nt4_dc",
992 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_roundtrip.sh"),
993 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, 'rpc'])
995 plantestsuite("samba3.blackbox.net.local.conf", "nt4_dc:local",
996 [os
.path
.join(samba3srcdir
, "script/tests/test_net_conf.sh"),
997 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
998 plantestsuite("samba3.blackbox.net.rpc.conf", "nt4_dc",
999 [os
.path
.join(samba3srcdir
, "script/tests/test_net_conf.sh"),
1000 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, 'rpc'])
1003 plantestsuite("samba3.blackbox.testparm", "nt4_dc:local",
1004 [os
.path
.join(samba3srcdir
, "script/tests/test_testparm_s3.sh"),
1008 "samba3.pthreadpool", "none",
1009 [os
.path
.join(samba3srcdir
, "script/tests/test_pthreadpool.sh")])
1011 if with_pthreadpool
and have_ldwrap
:
1012 plantestsuite("samba3.pthreadpool_cmocka", "none",
1013 [os
.path
.join(bindir(), "pthreadpooltest_cmocka")])
1015 if with_pthreadpool
:
1016 plantestsuite("samba3.libwbclient_threads",
1018 [os
.path
.join(samba3srcdir
,
1019 "script/tests/test_libwbclient_threads.sh"),
1020 "$DOMAIN", "$DC_USERNAME"])
1021 plantestsuite("b15464_testcase", "none",
1022 [os
.path
.join(bbdir
, "b15464-testcase.sh"),
1023 binpath("b15464-testcase"),
1024 binpath("plugins/libnss_winbind.so.2")])
1026 plantestsuite("samba3.test_nfs4_acl", "none",
1027 [os
.path
.join(bindir(), "test_nfs4_acls"),
1030 plantestsuite("samba3.test_vfs_full_audit", "none",
1031 [os
.path
.join(bindir(), "test_vfs_full_audit"),
1034 plantestsuite("samba3.test_vfs_posixacl", "none",
1035 [os
.path
.join(bindir(), "test_vfs_posixacl"),
1038 if is_module_enabled("vfs_gpfs"):
1039 plantestsuite("samba3.test_vfs_gpfs", "none",
1040 [os
.path
.join(bindir(), "test_vfs_gpfs")])
1043 "samba3.resolvconf", "none",
1044 [os
.path
.join(samba3srcdir
, "script/tests/test_resolvconf.sh")])
1046 plantestsuite("samba3.tevent_glib_glue", "none",
1047 [os
.path
.join(samba3srcdir
, "script/tests/test_tevent_glib_glue.sh")])
1049 plantestsuite("samba3.async_req", "nt4_dc",
1050 [os
.path
.join(samba3srcdir
, "script/tests/test_async_req.sh")])
1054 base
= ["base.attr", "base.charset", "base.chkpath", "base.createx_access", "base.defer_open", "base.delaywrite", "base.delete",
1055 "base.deny1", "base.deny2", "base.deny3", "base.denydos", "base.dir1", "base.dir2",
1056 "base.disconnect", "base.fdpass", "base.lock",
1057 "base.mangle", "base.negnowait", "base.ntdeny1",
1058 "base.ntdeny2", "base.open", "base.openattr", "base.properties", "base.rename", "base.rw1",
1059 "base.secleak", "base.tcon", "base.tcondev", "base.trans2", "base.unlink", "base.vuid",
1060 "base.xcopy", "base.samba3error"]
1062 raw
= ["raw.acls", "raw.chkpath", "raw.close", "raw.composite", "raw.context", "raw.eas",
1063 "raw.ioctl", "raw.lock", "raw.mkdir", "raw.mux", "raw.notify", "raw.open", "raw.oplock",
1064 "raw.qfileinfo", "raw.qfsinfo", "raw.read", "raw.rename", "raw.search", "raw.seek",
1065 "raw.sfileinfo.base", "raw.sfileinfo.bug", "raw.streams", "raw.unlink", "raw.write",
1066 "raw.samba3hide", "raw.samba3badpath", "raw.sfileinfo.rename", "raw.session",
1067 "raw.samba3caseinsensitive", "raw.samba3posixtimedlock",
1068 "raw.samba3rootdirfid", "raw.samba3rootdirfid2", "raw.sfileinfo.end-of-file",
1069 "raw.bench-oplock", "raw.bench-lock", "raw.bench-open", "raw.bench-tcon",
1070 "raw.samba3checkfsp", "raw.samba3closeerr", "raw.samba3oplocklogoff", "raw.samba3badnameblob"]
1072 smb2
= smbtorture4_testsuites("smb2.")
1074 rpc
= ["rpc.authcontext",
1076 "rpc.samba3.srvsvc",
1077 "rpc.samba3.sharesec",
1078 "rpc.samba3.spoolss",
1079 "rpc.samba3.wkssvc",
1080 "rpc.samba3.winreg",
1081 "rpc.samba3.getaliasmembership-0",
1082 "rpc.samba3.netlogon",
1083 "rpc.samba3.sessionkey",
1084 "rpc.samba3.getusername",
1085 "rpc.samba3.smb1-pipe-name",
1086 "rpc.samba3.smb2-pipe-name",
1087 "rpc.samba3.smb-reauth1",
1088 "rpc.samba3.smb-reauth2",
1089 "rpc.samba3.lsa_over_netlogon",
1090 "rpc.samba3.pipes_supported_interfaces",
1096 "rpc.spoolss.printserver",
1098 "rpc.spoolss.notify",
1099 "rpc.spoolss.printer",
1100 "rpc.spoolss.driver",
1103 "rpc.lsa.lookupsids",
1104 "rpc.lsa.lookupnames",
1105 "rpc.lsa.privileges",
1110 "rpc.samr.users.privileges",
1111 "rpc.samr.passwords.default",
1112 "rpc.samr.passwords.pwdlastset",
1113 "rpc.samr.passwords.lockout",
1114 "rpc.samr.passwords.badpwdcount",
1115 "rpc.samr.large-dc",
1116 "rpc.samr.machine.auth",
1118 "rpc.samr.passwords.validate",
1119 "rpc.samr.handletype",
1120 "rpc.netlogon.admin",
1121 "rpc.netlogon.zerologon",
1124 "rpc.bench-schannel1",
1125 "rpc.schannel_anon_setpw",
1132 local
= ["local.nss"]
1134 idmap
= ["idmap.rfc2307", "idmap.alloc", "idmap.rid", "idmap.ad", "idmap.nss"]
1136 rap
= ["rap.basic", "rap.rpc", "rap.printing", "rap.sam"]
1138 unix
= ["unix.info2", "unix.whoami"]
1145 "vfs.fruit_netatalk",
1146 "vfs.fruit_file_id",
1147 "vfs.fruit_timemachine",
1148 "vfs.fruit_conversion",
1152 tests
= base
+ raw
+ smb2
+ rpc
+ unix
+ local
+ rap
+ nbt
+ idmap
+ vfs
1155 if t
== "base.delaywrite" or t
== "base.deny1" or t
== "base.deny2":
1156 plansmbtorture4testsuite(t
, "fileserver_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD --maximum-runtime=900')
1157 elif t
== "base.createx_access":
1158 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD -k yes --maximum-runtime=900')
1159 elif t
== "rap.sam":
1160 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=doscharset=ISO-8859-1')
1161 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=doscharset=ISO-8859-1')
1162 elif t
== "winbind.pac":
1163 plansmbtorture4testsuite(t
, "ad_member:local", '//$SERVER/tmp --realm=$REALM --machine-pass --option=torture:addc=$DC_SERVER', description
="machine account")
1164 elif t
== "unix.whoami":
1165 plansmbtorture4testsuite(t
, "nt4_member:local", '//$SERVER/tmp --machine-pass', description
="machine account")
1166 plansmbtorture4testsuite(t
, "ad_dc_smb1:local", '//$SERVER/tmp --machine-pass', description
="machine account")
1167 plansmbtorture4testsuite(t
, "ad_member:local", '//$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER', description
="machine account")
1168 plansmbtorture4testsuite(t
, "ad_dc_smb1:local", '//$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER', description
="machine account")
1169 for env
in ["nt4_dc_smb1", "nt4_member"]:
1170 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
1171 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmpguest -U%', description
='anonymous connection')
1172 for env
in ["ad_dc_smb1", "ad_member"]:
1173 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -U$DC_USERNAME@$REALM%$DC_PASSWORD --option=torture:addc=$DC_SERVER')
1174 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -k yes -U$DC_USERNAME@$REALM%$DC_PASSWORD --option=torture:addc=$DC_SERVER', description
='kerberos connection')
1175 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmpguest -U% --option=torture:addc=$DC_SERVER', description
='anonymous connection')
1176 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -k no -U$DC_USERNAME@$REALM%$DC_PASSWORD', description
='ntlm user@realm')
1177 elif t
== "raw.samba3posixtimedlock":
1178 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmpguest -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc_smb1/share')
1179 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/brl_delay_inject1 -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc_smb1/share',
1180 description
="brl_delay_inject1")
1181 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/brl_delay_inject2 -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc_smb1/share',
1182 description
="brl_delay_inject2")
1183 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER_IP/tmpguest -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/ad_dc_smb1/share')
1184 elif t
== "smb2.samba3misc":
1185 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmpguest -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share')
1186 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/brl_delay_inject1 -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share',
1187 description
="brl_delay_inject1")
1188 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/brl_delay_inject2 -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share',
1189 description
="brl_delay_inject2")
1190 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmpguest -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/ad_dc/share')
1191 elif t
== "raw.chkpath":
1192 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
1193 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
1194 elif t
== "raw.samba3hide" or t
== "raw.samba3checkfsp" or t
== "raw.samba3closeerr":
1195 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1196 plansmbtorture4testsuite(t
, "fileserver_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1197 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1198 elif t
== "raw.session":
1199 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD', 'plain')
1200 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmpenc -U$USERNAME%$PASSWORD', 'enc')
1201 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -k no -U$USERNAME%$PASSWORD', 'ntlm')
1202 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -k yes -U$USERNAME%$PASSWORD', 'krb5')
1203 elif t
== "smb2.session":
1204 alice_creds
= "--option='torture:user2name=alice' --option='torture:user2password=Secret007'"
1205 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD', 'plain')
1206 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmpenc -U$USERNAME%$PASSWORD', 'enc')
1207 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -k no -U$USERNAME%$PASSWORD ' + alice_creds
, 'ntlm')
1208 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -k yes -U$USERNAME%$PASSWORD ' + alice_creds
, 'krb5')
1209 # Certain tests fail when run against ad_member with MIT kerberos because the private krb5.conf overrides the provisioned lib/krb5.conf,
1210 # ad_member_idmap_rid sets "create krb5.conf = no"
1211 plansmbtorture4testsuite(t
, "ad_member_idmap_rid", '//$SERVER/tmp -k yes -U$DC_USERNAME@$REALM%$DC_PASSWORD', 'krb5')
1212 elif t
== "smb2.session-require-signing":
1213 plansmbtorture4testsuite(t
, "ad_member_idmap_rid", '//$SERVER_IP/tmp -U$DC_USERNAME@$REALM%$DC_PASSWORD')
1214 elif t
== "rpc.lsa":
1215 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD', 'over ncacn_np ')
1216 plansmbtorture4testsuite(t
, "nt4_dc", 'ncacn_ip_tcp:$SERVER_IP -U$USERNAME%$PASSWORD', 'over ncacn_ip_tcp ')
1217 elif t
.startswith("rpc.lsa."):
1218 # This avoids the rpc.lsa.* tests running under ncacn_ip_tcp:
1219 # (there is rpc.lsa.secrets fails due to OpenPolicy2 for example)
1220 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1221 elif t
== "rpc.mdssvc":
1222 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1223 elif t
== "smb2.durable-open" or t
== "smb2.durable-v2-open" or t
== "smb2.replay" or t
== "smb2.durable-v2-delay":
1224 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/durable -U$USERNAME%$PASSWORD')
1225 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/durable -U$USERNAME%$PASSWORD')
1226 elif t
== "base.rw1":
1227 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1228 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/valid-users-tmp -U$USERNAME%$PASSWORD')
1229 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/write-list-tmp -U$USERNAME%$PASSWORD')
1230 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1231 elif t
== "idmap.rfc2307":
1232 plantestsuite(t
, "ad_member_rfc2307",
1233 [os
.path
.join(samba3srcdir
,
1234 "../nsswitch/tests/test_idmap_rfc2307.sh"),
1236 'Administrator', '2000000',
1238 '"Domain Users"', '2000002',
1239 'DnsAdmins', '2000003',
1241 'ou=idmap,dc=samba,dc=example,dc=com',
1242 '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD'])
1243 elif t
== "idmap.alloc":
1244 plantestsuite(t
, "ad_member_rfc2307", [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_idmap_nss.sh"), '$DOMAIN'])
1245 elif t
== "idmap.nss":
1246 plantestsuite(t
, "ad_member_idmap_nss:local", [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_idmap_nss_use_upn.sh")])
1247 elif t
== "idmap.rid":
1248 plantestsuite(t
, "ad_member_idmap_rid", [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_idmap_rid.sh"), '$DOMAIN', '2000000'])
1250 "admem_idmap_autorid",
1251 [os
.path
.join(samba3srcdir
,
1252 "../nsswitch/tests/test_idmap_rid.sh"),
1255 elif t
== "idmap.ad":
1256 plantestsuite(t
, "ad_member_idmap_ad", [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_idmap_ad.sh"), '$DOMAIN', '$DC_SERVER', '$DC_PASSWORD', '$TRUST_DOMAIN', '$TRUST_SERVER', '$TRUST_PASSWORD'])
1257 elif t
== "raw.acls":
1258 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1259 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_simple_40 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-simple-40')
1260 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_special_40 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-special-40')
1261 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_simple_41 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-simple-41')
1262 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_xdr_40 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-xdr-40')
1263 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_xdr_41 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-xdr-41')
1264 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_nfs_40 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-nfs-40')
1265 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/nfs4acl_nfs_41 -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-nfs-41')
1266 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
1267 elif t
== "smb2.ioctl":
1268 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/fs_specific -U$USERNAME%$PASSWORD', 'fs_specific')
1269 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1270 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1271 elif t
== "smb2.ioctl-on-stream":
1272 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1273 elif t
== "smb2.lock":
1274 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', 'aio')
1275 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1276 elif t
== "raw.lock" or t
== "base.lock":
1277 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1278 elif t
== "raw.read":
1279 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1280 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', 'aio')
1281 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1282 elif t
== "raw.search":
1283 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1284 # test the dirsort module.
1285 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmpsort -U$USERNAME%$PASSWORD')
1286 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1287 elif t
== "vfs.fruit":
1288 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit', 'metadata_netatalk')
1289 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_metadata_stream -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit', 'metadata_stream')
1290 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_stream_depot -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit_stream_depot', 'streams_depot')
1291 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_delete_empty_adfiles -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share --option=torture:share2=vfs_wo_fruit', 'fruit_delete_empty_adfiles')
1292 elif t
== "vfs.fruit_netatalk":
1293 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_xattr -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share')
1294 elif t
== "vfs.fruit_timemachine":
1295 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_timemachine -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share')
1296 elif t
== "vfs.fruit_file_id":
1297 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_zero_fileid -U$USERNAME%$PASSWORD')
1298 elif t
== "vfs.fruit_conversion":
1299 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:share2=vfs_fruit_wipe_intentionally_left_blank_rfork --option=torture:delete_empty_adfiles=false', 'wipe_intentionally_left_blank_rfork')
1300 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:share2=vfs_fruit_delete_empty_adfiles --option=torture:delete_empty_adfiles=true', 'delete_empty_adfiles')
1301 elif t
== "vfs.unfruit":
1302 creds
= '-U$USERNAME%$PASSWORD'
1303 share2
= '--option=torture:share2=tmp'
1304 netopt
= '--option=torture:net=%s' % net
1305 shareopt
= '--option=torture:sharename'
1307 plansmbtorture4testsuite(t
, "nt4_dc:local", '//$SERVER_IP/vfs_fruit %s %s %s %s=%s' % (creds
, share2
, netopt
, shareopt
, 'vfs_fruit'), 'metadata_netatalk')
1308 plansmbtorture4testsuite(t
, "nt4_dc:local", '//$SERVER_IP/vfs_fruit_metadata_stream %s %s %s %s=%s' % (creds
, share2
, netopt
, shareopt
, 'vfs_fruit_metadata_stream'), 'metadata_stream')
1309 plansmbtorture4testsuite(t
, "nt4_dc:local", '//$SERVER_IP/vfs_fruit_stream_depot %s %s %s %s=%s' % (creds
, share2
, netopt
, shareopt
, 'vfs_fruit_stream_depot'), 'streams_depot')
1310 elif t
== "rpc.schannel_anon_setpw":
1311 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$%', description
="anonymous password set")
1312 plansmbtorture4testsuite(t
, "nt4_dc_schannel", '//$SERVER_IP/tmp -U$%', description
="anonymous password set (schannel enforced server-side)")
1313 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$%', description
="anonymous password set")
1314 elif t
== "local.nss":
1315 for env
in ["nt4_dc:local", "ad_member:local", "nt4_member:local", "ad_dc:local"]:
1316 plansmbtorture4testsuite(t
,
1318 '//$SERVER/tmp -U$USERNAME%$PASSWORD',
1322 elif t
== "smb2.change_notify_disabled":
1323 plansmbtorture4testsuite(t
, "simpleserver", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1324 elif t
== "smb2.notify" or t
== "raw.notify" or t
== "smb2.oplock" or t
== "raw.oplock":
1326 if t
== "raw.notify" or t
== "raw.oplock":
1327 tmp_env
= "nt4_dc_smb1"
1328 # These tests are a little slower so don't duplicate them with ad_dc
1329 plansmbtorture4testsuite(t
, tmp_env
, '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --client-protection=sign')
1330 elif t
== "smb2.dosmode":
1331 plansmbtorture4testsuite(t
, "simpleserver", '//$SERVER/dosmode -U$USERNAME%$PASSWORD')
1332 elif t
== "smb2.kernel-oplocks":
1333 if have_linux_kernel_oplocks
:
1334 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER/kernel_oplocks -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share')
1335 elif t
== "smb2.notify-inotify":
1337 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1338 elif t
== "vfs.acl_xattr":
1339 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1340 elif t
== "smb2.compound_find":
1341 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER/compound_find -U$USERNAME%$PASSWORD')
1342 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1343 elif t
== "smb2.compound":
1344 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1345 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', 'aio')
1346 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1347 elif t
== "smb2.compound_async":
1348 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/aio_delay_inject -U$USERNAME%$PASSWORD')
1349 elif t
== "smb2.ea":
1350 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER/ea_acl_xattr --option=torture:acl_xattr_name=hackme -U$USERNAME%$PASSWORD')
1351 elif t
== "rpc.samba3.netlogon" or t
== "rpc.samba3.sessionkey":
1352 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:wksname=samba3rpctest')
1353 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD --option=torture:wksname=samba3rpctest')
1354 elif t
== "smb2.streams":
1355 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1356 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1357 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/streams_xattr -U$USERNAME%$PASSWORD', 'streams_xattr')
1358 elif t
== "smb2.stream-inherit-perms":
1359 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER/inherit_perms -U$USERNAME%$PASSWORD')
1360 elif t
== "smb2.aio_delay":
1361 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/aio_delay_inject -U$USERNAME%$PASSWORD')
1362 elif t
== "smb2.delete-on-close-perms":
1363 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1364 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/delete_readonly -U$USERNAME%$PASSWORD --option=torture:delete_readonly=true')
1365 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1366 elif t
== "smb2.fileid":
1367 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_xattr -U$USERNAME%$PASSWORD')
1368 elif t
== "smb2.acls_non_canonical":
1369 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/acls_non_canonical -U$USERNAME%$PASSWORD')
1370 elif t
== "smb2.async_dosmode":
1371 plansmbtorture4testsuite("smb2.async_dosmode",
1373 "//$SERVER_IP/async_dosmode_shadow_copy2 -U$USERNAME%$PASSWORD")
1374 elif t
== "smb2.rename":
1375 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1376 elif t
== "smb2.twrp":
1377 # This is being driven by samba3.blackbox.shadow_copy_torture
1379 elif t
== "smb2.create_no_streams":
1380 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/nfs4acl_simple_40 -U$USERNAME%$PASSWORD')
1381 elif t
== "smb2.lease":
1382 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1383 elif t
== "smb2.dirlease":
1384 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1385 elif t
== "rpc.wkssvc":
1386 plansmbtorture4testsuite(t
, "ad_member", '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
1387 elif t
== "rpc.srvsvc":
1388 plansmbtorture4testsuite(t
, "ad_member", '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
1389 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
1390 elif t
== "rpc.samba3.lsa_over_netlogon":
1391 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1392 elif t
== "rpc.samba3.pipes_supported_interfaces":
1393 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1394 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1395 elif t
== "rpc.spoolss.notify":
1396 plansmbtorture4testsuite(t
, "ad_member", '//$SERVER_IP/tmp -U$DC_USERNAME%$DC_PASSWORD')
1397 elif (t
in base
and t
!= "base.charset") \
1398 or (t
in rap
and t
!= "rap.printing") \
1400 or (t
in ["rpc.authcontext",
1403 "rpc.samba3.getusername",
1404 "rpc.samba3.sharesec",
1405 "rpc.samba3.smb1-pipe-name",
1406 "rpc.samba3.smb-reauth1",
1407 "rpc.samba3.smb-reauth2",
1408 "rpc.samba3.spoolss",
1409 "rpc.samba3.wkssvc",]) \
1410 or (t
in ["raw.close",
1416 "raw.samba3badnameblob",
1417 "raw.samba3badpath",
1418 "raw.samba3caseinsensitive",
1419 "raw.samba3oplocklogoff",
1420 "raw.samba3posixtimedlock",
1421 "raw.samba3rootdirfid",
1422 "raw.samba3rootdirfid2",
1424 "raw.sfileinfo.bug",
1425 "raw.sfileinfo.end-of-file",
1426 "raw.sfileinfo.rename",
1430 plansmbtorture4testsuite(t
, "nt4_dc_smb1", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1431 plansmbtorture4testsuite(t
, "ad_dc_smb1", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1432 elif t
in ["base.mangle", "base.tcon", "raw.mkdir"]:
1433 plansmbtorture4testsuite(t
, "nt4_dc_smb1_done", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1434 plansmbtorture4testsuite(t
, "ad_dc_smb1_done", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1435 elif t
== "rpc.samr.passwords.validate":
1436 plansmbtorture4testsuite(t
, "nt4_dc", 'ncacn_ip_tcp:$SERVER_IP[seal] -U$USERNAME%$PASSWORD', 'over ncacn_ip_tcp ')
1437 elif t
== "rpc.samr.users.privileges":
1438 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:nt4_dc=true')
1439 elif t
== "rpc.samr" or t
.startswith("rpc.samr."):
1440 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1442 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
1443 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
1446 "idmap_ad.ticket_expiry",
1447 "ad_member_idmap_ad:local",
1448 [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_ticket_expiry.sh"),
1451 plansmbtorture4testsuite(
1456 plansmbtorture4testsuite(
1459 '//$SERVER/external_streams_depot -U$USERNAME%$PASSWORD')
1461 vfs_io_uring_tests
= {
1468 for t
in vfs_io_uring_tests
:
1469 plansmbtorture4testsuite(t
, "fileserver",
1470 '//$SERVER_IP/io_uring -U$USERNAME%$PASSWORD',
1473 test
= 'rpc.lsa.lookupsids'
1474 auth_options
= ["", "ntlm", "spnego", "spnego,ntlm", "spnego,smb1", "spnego,smb2"]
1475 signseal_options
= ["", ",connect", ",packet", ",sign", ",seal"]
1476 endianness_options
= ["", ",bigendian"]
1477 for s
in signseal_options
:
1478 for e
in endianness_options
:
1479 for a
in auth_options
:
1480 binding_string
= "ncacn_np:$SERVER[%s%s%s]" % (a
, s
, e
)
1481 options
= binding_string
+ " -U$USERNAME%$PASSWORD"
1483 plansmbtorture4testsuite(test
, "nt4_dc_smb1_done", options
, 'over ncacn_np with [%s%s%s] ' % (a
, s
, e
))
1485 plansmbtorture4testsuite(test
, "nt4_dc", options
, 'over ncacn_np with [%s%s%s] ' % (a
, s
, e
))
1487 f
'samba3.blackbox.rpcclient over ncacn_np with [{a}{s}{e}] ',
1489 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient.sh"),
1491 options
+ " -c getusername",
1494 f
'samba3.blackbox.rpcclient over ncalrpc with [{a}{s}{e}] ',
1496 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient.sh"),
1498 f
'ncalrpc:[{a}{s}{e}] -c epmmap',
1502 f
'samba3.blackbox.rpcclient over ncacn_ip_tcp with [{a}{s}{e}] ',
1504 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient.sh"),
1506 f
'ncacn_ip_tcp:"$SERVER_IP"[{a}{s}{e}] -c epmmap -U"$USERNAME"%"$PASSWORD"',
1509 # We should try more combinations in future, but this is all
1510 # the pre-calculated credentials cache supports at the moment
1512 # As the ktest env requires SMB3_00 we need to use "smb2" until
1513 # dcerpc client code in smbtorture support autonegotiation
1514 # of any smb dialect.
1517 binding_string
= "ncacn_np:$SERVER[%s%s%s]" % (a
, s
, e
)
1518 options
= binding_string
+ " --use-krb5-ccache=$PREFIX/ktest/krb5_ccache-2"
1519 plansmbtorture4testsuite(test
, "ktest", options
, 'krb5 with old ccache ncacn_np with [%s%s%s] ' % (a
, s
, e
))
1521 options
= binding_string
+ " --use-krb5-ccache=$PREFIX/ktest/krb5_ccache-3"
1522 plansmbtorture4testsuite(test
, "ktest", options
, 'krb5 ncacn_np with [%s%s%s] ' % (a
, s
, e
))
1524 auth_options2
= ["krb5", "spnego,krb5"]
1525 for a
in auth_options2
:
1526 binding_string
= "ncacn_np:$SERVER[%s%s%s]" % (a
, s
, e
)
1529 f
'samba3.blackbox.rpcclient krb5 ncacn_np with [{a}{s}{e}] ',
1531 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient.sh"),
1532 "$PREFIX/ktest/krb5_ccache-3",
1534 "--use-krb5-ccache=$PREFIX/ktest/krb5_ccache-3 -c getusername",
1537 plantestsuite("samba3.blackbox.rpcclient_samlogon", "ad_member:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_samlogon.sh"),
1538 "$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$DC_SERVER", configuration
])
1539 plantestsuite("samba3.blackbox.sharesec", "simpleserver:local",
1540 [os
.path
.join(samba3srcdir
, "script/tests/test_sharesec.sh"),
1541 configuration
, os
.path
.join(bindir(), "sharesec"),
1542 os
.path
.join(bindir(), "net"), "tmp"])
1544 plantestsuite("samba3.blackbox.close-denied-share", "simpleserver:local",
1545 [os
.path
.join(samba3srcdir
,
1546 "script/tests/test_close_denied_share.sh"),
1548 os
.path
.join(bindir(), "sharesec"),
1549 os
.path
.join(bindir(), "smbclient"),
1550 os
.path
.join(bindir(), "smbcontrol"),
1554 plantestsuite("samba3.blackbox.force-close-share", "simpleserver:local",
1555 [os
.path
.join(samba3srcdir
,
1556 "script/tests/test_force_close_share.sh"),
1558 os
.path
.join(bindir(), "smbclient"),
1559 os
.path
.join(bindir(), "smbcontrol"),
1562 '$PREFIX/force-close-share'])
1564 plantestsuite("samba3.blackbox.open-eintr", "simpleserver:local",
1565 [os
.path
.join(samba3srcdir
,
1566 "script/tests/test_open_eintr.sh"),
1568 os
.path
.join(bindir(), "smbclient"),
1569 os
.path
.join(bindir(), "smbcontrol"),
1573 plantestsuite("samba3.blackbox.chdir-cache", "simpleserver:local",
1574 [os
.path
.join(samba3srcdir
,
1575 "script/tests/test_chdir_cache.sh"),
1577 os
.path
.join(bindir(), "smbclient"),
1578 os
.path
.join(bindir(), "smbcontrol"),
1584 plantestsuite("samba3.blackbox.rofs_error", "simpleserver",
1585 [os
.path
.join(samba3srcdir
, "script/tests/test_rofs.sh"),
1587 os
.path
.join(bindir(), "smbclient"),
1591 plantestsuite("samba3.blackbox.zero_readsize",
1592 "simpleserver:local",
1593 [os
.path
.join(samba3srcdir
,
1594 "script/tests/test_zero_readsize.sh"),
1596 os
.path
.join(bindir(), "smbclient"),
1597 os
.path
.join(bindir(), "smbcontrol"),
1603 plantestsuite("samba3.blackbox.netfileenum", "simpleserver:local",
1604 [os
.path
.join(samba3srcdir
,
1605 "script/tests/test_netfileenum.sh"),
1606 os
.path
.join(bindir(), "smbclient"),
1607 os
.path
.join(bindir(), "rpcclient"),
1608 os
.path
.join(bindir(), "net"),
1612 plantestsuite("samba3.blackbox.netshareenum_username", "fileserver",
1613 [os
.path
.join(samba3srcdir
,
1614 "script/tests/test_user_in_sharelist.sh"),
1615 os
.path
.join(bindir(), "rpcclient"),
1618 plantestsuite("samba3.blackbox.net_tdb", "simpleserver:local",
1619 [os
.path
.join(samba3srcdir
, "script/tests/test_net_tdb.sh"),
1620 smbclient3
, '$SERVER', 'tmp', '$USERNAME', '$PASSWORD',
1621 configuration
, '$LOCAL_PATH', '$LOCK_DIR'])
1623 plantestsuite("samba3.blackbox.aio-outstanding", "simpleserver:local",
1624 [os
.path
.join(samba3srcdir
,
1625 "script/tests/test_aio_outstanding.sh"),
1627 os
.path
.join(bindir(), "smbclient"),
1629 "aio_delay_inject"])
1631 plantestsuite("samba3.blackbox.deadtime", "simpleserver:local",
1632 [os
.path
.join(samba3srcdir
, "script/tests/test_deadtime.sh"),
1635 plantestsuite("samba3.blackbox.smbd_error", "simpleserver:local",
1636 [os
.path
.join(samba3srcdir
, "script/tests/test_smbd_error.sh")])
1638 plantestsuite("samba3.blackbox.smbd_no_krb5", "ad_member:local",
1639 [os
.path
.join(samba3srcdir
, "script/tests/test_smbd_no_krb5.sh"),
1640 smbclient3
, '$SERVER', "$DC_USERNAME", "$DC_PASSWORD", "$PREFIX"])
1642 plantestsuite("samba3.blackbox.smb1_lanman_plaintext", "simpleserver:local",
1643 [os
.path
.join(samba3srcdir
, "script/tests/test_smb1_lanman_plaintext.sh"),
1644 smbclient3
, '$SERVER', "$USERNAME", "$PASSWORD"])
1646 plantestsuite("samba3.blackbox.smb1_lanman_plaintext", "nt4_member:local",
1647 [os
.path
.join(samba3srcdir
, "script/tests/test_smb1_lanman_plaintext.sh"),
1648 smbclient3
, '$SERVER', "$USERNAME", "$PASSWORD"])
1650 plantestsuite("samba3.blackbox.winbind_ignore_domain", "ad_member_idmap_ad:local",
1651 [os
.path
.join(samba3srcdir
, "script/tests/test_winbind_ignore_domains.sh")])
1653 plantestsuite("samba3.blackbox.durable_v2_delay", "simpleserver:local",
1654 [os
.path
.join(samba3srcdir
, "script/tests/test_durable_handle_reconnect.sh")])
1656 plantestsuite("samba3.blackbox.net_cache_samlogon", "ad_member:local",
1657 [os
.path
.join(samba3srcdir
, "script/tests/test_net_cache_samlogon.sh"),
1658 '$SERVER', 'tmp', '$DC_USERNAME', '$DC_PASSWORD'])
1660 plantestsuite("samba3.blackbox.net_rpc_share_allowedusers", "nt4_dc",
1661 [os
.path
.join(samba3srcdir
, "script/tests/test_net_rpc_share_allowedusers.sh"),
1662 "$SERVER", "$USERNAME", "$PASSWORD", "$PREFIX/net_rpc_share_allowedusers",
1665 plantestsuite("samba3.blackbox.net_dom_join_fail_dc", "nt4_dc",
1666 [os
.path
.join(samba3srcdir
, "script/tests/test_net_dom_join_fail_dc.sh"),
1667 "$USERNAME", "$PASSWORD", "$SERVER", "$PREFIX/net_dom_join_fail_dc",
1669 plantestsuite("samba3.blackbox.net_rpc_join", "nt4_dc",
1670 [os
.path
.join(samba3srcdir
, "script/tests/test_net_rpc_join.sh"),
1671 "$USERNAME", "$PASSWORD", "$SERVER", "$PREFIX/net_rpc_join",
1673 plantestsuite("samba3.blackbox.net_rpc_oldjoin", "nt4_dc:local",
1674 [os
.path
.join(samba3srcdir
, "script/tests/test_net_rpc_oldjoin.sh"),
1675 "$SERVER", "$PREFIX/net_rpc_oldjoin",
1677 plantestsuite("samba3.blackbox.net_rpc_join_creds", "nt4_dc",
1678 [os
.path
.join(samba3srcdir
, "script/tests/test_net_rpc_join_creds.sh"),
1679 "$DOMAIN", "$USERNAME", "$PASSWORD", "$SERVER", "$PREFIX/net_rpc_join_creds",
1682 plantestsuite("samba3.blackbox.rpcclient_srvsvc", "simpleserver",
1683 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclientsrvsvc.sh"),
1684 "$USERNAME", "$PASSWORD", "$SERVER",
1685 os
.path
.join(bindir(), "rpcclient"), "tmp"])
1687 plantestsuite("samba3.blackbox.rpcclient_lookup", "simpleserver",
1688 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_lookup.sh"),
1689 "$USERNAME", "$PASSWORD", "$SERVER",
1690 os
.path
.join(bindir(), "rpcclient")])
1692 plantestsuite("samba3.blackbox.rpcclient_dfs", "fileserver:local",
1693 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_dfs.sh"),
1694 "$USERNAME", "$PASSWORD", "$SERVER",
1695 os
.path
.join(bindir(), "rpcclient")])
1697 plantestsuite("samba3.blackbox.rpcclient.pw-nt-hash", "simpleserver",
1698 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_pw_nt_hash.sh"),
1699 "$USERNAME", "$PASSWORD", "$SERVER",
1700 os
.path
.join(bindir(), "rpcclient")])
1702 plantestsuite("samba3.blackbox.smbclient.encryption_off", "simpleserver",
1703 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_encryption_off.sh"),
1704 "$USERNAME", "$PASSWORD", "$SERVER",
1707 plantestsuite("samba3.blackbox.smbXsrv_client_dead_rec", "fileserver:local",
1708 [os
.path
.join(samba3srcdir
,
1709 "script/tests/test_smbXsrv_client_dead_rec.sh"),
1714 if have_cluster_support
:
1715 plantestsuite("samba3.blackbox.smbXsrv_client_cross_node", "clusteredmember:local",
1716 [os
.path
.join(samba3srcdir
,
1717 "script/tests/test_smbXsrv_client_cross_node.sh"),
1719 '$CTDB_SERVER_NAME_NODE0', '$CTDB_SERVER_NAME_NODE1',
1721 plantestsuite("samba3.blackbox.smbXsrv_client_ctdb_registered_ips", "clusteredmember:local",
1722 [os
.path
.join(samba3srcdir
,
1723 "script/tests/test_smbXsrv_client_ctdb_registered_ips.sh"),
1727 plantestsuite("samba3.blackbox.registry_share", "clusteredmember",
1728 [os
.path
.join(samba3srcdir
,
1729 "script/tests/test_registry_share.sh"),
1730 "$SERVER", '$DC_USERNAME', "$DC_PASSWORD"])
1733 plantestsuite("samba3.blackbox.virus_scanner", "%s:local" % (env
),
1734 [os
.path
.join(samba3srcdir
,
1735 "script/tests/test_virus_scanner.sh"),
1741 for env
in ['fileserver', 'simpleserver']:
1742 plantestsuite("samba3.blackbox.smbclient.encryption", env
,
1743 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_encryption.sh"),
1744 "$USERNAME", "$PASSWORD", "$SERVER",
1747 plantestsuite("samba3.blackbox.smbclient.kerberos", 'ad_dc',
1748 [os
.path
.join(samba3srcdir
,
1749 "script/tests/test_smbclient_kerberos.sh"),
1756 for env
in ['ad_dc_fips', 'ad_member_fips']:
1757 plantestsuite("samba3.blackbox.smbclient.kerberos", env
,
1758 [os
.path
.join(samba3srcdir
,
1759 "script/tests/test_smbclient_kerberos.sh"),
1766 environ
={'GNUTLS_FORCE_FIPS_MODE': '1',
1767 'OPENSSL_FORCE_FIPS_MODE': '1'})
1769 plantestsuite("samba3.blackbox.rpcclient_netsessenum", "ad_member",
1770 [os
.path
.join(samba3srcdir
,
1771 "script/tests/test_rpcclient_netsessenum.sh"),
1772 "$DOMAIN", "$DC_USERNAME", "$DC_PASSWORD", "$SERVER",
1773 os
.path
.join(bindir(), "rpcclient"), smbtorture3
, "tmp"])
1775 # The ktest environment uses:
1776 # server min protocol = SMB3_00
1777 # client max protocol = SMB3
1778 options_list
= ["", "--client-protection=encrypt"]
1779 for options
in options_list
:
1780 plantestsuite("samba3.blackbox.smbclient_krb5 old ccache %s" % options
, "ktest:local",
1781 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_krb5.sh"),
1782 "$PREFIX/ktest/krb5_ccache-2",
1783 smbclient3
, "$SERVER", options
, configuration
])
1785 plantestsuite("samba3.blackbox.smbclient_krb5 new ccache %s" % options
, "ktest:local",
1786 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_krb5.sh"),
1787 "$PREFIX/ktest/krb5_ccache-3",
1788 smbclient3
, "$SERVER", options
, configuration
])
1790 plantestsuite("samba3.blackbox.smbclient_large_file %s krb5" % options
, "ktest:local",
1791 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_large_file.sh"),
1792 "$PREFIX/ktest/krb5_ccache-3",
1793 smbclient3
, "$SERVER", "$PREFIX", options
, "--use-krb5-ccache=$PREFIX/ktest/krb5_ccache-3 " + configuration
])
1795 options_list
= ["-mNT1", "-mNT1 --client-protection=encrypt", "-mSMB3", "-mSMB3 --client-protection=encrypt"]
1796 for options
in options_list
:
1798 if "NT1" in options
:
1799 env
= "nt4_dc_smb1_done"
1800 plantestsuite("samba3.blackbox.smbclient_large_file %s NTLM" % options
, "%s:local" % env
,
1801 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_large_file.sh"),
1803 smbclient3
, "$SERVER", "$PREFIX", options
, "-U$USERNAME%$PASSWORD " + configuration
])
1805 for alias
in ["foo", "bar"]:
1806 plantestsuite("samba3.blackbox.smbclient_netbios_aliases [%s]" % alias
, "ad_member:local",
1807 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_netbios_aliases.sh"),
1808 smbclient3
, alias
, "$DC_USERNAME", "$DC_PASSWORD", "$PREFIX",
1811 for e
in endianness_options
:
1812 for a
in auth_options
:
1813 for s
in signseal_options
:
1814 binding_string
= "ncacn_ip_tcp:$SERVER_IP[%s%s%s]" % (a
, s
, e
)
1815 options
= binding_string
+ " -U$USERNAME%$PASSWORD"
1816 plansmbtorture4testsuite(test
, "nt4_dc", options
, 'over ncacn_ip_tcp with [%s%s%s] ' % (a
, s
, e
))
1818 plansmbtorture4testsuite('rpc.epmapper', 'nt4_dc:local', 'ncalrpc: -U$USERNAME%$PASSWORD', 'over ncalrpc')
1819 plansmbtorture4testsuite('rpc.fsrvp', 'nt4_dc:local', 'ncacn_np:$SERVER_IP -U$USERNAME%$PASSWORD', 'over ncacn_np')
1821 for env
in ["ad_member_idmap_rid:local", "maptoguest:local"]:
1822 plantestsuite("samba3.blackbox.guest", env
,
1823 [os
.path
.join(samba3srcdir
, "script/tests/test_guest_auth.sh"),
1824 '$SERVER', smbclient3
, smbcontrol
, net
, configuration
])
1826 plantestsuite("samba3.blackbox.smbclient-mget",
1828 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_mget.sh"),
1836 plantestsuite("samba3.blackbox.smbclient-bug15435",
1838 [os
.path
.join(samba3srcdir
, "script/tests/test_bug15435_widelink_dfs.sh"),
1846 plantestsuite("samba3.blackbox.widelink_dfs_ci",
1848 [os
.path
.join(samba3srcdir
, "script/tests/test_widelink_dfs_ci.sh"),
1858 if have_cluster_support
:
1859 t
= "readdir-timestamp"
1861 "samba3.smbtorture_s3.plain.%s" % t
,
1863 [os
.path
.join(samba3srcdir
,
1864 "script/tests/test_smbtorture_s3.sh"),
1867 '$DOMAIN\\\\$DC_USERNAME',
1871 "-b $PREFIX/clusteredmember/unclists/tmp.txt -N 5 -o 10"])
1874 "samba3.net_machine_account",
1876 [os
.path
.join(samba3srcdir
,
1877 "script/tests/test_net_machine_account.sh"),
1883 "samba3.net_lookup_ldap",
1885 [os
.path
.join(samba3srcdir
,
1886 "script/tests/test_net_lookup.sh"),
1894 plantestsuite("samba3.blackbox.force-user-unlink",
1896 [os
.path
.join(samba3srcdir
,
1897 "script/tests/test_force_user_unlink.sh")])
1899 plansmbtorture4testsuite(
1900 "vfs.fruit_validate_afpinfo", "fileserver",
1901 '//$SERVER_IP/vfs_fruit -U$USERNAME%$PASSWORD --option=torture:validate_afpinfo=yes')
1902 plansmbtorture4testsuite(
1903 "vfs.fruit_validate_afpinfo", "fileserver",
1904 '//$SERVER_IP/vfs_fruit_zero_fileid -U$USERNAME%$PASSWORD --option=torture:validate_afpinfo=no')
1906 plantestsuite("samba3.blackbox.nt4_trusts",
1908 [os
.path
.join(samba3srcdir
, "script/tests/test_nt4_trust.sh")])
1910 plantestsuite("samba3.blackbox.list_nt4_trusts",
1911 "ad_member_idmap_ad",
1912 [os
.path
.join(samba3srcdir
, "script/tests/test_list_nt4_trust.sh")])
1914 def planclusteredmembertestsuite(tname
, prefix
):
1915 '''Define a clustered test for the clusteredmember environment'''
1919 autharg
= '-U${DOMAIN}/${DC_USERNAME}%${DC_PASSWORD}'
1920 namearg
= 'clustered.%s' % tname
1921 modnamearg
= 'samba3.%s' % namearg
1924 prefix
= os
.path
.join(prefix
, 'clusteredmember')
1925 unclist
= os
.path
.join(prefix
, 'unclists/%s.txt' % tshare
)
1927 unclistarg
= '--unclist=%s' % unclist
1928 sharearg
= '//$SERVER_IP/%s' % tshare
1930 return selftesthelpers
.plansmbtorture4testsuite(
1933 [extraargs
, unclistarg
, sharearg
, autharg
, tname
],
1938 if have_cluster_support
:
1939 CLUSTERED_TESTS
= [ 'smb2.deny.deny2' ]
1941 for test
in CLUSTERED_TESTS
:
1942 planclusteredmembertestsuite(test
, "$PREFIX")
1944 CLUSTERED_LOCAL_TESTS
= [
1946 "local-dbwrap-ctdb1"
1949 for t
in CLUSTERED_LOCAL_TESTS
:
1952 "clusteredmember:local",
1953 [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"),
1961 planpythontestsuite("fileserver_smb1", "samba.tests.smb3unix")
1962 planpythontestsuite("fileserver_smb1", "samba.tests.reparsepoints")
1963 planpythontestsuite("fileserver_smb1", "samba.tests.smb2symlink")
1964 planpythontestsuite("fileserver_smb1", "samba.tests.smb1posix")