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
22 sys
.path
.insert(0, os
.path
.normpath(os
.path
.join(os
.path
.dirname(__file__
), "../../selftest")))
23 import selftesthelpers
24 from selftesthelpers
import *
25 smbtorture4_options
.extend([
26 '--option=torture:sharedelay=100000',
27 '--option=torture:writetimeupdatedelay=500000',
30 def plansmbtorture4testsuite(name
, env
, options
, description
=''):
32 modname
= "samba3.%s" % (name
, )
34 modname
= "samba3.%s %s" % (name
, description
)
36 selftesthelpers
.plansmbtorture4testsuite(
37 name
, env
, options
, target
='samba3', modname
=modname
)
41 config_h
= os
.environ
["CONFIG_H"]
43 samba4bindir
= bindir()
44 config_h
= os
.path
.join(samba4bindir
, "default/include/config.h")
46 # check available features
48 f
= open(config_h
, 'r')
51 config_hash
= dict((x
[0], ' '.join(x
[1:]))
52 for x
in map(lambda line
: line
.strip().split(' ')[1:],
53 filter(lambda line
: (line
[0:7] == '#define') and (len(line
.split(' ')) > 2), lines
)))
57 have_libarchive
= ("HAVE_LIBARCHIVE" in config_hash
)
58 have_linux_kernel_oplocks
= ("HAVE_KERNEL_OPLOCKS_LINUX" in config_hash
)
59 have_inotify
= ("HAVE_INOTIFY" in config_hash
)
61 plantestsuite("samba3.blackbox.success", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_success.sh")])
62 plantestsuite("samba3.blackbox.failure", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_failure.sh")])
64 plantestsuite("samba3.local_s3", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_local_s3.sh")])
66 plantestsuite("samba3.blackbox.registry.upgrade", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_registry_upgrade.sh"), net
, dbwrap_tool
])
68 tests
= ["FDPASS", "LOCK1", "LOCK2", "LOCK3", "LOCK4", "LOCK5", "LOCK6", "LOCK7", "LOCK9",
69 "UNLINK", "BROWSE", "ATTR", "TRANS2", "TORTURE",
70 "OPLOCK1", "OPLOCK2", "OPLOCK4", "STREAMERROR",
71 "DIR", "DIR1", "DIR-CREATETIME", "TCON", "TCONDEV", "RW1", "RW2", "RW3", "LARGE_READX", "RW-SIGNING",
72 "OPEN", "XCOPY", "RENAME", "DELETE", "DELETE-LN", "WILDDELETE", "PROPERTIES", "W2K",
73 "TCON2", "IOCTL", "CHKPATH", "FDSESS", "CHAIN1", "CHAIN2", "OWNER-RIGHTS",
75 "GETADDRINFO", "UID-REGRESSION-TEST", "SHORTNAME-TEST",
76 "CASE-INSENSITIVE-CREATE", "SMB2-BASIC", "NTTRANS-FSCTL", "SMB2-NEGPROT",
77 "SMB2-SESSION-REAUTH", "SMB2-SESSION-RECONNECT", "SMB2-FTRUNCATE",
84 plantestsuite("samba3.smbtorture_s3.plain(nt4_dc).%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
85 plantestsuite("samba3.smbtorture_s3.crypt_client(nt4_dc).%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "-e", "-l $LOCAL_PATH"])
87 # this is a negative test to verify that the server rejects
88 # access without encryption
89 plantestsuite("samba3.smbtorture_s3.crypt_server(nt4_dc).%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmpenc', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
90 plantestsuite("samba3.smbtorture_s3.plain(ad_dc_ntvfs).%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"])
93 # RENAME-ACCESS needs to run against a special share - acl_xattr_ign_sysacl_windows
95 plantestsuite("samba3.smbtorture_s3.plain(nt4_dc).%s" % "RENAME-ACCESS","nt4_dc", [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"])
96 plantestsuite("samba3.smbtorture_s3.crypt_client(nt4_dc).%s" % "RENAME-ACCESS", "nt4_dc", [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"])
99 tests
= ["OPLOCK-CANCEL"]
101 plantestsuite("samba3.smbtorture_s3.plain(nt4_dc).%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
104 tests
= ["MANGLE-ILLEGAL"]
106 plantestsuite("samba3.smbtorture_s3.plain(%s).%s" % (env
, t
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/mangle_illegal', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
108 tests
= ["RW1", "RW2", "RW3"]
110 plantestsuite("samba3.smbtorture_s3.vfs_aio_fork(simpleserver).%s" % t
, "simpleserver", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/vfs_aio_fork', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
112 posix_tests
= ["POSIX", "POSIX-APPEND", "POSIX-SYMLINK-ACL", "POSIX-SYMLINK-EA", "POSIX-OFD-LOCK",
113 "POSIX-STREAM-DELETE", "WINDOWS-BAD-SYMLINK" ]
115 for t
in posix_tests
:
116 plantestsuite("samba3.smbtorture_s3.plain(nt4_dc).%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/posix_share', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
117 plantestsuite("samba3.smbtorture_s3.crypt(nt4_dc).%s" % t
, "nt4_dc", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/posix_share', '$USERNAME', '$PASSWORD', smbtorture3
, "-e", "-l $LOCAL_PATH"])
118 plantestsuite("samba3.smbtorture_s3.plain(ad_dc_ntvfs).%s" % t
, "ad_dc_ntvfs", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/posix_share', '$USERNAME', '$PASSWORD', smbtorture3
, "", "-l $LOCAL_PATH"])
122 plantestsuite("samba3.smbtorture_s3.plain(%s).%s" % (env
, t
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//$SERVER_IP/tmp', '$USERNAME', '$PASSWORD', binpath('smbtorture3'), "", "-l $LOCAL_PATH"])
132 "LOCAL-string_to_sid",
133 "LOCAL-sid_to_string",
134 "LOCAL-binary_to_sid",
137 "LOCAL-CONVERT-STRING",
138 "LOCAL-CONV-AUTH-INFO",
139 "LOCAL-IDMAP-TDB-COMMON",
140 "LOCAL-MESSAGING-READ1",
141 "LOCAL-MESSAGING-READ2",
142 "LOCAL-MESSAGING-READ3",
143 "LOCAL-MESSAGING-READ4",
144 "LOCAL-MESSAGING-FDPASS1",
145 "LOCAL-MESSAGING-FDPASS2",
146 "LOCAL-MESSAGING-FDPASS2a",
147 "LOCAL-MESSAGING-FDPASS2b",
148 "LOCAL-PTHREADPOOL-TEVENT",
149 "LOCAL-CANONICALIZE-PATH",
150 "LOCAL-DBWRAP-WATCH1",
151 "LOCAL-DBWRAP-WATCH2",
157 "LOCAL-hex_encode_buf",
158 "LOCAL-remove_duplicate_addrs2"]
160 for t
in local_tests
:
161 plantestsuite("samba3.smbtorture_s3.%s" % t
, "none", [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//foo/bar', '""', '""', smbtorture3
, ""])
163 plantestsuite("samba.vfstest.stream_depot", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/stream-depot/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
164 plantestsuite("samba.vfstest.xattr-tdb-1", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/xattr-tdb-1/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
165 plantestsuite("samba.vfstest.acl", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/vfstest-acl/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
166 plantestsuite("samba.vfstest.catia", "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/vfstest-catia/run.sh"), binpath("vfstest"), "$PREFIX", configuration
])
168 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"])
169 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"])
170 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"])
171 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"])
172 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"])
174 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
])
175 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"]:
177 plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) %s" % (env
, options
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, options
])
179 for env
in ["nt4_dc", "nt4_member", "ad_member", "ad_dc", "ad_dc_ntvfs", "s4member", "fl2000dc"]:
180 plantestsuite("samba3.blackbox.smbclient_machine_auth.plain (%s:local)" % env
, "%s:local" % env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_machine_auth.sh"), '$SERVER', smbclient3
, configuration
])
181 plantestsuite("samba3.blackbox.smbclient_ntlm.plain (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$DC_USERNAME', '$DC_PASSWORD', "never", smbclient3
, configuration
])
183 for options
in ["--option=clientntlmv2auth=no", "--option=clientusespnego=no --option=clientntlmv2auth=no", ""]:
184 for env
in ["nt4_member", "ad_member"]:
185 plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) %s" % (env
, options
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3
, configuration
, options
])
186 plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) %s member creds" % (env
, options
), env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$SERVER/$USERNAME', '$PASSWORD', smbclient3
, configuration
, options
])
189 plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) ipv6" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IPV6', '$SERVER/$USERNAME', '$PASSWORD', smbclient3
, configuration
])
191 for env
in ["nt4_member", "ad_member"]:
192 plantestsuite("samba3.blackbox.net_cred_change.(%s:local)" % env
, "%s:local" % env
, [os
.path
.join(samba3srcdir
, "script/tests/test_net_cred_change.sh"), configuration
])
195 t
= "--krb5auth=$DOMAIN/$DC_USERNAME%$DC_PASSWORD"
196 plantestsuite("samba3.wbinfo_simple.(%s:local).%s" % (env
, t
), "%s:local" % env
, [os
.path
.join(srcdir(), "nsswitch/tests/test_wbinfo_simple.sh"), t
])
197 t
= "WBCLIENT-MULTI-PING"
198 plantestsuite("samba3.smbtorture_s3.%s" % t
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbtorture_s3.sh"), t
, '//foo/bar', '""', '""', smbtorture3
, ""])
199 plantestsuite("samba3.substitutions", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_substitutions.sh"), "$SERVER", "alice", "Secret007", "$PREFIX"])
201 plantestsuite("samba3.ntlm_auth.krb5 with old ccache(ktest:local)", "ktest:local", [os
.path
.join(samba3srcdir
, "script/tests/test_ntlm_auth_krb5.sh"), valgrindify(python
), samba3srcdir
, ntlm_auth3
, '$PREFIX/ktest/krb5_ccache-2', '$SERVER', configuration
])
203 plantestsuite("samba3.ntlm_auth.krb5(ktest:local)", "ktest:local", [os
.path
.join(samba3srcdir
, "script/tests/test_ntlm_auth_krb5.sh"), valgrindify(python
), samba3srcdir
, ntlm_auth3
, '$PREFIX/ktest/krb5_ccache-3', '$SERVER', configuration
])
206 for env
in ["maptoguest", "simpleserver"]:
207 plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) local creds" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbclient3
, configuration
+ " --option=clientntlmv2auth=no --option=clientlanmanauth=yes"])
210 plantestsuite("samba3.blackbox.smbclient_auth.plain (%s) bad username" % env
, 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"])
211 plantestsuite("samba3.blackbox.smbclient_ntlm.plain (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$USERNAME', '$PASSWORD', "baduser", smbclient3
, configuration
])
214 for env
in ["nt4_dc"]:
215 plantestsuite("samba3.blackbox.smbclient_s3.NT1.plain (%s)" % env
, 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"])
216 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.plain (%s)" % env
, 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"])
218 for env
in ["nt4_member", "ad_member"]:
219 plantestsuite("samba3.blackbox.smbclient_s3.NT1.plain (%s) member creds" % env
, 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"])
220 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.plain (%s) member creds" % env
, 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"])
222 for env
in ["nt4_dc"]:
223 plantestsuite("samba3.blackbox.smbclient_s3.NT1.sign (%s)" % env
, 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", "--signing=required"])
224 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.sign (%s)" % env
, 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", "--signing=required"])
226 for env
in ["nt4_member", "ad_member"]:
227 plantestsuite("samba3.blackbox.smbclient_s3.NT1.sign (%s) member creds" % env
, 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", "--signing=required"])
228 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.sign (%s) member creds" % env
, 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", "--signing=required"])
230 for env
in ["nt4_dc"]:
232 plantestsuite("samba3.blackbox.smbclient_s3.NT1.crypt (%s)" % env
, 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", "-e"])
233 plantestsuite("samba3.blackbox.smbclient_s3.SMB3.crypt (%s)" % env
, 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", "-e"])
235 for env
in ["fileserver"]:
236 plantestsuite("samba3.blackbox.preserve_case (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_preserve_case.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
])
237 plantestsuite("samba3.blackbox.dfree_command (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_dfree_command.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
])
238 plantestsuite("samba3.blackbox.dfree_quota (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_dfree_quota.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
, smbcquotas
, smbcacls
])
239 plantestsuite("samba3.blackbox.valid_users (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_valid_users.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
])
240 plantestsuite("samba3.blackbox.offline (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_offline.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/offline', smbclient3
])
241 plantestsuite("samba3.blackbox.shadow_copy2 NT1 (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_shadow_copy.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbclient3
, '-m', 'NT1'])
242 plantestsuite("samba3.blackbox.shadow_copy2 SMB3 (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_shadow_copy.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH/shadow', smbclient3
, '-m', 'SMB3'])
243 plantestsuite("samba3.blackbox.smbclient.forceuser_validusers (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_forceuser_validusers.sh"), '$SERVER', '$DOMAIN', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
])
244 plantestsuite("samba3.blackbox.smbget (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smbget.sh"), '$SERVER', '$SERVER_IP', '$DOMAIN', 'smbget_user', '$PASSWORD', '$LOCAL_PATH/smbget', smbget
])
245 plantestsuite("samba3.blackbox.netshareenum (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_shareenum.sh"), '$SERVER', '$USERNAME', '$PASSWORD', rpcclient
])
246 plantestsuite("samba3.blackbox.acl_xattr.NT1", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_acl_xattr.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, '-mNT1'])
247 plantestsuite("samba3.blackbox.acl_xattr.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_acl_xattr.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, '-mSMB3'])
248 plantestsuite("samba3.blackbox.smb2.not_casesensitive (%s)" % env
, env
, [os
.path
.join(samba3srcdir
, "script/tests/test_smb2_not_casesensitive.sh"), '//$SERVER/tmp', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3
])
249 plantestsuite("samba3.blackbox.inherit_owner.default.NT1", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'tmp', '0', '0', '-m', 'NT1'])
250 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'])
251 plantestsuite("samba3.blackbox.inherit_owner.full.NT1", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'inherit_owner', '1', '1', '-m', 'NT1'])
252 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'])
253 plantestsuite("samba3.blackbox.inherit_owner.unix.NT1", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3
, smbcacls
, net
, 'inherit_owner_u', '0', '1', '-m', 'NT1'])
254 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'])
255 plantestsuite("samba3.blackbox.large_acl.NT1", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_large_acl.sh"), '$SERVER', '$USERNAME', '$PASSWORD', smbclient3
, smbcacls
, '-m', 'NT1'])
256 plantestsuite("samba3.blackbox.large_acl.SMB3", env
, [os
.path
.join(samba3srcdir
, "script/tests/test_large_acl.sh"), '$SERVER', '$USERNAME', '$PASSWORD', smbclient3
, smbcacls
, '-m', 'SMB3'])
257 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'])
263 # tar command enabled only if built with libarchive
265 # Test smbclient/tarmode
266 plantestsuite("samba3.blackbox.smbclient_tarmode.NT1", env
,
267 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.sh"),
268 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD',
269 '$LOCAL_PATH/tarmode', '$PREFIX', smbclient3
, configuration
, "-mNT1"])
270 plantestsuite("samba3.blackbox.smbclient_tarmode.SMB3", env
,
271 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.sh"),
272 '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD',
273 '$LOCAL_PATH/tarmode', '$PREFIX', smbclient3
, configuration
, "-mSMB3"])
275 # Test suite for new smbclient/tar with libarchive (GSoC 13)
276 plantestsuite("samba3.blackbox.smbclient_tar.NT1", env
,
277 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.pl"),
278 '-n', '$SERVER', '-i', '$SERVER_IP', '-s', 'tmp',
279 '-u', '$USERNAME', '-p', '$PASSWORD', '-l', '$LOCAL_PATH/tarmode',
280 '-d', '$PREFIX', '-b', smbclient3
,
281 '--subunit', '--', configuration
, '-mNT1'])
282 plantestsuite("samba3.blackbox.smbclient_tar.SMB3", env
,
283 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_tarmode.pl"),
284 '-n', '$SERVER', '-i', '$SERVER_IP', '-s', 'tmp',
285 '-u', '$USERNAME', '-p', '$PASSWORD', '-l', '$LOCAL_PATH/tarmode',
286 '-d', '$PREFIX', '-b', smbclient3
,
287 '--subunit', '--', configuration
, '-mSMB3'])
289 plantestsuite("samba3.blackbox.net_usershare", "fileserver:local", [os
.path
.join(samba3srcdir
, "script/tests/test_net_usershare.sh"), '$SERVER', '$SERVER_IP', '$USERNAME', '$PASSWORD', smbclient3
])
291 #TODO encrypted against member, with member creds, and with DC creds
292 plantestsuite("samba3.blackbox.net.misc", "nt4_dc:local",
293 [os
.path
.join(samba3srcdir
, "script/tests/test_net_misc.sh"),
294 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
295 plantestsuite("samba3.blackbox.net.local.registry", "nt4_dc:local",
296 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry.sh"),
297 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
298 plantestsuite("samba3.blackbox.net.registry.check", "nt4_dc:local",
299 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_check.sh"),
300 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, dbwrap_tool
])
301 plantestsuite("samba3.blackbox.net.rpc.registry", "nt4_dc",
302 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry.sh"),
303 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, 'rpc'])
305 plantestsuite("samba3.blackbox.net.local.registry.roundtrip", "nt4_dc:local",
306 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_roundtrip.sh"),
307 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
308 plantestsuite("samba3.blackbox.net.rpc.registry.roundtrip", "nt4_dc",
309 [os
.path
.join(samba3srcdir
, "script/tests/test_net_registry_roundtrip.sh"),
310 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, 'rpc'])
312 plantestsuite("samba3.blackbox.net.local.conf", "nt4_dc:local",
313 [os
.path
.join(samba3srcdir
, "script/tests/test_net_conf.sh"),
314 scriptdir
, "$SMB_CONF_PATH", net
, configuration
])
315 plantestsuite("samba3.blackbox.net.rpc.conf", "nt4_dc",
316 [os
.path
.join(samba3srcdir
, "script/tests/test_net_conf.sh"),
317 scriptdir
, "$SMB_CONF_PATH", net
, configuration
, 'rpc'])
320 plantestsuite("samba3.blackbox.testparm", "nt4_dc:local",
321 [os
.path
.join(samba3srcdir
, "script/tests/test_testparm_s3.sh"),
325 "samba3.pthreadpool", "nt4_dc",
326 [os
.path
.join(samba3srcdir
, "script/tests/test_pthreadpool.sh")])
328 plantestsuite("samba3.async_req", "nt4_dc",
329 [os
.path
.join(samba3srcdir
, "script/tests/test_async_req.sh")])
333 base
= ["base.attr", "base.charset", "base.chkpath", "base.createx_access", "base.defer_open", "base.delaywrite", "base.delete",
334 "base.deny1", "base.deny2", "base.deny3", "base.denydos", "base.dir1", "base.dir2",
335 "base.disconnect", "base.fdpass", "base.lock",
336 "base.mangle", "base.negnowait", "base.ntdeny1",
337 "base.ntdeny2", "base.open", "base.openattr", "base.properties", "base.rename", "base.rw1",
338 "base.secleak", "base.tcon", "base.tcondev", "base.trans2", "base.unlink", "base.vuid",
339 "base.xcopy", "base.samba3error"]
341 raw
= ["raw.acls", "raw.chkpath", "raw.close", "raw.composite", "raw.context", "raw.eas",
342 "raw.ioctl", "raw.lock", "raw.mkdir", "raw.mux", "raw.notify", "raw.open", "raw.oplock",
343 "raw.qfileinfo", "raw.qfsinfo", "raw.read", "raw.rename", "raw.search", "raw.seek",
344 "raw.sfileinfo.base", "raw.sfileinfo.bug", "raw.streams", "raw.unlink", "raw.write",
345 "raw.samba3hide", "raw.samba3badpath", "raw.sfileinfo.rename", "raw.session",
346 "raw.samba3caseinsensitive", "raw.samba3posixtimedlock",
347 "raw.samba3rootdirfid", "raw.sfileinfo.end-of-file",
348 "raw.bench-oplock", "raw.bench-lock", "raw.bench-open", "raw.bench-tcon",
349 "raw.samba3checkfsp", "raw.samba3closeerr", "raw.samba3oplocklogoff", "raw.samba3badnameblob"]
351 smb2
= smbtorture4_testsuites("smb2.")
353 rpc
= ["rpc.authcontext", "rpc.samba3.bind", "rpc.samba3.srvsvc", "rpc.samba3.sharesec",
354 "rpc.samba3.spoolss", "rpc.samba3.wkssvc", "rpc.samba3.winreg",
355 "rpc.samba3.getaliasmembership-0",
356 "rpc.samba3.netlogon", "rpc.samba3.sessionkey", "rpc.samba3.getusername",
357 "rpc.samba3.smb1-pipe-name", "rpc.samba3.smb2-pipe-name",
358 "rpc.samba3.smb-reauth1", "rpc.samba3.smb-reauth2",
359 "rpc.svcctl", "rpc.ntsvcs", "rpc.winreg", "rpc.eventlog",
360 "rpc.spoolss.printserver", "rpc.spoolss.win", "rpc.spoolss.notify", "rpc.spoolss.printer",
361 "rpc.spoolss.driver",
362 "rpc.lsa", "rpc.lsa-getuser", "rpc.lsa.lookupsids", "rpc.lsa.lookupnames",
363 "rpc.lsa.privileges", "rpc.lsa.secrets",
364 "rpc.samr", "rpc.samr.users", "rpc.samr.users.privileges", "rpc.samr.passwords",
365 "rpc.samr.passwords.pwdlastset", "rpc.samr.passwords.lockout", "rpc.samr.passwords.badpwdcount", "rpc.samr.large-dc", "rpc.samr.machine.auth",
366 "rpc.samr.priv", "rpc.samr.passwords.validate",
367 "rpc.netlogon.admin",
368 "rpc.schannel", "rpc.schannel2", "rpc.bench-schannel1", "rpc.schannel_anon_setpw", "rpc.join", "rpc.bind"]
370 local
= ["local.nss"]
372 idmap
= ["idmap.rfc2307", "idmap.alloc", "idmap.rid"]
374 rap
= ["rap.basic", "rap.rpc", "rap.printing", "rap.sam"]
376 unix
= ["unix.info2", "unix.whoami"]
380 libsmbclient
= ["libsmbclient"]
382 vfs
= ["vfs.fruit", "vfs.acl_xattr", "vfs.fruit_netatalk", "vfs.fruit_file_id"]
384 tests
= base
+ raw
+ smb2
+ rpc
+ unix
+ local
+ rap
+ nbt
+ libsmbclient
+ idmap
+ vfs
387 if t
== "base.delaywrite":
388 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD -k yes --maximum-runtime=900')
389 elif t
== "base.createx_access":
390 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD -k yes --maximum-runtime=900')
392 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=doscharset=ISO-8859-1')
393 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=doscharset=ISO-8859-1')
394 elif t
== "winbind.pac":
395 plansmbtorture4testsuite(t
, "ad_member:local", '//$SERVER/tmp --realm=$REALM --machine-pass --option=torture:addc=$DC_SERVER', description
="machine account")
396 elif t
== "unix.whoami":
397 plansmbtorture4testsuite(t
, "nt4_member:local", '//$SERVER/tmp --machine-pass', description
="machine account")
398 plansmbtorture4testsuite(t
, "ad_member:local", '//$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER', description
="machine account")
399 for env
in ["nt4_dc", "nt4_member"]:
400 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
401 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmpguest -U%', description
='anonymous connection')
402 for env
in ["ad_dc", "ad_member"]:
403 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -U$DC_USERNAME@$REALM%$DC_PASSWORD --option=torture:addc=$DC_SERVER')
404 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -k yes -U$DC_USERNAME@$REALM%$DC_PASSWORD --option=torture:addc=$DC_SERVER', description
='kerberos connection')
405 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmpguest -U% --option=torture:addc=$DC_SERVER', description
='anonymous connection')
406 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -k no -U$DC_USERNAME@$REALM%$DC_PASSWORD', description
='ntlm user@realm')
407 elif t
== "raw.samba3posixtimedlock":
408 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmpguest -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share')
409 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmpguest -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/ad_dc/share')
410 elif t
== "raw.chkpath":
411 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
412 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
413 elif t
== "raw.samba3hide" or t
== "raw.samba3checkfsp" or t
== "raw.samba3closeerr":
414 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
415 plansmbtorture4testsuite(t
, "simpleserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
416 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
417 elif t
== "raw.session" or t
== "smb2.session":
418 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD', 'plain')
419 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmpenc -U$USERNAME%$PASSWORD', 'enc')
420 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -k no -U$USERNAME%$PASSWORD', 'ntlm')
421 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -k yes -U$USERNAME%$PASSWORD', 'krb5')
423 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD', 'over ncacn_np ')
424 plansmbtorture4testsuite(t
, "nt4_dc", 'ncacn_ip_tcp:$SERVER_IP -U$USERNAME%$PASSWORD', 'over ncacn_ip_tcp ')
425 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD', 'over ncacn_np ')
426 plansmbtorture4testsuite(t
, "ad_dc", 'ncacn_ip_tcp:$SERVER_IP -U$USERNAME%$PASSWORD', 'over ncacn_ip_tcp ')
427 elif t
== "rpc.samr.passwords.validate":
428 plansmbtorture4testsuite(t
, "nt4_dc", 'ncacn_ip_tcp:$SERVER_IP[seal] -U$USERNAME%$PASSWORD', 'over ncacn_ip_tcp ')
429 plansmbtorture4testsuite(t
, "ad_dc", 'ncacn_ip_tcp:$SERVER_IP[seal] -U$USERNAME%$PASSWORD', 'over ncacn_ip_tcp ')
430 elif t
== "smb2.durable-open" or t
== "smb2.durable-v2-open" or t
== "smb2.replay":
431 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/durable -U$USERNAME%$PASSWORD')
432 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/durable -U$USERNAME%$PASSWORD')
433 elif t
== "base.rw1":
434 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
435 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/valid-users-tmp -U$USERNAME%$PASSWORD')
436 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/write-list-tmp -U$USERNAME%$PASSWORD')
437 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
438 elif t
== "idmap.rfc2307":
439 plantestsuite(t
, "ad_member_rfc2307",
440 [os
.path
.join(samba3srcdir
,
441 "../nsswitch/tests/test_idmap_rfc2307.sh"),
443 'Administrator', '2000000',
445 '"Domain Users"', '2000002',
446 'DnsAdmins', '2000003',
448 'ou=idmap,dc=samba,dc=example,dc=com',
449 '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD'])
450 elif t
== "idmap.alloc":
451 plantestsuite(t
, "ad_member_rfc2307", [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_idmap_nss.sh"), '$DOMAIN'])
452 elif t
== "idmap.rid":
453 plantestsuite(t
, "ad_member_idmap_rid", [os
.path
.join(samba3srcdir
, "../nsswitch/tests/test_idmap_rid.sh"), '$DOMAIN', '2000000'])
454 elif t
== "raw.acls":
455 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
456 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/nfs4acl_simple -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-simple')
457 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/nfs4acl_special -U$USERNAME%$PASSWORD', description
='nfs4acl_xattr-special')
458 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
459 elif t
== "smb2.ioctl":
460 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/fs_specific -U$USERNAME%$PASSWORD', 'fs_specific')
461 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
462 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
463 elif t
== "smb2.lock":
464 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', 'aio')
465 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
466 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
467 elif t
== "raw.read":
468 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
469 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', 'aio')
470 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
471 elif t
== "raw.search":
472 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
473 # test the dirsort module.
474 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmpsort -U$USERNAME%$PASSWORD')
475 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
476 elif t
== "vfs.fruit":
477 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')
478 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_metadata_stream --option=torture:share2=vfs_wo_fruit -U$USERNAME%$PASSWORD', 'metadata_stream')
479 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit_stream_depot --option=torture:share2=vfs_wo_fruit_stream_depot -U$USERNAME%$PASSWORD', 'streams_depot')
480 elif t
== "vfs.fruit_netatalk":
481 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit -U$USERNAME%$PASSWORD --option=torture:localdir=$SELFTEST_PREFIX/nt4_dc/share')
482 elif t
== "vfs.fruit_file_id":
483 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/vfs_fruit -U$USERNAME%$PASSWORD')
484 elif t
== "rpc.schannel_anon_setpw":
485 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$%', description
="anonymous password set")
486 plansmbtorture4testsuite(t
, "nt4_dc_schannel", '//$SERVER_IP/tmp -U$%', description
="anonymous password set (schannel enforced server-side)")
487 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$%', description
="anonymous password set")
488 elif t
== "local.nss":
489 for env
in ["nt4_dc:local", "ad_member:local", "nt4_member:local", "ad_dc:local"]:
490 plansmbtorture4testsuite(t
, env
, '//$SERVER/tmp -U$USERNAME%$PASSWORD')
491 elif t
== "smb2.change_notify_disabled":
492 plansmbtorture4testsuite(t
, "simpleserver", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
493 elif t
== "smb2.notify":
494 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --signing=required')
495 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD --signing=required')
496 elif t
== "smb2.dosmode":
497 plansmbtorture4testsuite(t
, "simpleserver", '//$SERVER/dosmode -U$USERNAME%$PASSWORD')
498 elif t
== "smb2.kernel-oplocks":
499 if have_linux_kernel_oplocks
:
500 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER/kernel_oplocks -U$USERNAME%$PASSWORD')
501 elif t
== "smb2.notify-inotify":
503 plansmbtorture4testsuite(t
, "fileserver", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
504 elif t
== "vfs.acl_xattr":
505 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
506 elif t
== "smb2.compound_find":
507 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER/compound_find -U$USERNAME%$PASSWORD')
508 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
509 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
510 elif t
== "rpc.samr.users.privileges":
511 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD --option=torture:nt4_dc=true')
512 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
513 elif t
== "smb2.compound":
514 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
515 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/aio -U$USERNAME%$PASSWORD', 'aio')
516 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
518 plansmbtorture4testsuite(t
, "nt4_dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
519 plansmbtorture4testsuite(t
, "ad_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
522 test
= 'rpc.lsa.lookupsids'
523 auth_options
= ["", "ntlm", "spnego", "spnego,ntlm" ]
524 signseal_options
= ["", ",connect", ",packet", ",sign", ",seal"]
525 endianness_options
= ["", ",bigendian"]
526 for s
in signseal_options
:
527 for e
in endianness_options
:
528 for a
in auth_options
:
529 binding_string
= "ncacn_np:$SERVER[%s%s%s]" % (a
, s
, e
)
530 options
= binding_string
+ " -U$USERNAME%$PASSWORD"
531 plansmbtorture4testsuite(test
, "nt4_dc", options
, 'over ncacn_np with [%s%s%s] ' % (a
, s
, e
))
532 plantestsuite("samba3.blackbox.rpcclient over ncacn_np with [%s%s%s] " % (a
, s
, e
), "nt4_dc:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient.sh"),
533 "none", options
, configuration
])
535 # We should try more combinations in future, but this is all
536 # the pre-calculated credentials cache supports at the moment
538 # As the ktest env requires SMB3_00 we need to use "smb2" until
539 # dcerpc client code in smbtorture support autonegotiation
540 # of any smb dialect.
543 binding_string
= "ncacn_np:$SERVER[%s%s%s]" % (a
, s
, e
)
544 options
= binding_string
+ " -k yes --krb5-ccache=$PREFIX/ktest/krb5_ccache-2"
545 plansmbtorture4testsuite(test
, "ktest", options
, 'krb5 with old ccache ncacn_np with [%s%s%s] ' % (a
, s
, e
))
547 options
= binding_string
+ " -k yes --krb5-ccache=$PREFIX/ktest/krb5_ccache-3"
548 plansmbtorture4testsuite(test
, "ktest", options
, 'krb5 ncacn_np with [%s%s%s] ' % (a
, s
, e
))
550 auth_options2
= ["krb5", "spnego,krb5"]
551 for a
in auth_options2
:
552 binding_string
= "ncacn_np:$SERVER[%s%s%s]" % (a
, s
, e
)
554 plantestsuite("samba3.blackbox.rpcclient krb5 ncacn_np with [%s%s%s] " % (a
, s
, e
), "ktest:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient.sh"),
555 "$PREFIX/ktest/krb5_ccache-3", binding_string
, "-k", configuration
])
557 plantestsuite("samba3.blackbox.rpcclient_samlogon", "ad_member:local", [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_samlogon.sh"),
558 "$DC_USERNAME", "$DC_PASSWORD", "ncacn_np:$DC_SERVER", configuration
])
559 plantestsuite("samba3.blackbox.sharesec", "simpleserver:local",
560 [os
.path
.join(samba3srcdir
, "script/tests/test_sharesec.sh"),
561 configuration
, os
.path
.join(bindir(), "sharesec"), "tmp"])
563 plantestsuite("samba3.blackbox.net_tdb", "simpleserver:local",
564 [ os
.path
.join(samba3srcdir
, "script/tests/test_net_tdb.sh"),
565 smbclient3
, '$SERVER', 'tmp', '$USERNAME', '$PASSWORD',
566 configuration
, '$LOCAL_PATH', '$LOCK_DIR' ])
568 plantestsuite("samba3.blackbox.net_cache_samlogon", "ad_member:local",
569 [ os
.path
.join(samba3srcdir
, "script/tests/test_net_cache_samlogon.sh"),
570 '$SERVER', 'tmp', '$DC_USERNAME', '$DC_PASSWORD'])
572 plantestsuite("samba3.blackbox.net_dom_join_fail_dc", "nt4_dc",
573 [os
.path
.join(samba3srcdir
, "script/tests/test_net_dom_join_fail_dc.sh"),
574 "$USERNAME", "$PASSWORD", "$SERVER", "$PREFIX/net_dom_join_fail_dc",
576 plantestsuite("samba3.blackbox.net_rpc_join", "nt4_dc",
577 [os
.path
.join(samba3srcdir
, "script/tests/test_net_rpc_join.sh"),
578 "$USERNAME", "$PASSWORD", "$SERVER", "$PREFIX/net_rpc_join",
581 plantestsuite("samba3.blackbox.rpcclient_srvsvc", "simpleserver",
582 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclientsrvsvc.sh"),
583 "$USERNAME", "$PASSWORD", "$SERVER",
584 os
.path
.join(bindir(), "rpcclient"), "tmp"])
586 plantestsuite("samba3.blackbox.rpcclient.pw-nt-hash", "simpleserver",
587 [os
.path
.join(samba3srcdir
, "script/tests/test_rpcclient_pw_nt_hash.sh"),
588 "$USERNAME", "$PASSWORD", "$SERVER",
589 os
.path
.join(bindir(), "rpcclient")])
591 plantestsuite("samba3.blackbox.smbclient.encryption_off", "simpleserver",
592 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_encryption_off.sh"),
593 "$USERNAME", "$PASSWORD", "$SERVER",
596 # The ktest environment uses:
597 # server min protocol = SMB3_00
598 # client max protocol = SMB3
599 options_list
= ["", "-e"]
600 for options
in options_list
:
601 plantestsuite("samba3.blackbox.smbclient_krb5 old ccache %s" % options
, "ktest:local",
602 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_krb5.sh"),
603 "$PREFIX/ktest/krb5_ccache-2",
604 smbclient3
, "$SERVER", options
, configuration
])
606 plantestsuite("samba3.blackbox.smbclient_krb5 new ccache %s" % options
, "ktest:local",
607 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_krb5.sh"),
608 "$PREFIX/ktest/krb5_ccache-3",
609 smbclient3
, "$SERVER", options
, configuration
])
611 plantestsuite("samba3.blackbox.smbclient_large_file %s krb5" % options
, "ktest:local",
612 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_large_file.sh"),
613 "$PREFIX/ktest/krb5_ccache-3",
614 smbclient3
, "$SERVER", "$PREFIX", options
, "-k " + configuration
])
616 options_list
= ["-mNT1", "-mNT1 -e", "-mSMB3", "-mSMB3 -e"]
617 for options
in options_list
:
618 plantestsuite("samba3.blackbox.smbclient_large_file %s NTLM" % options
, "nt4_dc:local",
619 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_large_file.sh"),
621 smbclient3
, "$SERVER", "$PREFIX", options
, "-U$USERNAME%$PASSWORD " + configuration
])
623 for alias
in ["foo", "bar"]:
624 plantestsuite("samba3.blackbox.smbclient_netbios_aliases [%s]" % alias
, "ad_member:local",
625 [os
.path
.join(samba3srcdir
, "script/tests/test_smbclient_netbios_aliases.sh"),
626 smbclient3
, alias
, "$DC_USERNAME", "$DC_PASSWORD", "$PREFIX", options
, configuration
])
628 for e
in endianness_options
:
629 for a
in auth_options
:
630 for s
in signseal_options
:
631 binding_string
= "ncacn_ip_tcp:$SERVER_IP[%s%s%s]" % (a
, s
, e
)
632 options
= binding_string
+ " -U$USERNAME%$PASSWORD"
633 plansmbtorture4testsuite(test
, "nt4_dc", options
, 'over ncacn_ip_tcp with [%s%s%s] ' % (a
, s
, e
))
635 plansmbtorture4testsuite('rpc.epmapper', 'nt4_dc:local', 'ncalrpc: -U$USERNAME%$PASSWORD', 'over ncalrpc')
636 plansmbtorture4testsuite('rpc.fsrvp', 'nt4_dc:local', 'ncacn_np:$SERVER_IP[/pipe/FssagentRpc] -U$USERNAME%$PASSWORD', 'over ncacn_np')