s3:locking: remove unused get_share_mode_lock()
[Samba.git] / selftest / tests.py
blobb5e418cca3b2cb30a963ac7b13a954d74735b119
1 #!/usr/bin/python
2 # This script generates a list of testsuites that should be run as part of
3 # the Samba 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, 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/knownfail. This makes it
12 # very easy to see what functionality is still missing in Samba and makes
13 # it possible to run the testsuite against other servers, such as
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
19 # comments.
21 import os, tempfile
22 from selftesthelpers import bindir, srcdir, python
23 from selftesthelpers import planpythontestsuite, samba4srcdir
24 from selftesthelpers import plantestsuite, bbdir
25 from selftesthelpers import configuration, valgrindify
26 from selftesthelpers import skiptestsuite
28 try:
29 config_h = os.environ["CONFIG_H"]
30 except KeyError:
31 samba4bindir = bindir()
32 config_h = os.path.join(samba4bindir, "default/include/config.h")
34 # check available features
35 config_hash = dict()
36 f = open(config_h, 'r')
37 try:
38 lines = f.readlines()
39 config_hash = dict((x[0], ' '.join(x[1:]))
40 for x in map(lambda line: line.strip().split(' ')[1:],
41 list(filter(lambda line: (line[0:7] == '#define') and (len(line.split(' ')) > 2), lines))))
42 finally:
43 f.close()
45 have_man_pages_support = ("XSLTPROC_MANPAGES" in config_hash)
46 with_pam = ("WITH_PAM" in config_hash)
47 with_elasticsearch_backend = ("HAVE_SPOTLIGHT_BACKEND_ES" in config_hash)
48 pam_wrapper_so_path = config_hash.get("LIBPAM_WRAPPER_SO_PATH")
49 pam_set_items_so_path = config_hash.get("PAM_SET_ITEMS_SO_PATH")
51 planpythontestsuite("none", "samba.tests.source")
52 planpythontestsuite("none", "samba.tests.source_chars")
54 if have_man_pages_support:
55 planpythontestsuite("none", "samba.tests.docs")
57 try:
58 import testscenarios
59 except ImportError:
60 skiptestsuite("subunit", "testscenarios not available")
61 else:
62 planpythontestsuite("none", "subunit.tests.test_suite")
63 planpythontestsuite("none", "samba.tests.blackbox.ndrdump")
64 planpythontestsuite("none", "samba.tests.blackbox.check_output")
65 planpythontestsuite("none", "api", name="ldb.python", extra_path=['lib/ldb/tests/python'])
66 planpythontestsuite("none", "samba.tests.credentials")
67 planpythontestsuite("none", "samba.tests.registry")
68 planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.auth")
69 planpythontestsuite("none", "samba.tests.get_opt")
70 planpythontestsuite("none", "samba.tests.cred_opt")
71 planpythontestsuite("none", "samba.tests.security")
72 planpythontestsuite("none", "samba.tests.dcerpc.misc")
73 planpythontestsuite("none", "samba.tests.dcerpc.integer")
74 planpythontestsuite("none", "samba.tests.param")
75 planpythontestsuite("none", "samba.tests.upgrade")
76 planpythontestsuite("none", "samba.tests.core")
77 planpythontestsuite("none", "samba.tests.common")
78 planpythontestsuite("none", "samba.tests.provision")
79 planpythontestsuite("none", "samba.tests.password_quality")
80 planpythontestsuite("none", "samba.tests.strings")
81 planpythontestsuite("none", "samba.tests.netcmd")
82 planpythontestsuite("none", "samba.tests.dcerpc.rpc_talloc")
83 planpythontestsuite("none", "samba.tests.dcerpc.array")
84 planpythontestsuite("none", "samba.tests.dcerpc.string_tests")
85 planpythontestsuite("none", "samba.tests.hostconfig")
86 planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.messaging")
87 planpythontestsuite("none", "samba.tests.s3param")
88 planpythontestsuite("none", "samba.tests.s3passdb")
89 planpythontestsuite("none", "samba.tests.s3registry")
90 planpythontestsuite("none", "samba.tests.s3windb")
91 planpythontestsuite("none", "samba.tests.s3idmapdb")
92 planpythontestsuite("none", "samba.tests.samba3sam")
93 planpythontestsuite("none", "samba.tests.dsdb_api")
94 planpythontestsuite("none", "samba.tests.smbconf")
95 planpythontestsuite("none", "samba.tests.logfiles")
96 planpythontestsuite(
97 "none", "wafsamba.tests.test_suite",
98 extra_path=[os.path.join(samba4srcdir, "..", "buildtools"),
99 os.path.join(samba4srcdir, "..", "third_party", "waf")])
100 planpythontestsuite("fileserver", "samba.tests.smbd_fuzztest")
101 planpythontestsuite("nt4_dc_smb1", "samba.tests.dcerpc.binding")
102 planpythontestsuite('ad_dc:local', "samba.tests.dcerpc.samr_change_password")
103 planpythontestsuite('ad_dc_fips:local',
104 "samba.tests.dcerpc.samr_change_password",
105 environ={'GNUTLS_FORCE_FIPS_MODE': '1',
106 'OPENSSL_FORCE_FIPS_MODE': '1'})
109 def cmdline(script, *args):
111 Prefix PYTHON env var and append --configurefile option to abs script path.
113 script.sh arg1 arg2
115 PYTHON=python /path/to/bbdir/script.sh arg1 arg2 \
116 --configurefile $SMB_CONF_FILE
118 return [
119 "PYTHON=%s" % python,
120 os.path.join(bbdir, script),
121 ] + list(args) + [configuration]
124 plantestsuite(
125 "samba4.blackbox.demote-saveddb", "none",
126 cmdline('demote-saveddb.sh', '$PREFIX_ABS/demote'))
128 plantestsuite(
129 "samba4.blackbox.dbcheck.alpha13", "none",
130 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
131 'alpha13'))
133 # same test as above but skip member link checks
134 plantestsuite(
135 "samba4.blackbox.dbcheck.alpha13.quick", "none",
136 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
137 'alpha13', '--quick-membership-checks'))
139 plantestsuite(
140 "samba4.blackbox.dbcheck.release-4-0-0", "none",
141 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
142 'release-4-0-0'))
144 # same test as above but skip member link checks
145 plantestsuite(
146 "samba4.blackbox.dbcheck.release-4-0-0.quick", "none",
147 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
148 'release-4-0-0', '--quick-membership-checks'))
150 plantestsuite(
151 "samba4.blackbox.dbcheck.release-4-1-0rc3", "none",
152 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
153 'release-4-1-0rc3'))
155 # same test as above but skip member link checks
156 plantestsuite(
157 "samba4.blackbox.dbcheck.release-4-1-0rc3.quick", "none",
158 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
159 'release-4-1-0rc3', '--quick-membership-checks'))
161 plantestsuite(
162 "samba4.blackbox.dbcheck.release-4-1-6-partial-object", "none",
163 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
164 'release-4-1-6-partial-object'))
166 # same test as above but skip member link checks
167 plantestsuite(
168 "samba4.blackbox.dbcheck.release-4-1-6-partial-object.quick", "none",
169 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
170 'release-4-1-6-partial-object', '--quick-membership-checks'))
172 plantestsuite(
173 "samba4.blackbox.dbcheck.release-4-5-0-pre1", "none",
174 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
175 'release-4-5-0-pre1'))
177 # same test as above but skip member link checks
178 plantestsuite(
179 "samba4.blackbox.dbcheck.release-4-5-0-pre1.quick", "none",
180 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
181 'release-4-5-0-pre1', '--quick-membership-checks'))
183 plantestsuite(
184 "samba4.blackbox.upgradeprovision.alpha13", "none",
185 cmdline('upgradeprovision-oldrelease.sh', '$PREFIX_ABS/provision',
186 'alpha13'))
188 plantestsuite(
189 "samba4.blackbox.upgradeprovision.release-4-0-0", "none",
190 cmdline('upgradeprovision-oldrelease.sh', '$PREFIX_ABS/provision',
191 'release-4-0-0'))
193 plantestsuite(
194 "samba4.blackbox.tombstones-expunge.release-4-5-0-pre1", "none",
195 cmdline('tombstones-expunge.sh', '$PREFIX_ABS/provision',
196 'release-4-5-0-pre1'))
198 plantestsuite(
199 "samba4.blackbox.dbcheck-links.release-4-5-0-pre1", "none",
200 cmdline('dbcheck-links.sh', '$PREFIX_ABS/provision',
201 'release-4-5-0-pre1'))
203 plantestsuite(
204 "samba4.blackbox.runtime-links.release-4-5-0-pre1", "none",
205 cmdline('runtime-links.sh', '$PREFIX_ABS/provision',
206 'release-4-5-0-pre1'))
208 plantestsuite(
209 "samba4.blackbox.schemaupgrade", "none",
210 cmdline('schemaupgrade.sh', '$PREFIX_ABS/provision'))
212 plantestsuite(
213 "samba4.blackbox.functionalprep", "none",
214 cmdline('functionalprep.sh', '$PREFIX_ABS/provision'))
216 plantestsuite(
217 "samba4.blackbox.test_special_group", "none",
218 cmdline('test_special_group.sh', '$PREFIX_ABS/provision'))
220 planpythontestsuite("none", "samba.tests.upgradeprovision")
221 planpythontestsuite("none", "samba.tests.xattr")
222 planpythontestsuite("none", "samba.tests.ntacls")
223 planpythontestsuite("none", "samba.tests.policy")
224 planpythontestsuite("none", "samba.tests.kcc.graph")
225 planpythontestsuite("none", "samba.tests.kcc.graph_utils")
226 planpythontestsuite("none", "samba.tests.kcc.ldif_import_export")
227 planpythontestsuite("none", "samba.tests.graph")
228 plantestsuite("wafsamba.duplicate_symbols", "none", [os.path.join(srcdir(), "buildtools/wafsamba/test_duplicate_symbol.sh")])
229 planpythontestsuite("none", "samba.tests.glue")
230 planpythontestsuite("none", "samba.tests.tdb_util")
231 planpythontestsuite("none", "samba.tests.samdb")
232 planpythontestsuite("none", "samba.tests.samdb_api")
233 planpythontestsuite("none", "samba.tests.ndr")
235 if with_pam:
236 env = "ad_member"
237 options = [
239 "description": "krb5",
240 "pam_options": "krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_%%u" % (tempfile.gettempdir()),
243 "description": "default",
244 "pam_options": "",
247 for o in options:
248 description = o["description"]
249 pam_options = "'%s'" % o["pam_options"]
251 plantestsuite("samba.tests.pam_winbind(local+%s)" % description, env,
252 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
253 valgrindify(python), pam_wrapper_so_path,
254 "$SERVER", "$USERNAME", "$PASSWORD",
255 pam_options])
256 plantestsuite("samba.tests.pam_winbind(domain1+%s)" % description, env,
257 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
258 valgrindify(python), pam_wrapper_so_path,
259 "$DOMAIN", "$DC_USERNAME", "$DC_PASSWORD",
260 pam_options])
261 plantestsuite("samba.tests.pam_winbind(domain2+%s)" % description, env,
262 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
263 valgrindify(python), pam_wrapper_so_path,
264 "$REALM", "$DC_USERNAME", "$DC_PASSWORD",
265 pam_options])
266 plantestsuite("samba.tests.pam_winbind(domain3+%s)" % description, env,
267 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
268 valgrindify(python), pam_wrapper_so_path,
269 "''", "${DC_USERNAME}@${DOMAIN}", "$DC_PASSWORD",
270 pam_options])
271 plantestsuite("samba.tests.pam_winbind(domain4+%s)" % description, env,
272 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
273 valgrindify(python), pam_wrapper_so_path,
274 "''", "${DC_USERNAME}@${REALM}", "$DC_PASSWORD",
275 pam_options])
276 plantestsuite("samba.tests.pam_winbind(domain5+%s)" % description, env,
277 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
278 valgrindify(python), pam_wrapper_so_path,
279 "$REALM", "${DC_USERNAME}@${DOMAIN}", "$DC_PASSWORD",
280 pam_options])
281 plantestsuite("samba.tests.pam_winbind(domain6+%s)" % description, env,
282 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
283 valgrindify(python), pam_wrapper_so_path,
284 "$DOMAIN", "${DC_USERNAME}@${REALM}", "$DC_PASSWORD",
285 pam_options])
286 plantestsuite("samba.tests.pam_winbind(trust_f_both1+%s)" % description, env,
287 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
288 valgrindify(python), pam_wrapper_so_path,
289 "$TRUST_F_BOTH_DOMAIN",
290 "$TRUST_F_BOTH_USERNAME",
291 "$TRUST_F_BOTH_PASSWORD",
292 pam_options])
293 plantestsuite("samba.tests.pam_winbind(trust_f_both2+%s)" % description, env,
294 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
295 valgrindify(python), pam_wrapper_so_path,
296 "$TRUST_F_BOTH_REALM",
297 "$TRUST_F_BOTH_USERNAME",
298 "$TRUST_F_BOTH_PASSWORD",
299 pam_options])
300 plantestsuite("samba.tests.pam_winbind(trust_f_both3+%s)" % description, env,
301 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
302 valgrindify(python), pam_wrapper_so_path,
303 "''",
304 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_DOMAIN}",
305 "$TRUST_F_BOTH_PASSWORD",
306 pam_options])
307 plantestsuite("samba.tests.pam_winbind(trust_f_both4+%s)" % description, env,
308 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
309 valgrindify(python), pam_wrapper_so_path,
310 "''",
311 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_REALM}",
312 "$TRUST_F_BOTH_PASSWORD",
313 pam_options])
314 plantestsuite("samba.tests.pam_winbind(trust_f_both5+%s)" % description, env,
315 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
316 valgrindify(python), pam_wrapper_so_path,
317 "${TRUST_F_BOTH_REALM}",
318 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_DOMAIN}",
319 "$TRUST_F_BOTH_PASSWORD",
320 pam_options])
321 plantestsuite("samba.tests.pam_winbind(trust_f_both6+%s)" % description, env,
322 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
323 valgrindify(python), pam_wrapper_so_path,
324 "${TRUST_F_BOTH_DOMAIN}",
325 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_REALM}",
326 "$TRUST_F_BOTH_PASSWORD",
327 pam_options])
328 plantestsuite("samba.tests.pam_winbind(trust_e_both1+%s)" % description, env,
329 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
330 valgrindify(python), pam_wrapper_so_path,
331 "$TRUST_E_BOTH_DOMAIN",
332 "$TRUST_E_BOTH_USERNAME",
333 "$TRUST_E_BOTH_PASSWORD",
334 pam_options])
335 plantestsuite("samba.tests.pam_winbind(trust_e_both2+%s)" % description, env,
336 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
337 valgrindify(python), pam_wrapper_so_path,
338 "$TRUST_E_BOTH_REALM",
339 "$TRUST_E_BOTH_USERNAME",
340 "$TRUST_E_BOTH_PASSWORD",
341 pam_options])
342 plantestsuite("samba.tests.pam_winbind(trust_e_both3+%s)" % description, env,
343 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
344 valgrindify(python), pam_wrapper_so_path,
345 "''",
346 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_DOMAIN}",
347 "$TRUST_E_BOTH_PASSWORD",
348 pam_options])
349 plantestsuite("samba.tests.pam_winbind(trust_e_both4+%s)" % description, env,
350 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
351 valgrindify(python), pam_wrapper_so_path,
352 "''",
353 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_REALM}",
354 "$TRUST_E_BOTH_PASSWORD",
355 pam_options])
356 plantestsuite("samba.tests.pam_winbind(trust_e_both5+%s)" % description, env,
357 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
358 valgrindify(python), pam_wrapper_so_path,
359 "${TRUST_E_BOTH_REALM}",
360 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_DOMAIN}",
361 "$TRUST_E_BOTH_PASSWORD",
362 pam_options])
363 plantestsuite("samba.tests.pam_winbind(trust_e_both6+%s)" % description, env,
364 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
365 valgrindify(python), pam_wrapper_so_path,
366 "${TRUST_E_BOTH_DOMAIN}",
367 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_REALM}",
368 "$TRUST_E_BOTH_PASSWORD",
369 pam_options])
371 for authtok_options in ["", "use_authtok", "try_authtok"]:
372 _pam_options = "'%s %s'" % (o["pam_options"], authtok_options)
373 _description = "%s %s" % (description, authtok_options)
374 plantestsuite("samba.tests.pam_winbind_chauthtok(domain+%s)" % _description, env,
375 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_chauthtok.sh"),
376 valgrindify(python), pam_wrapper_so_path, pam_set_items_so_path,
377 "$DOMAIN", "TestPamOptionsUser", "oldp@ssword0", "newp@ssword0",
378 _pam_options, 'yes',
379 "$DC_SERVER", "$DC_USERNAME", "$DC_PASSWORD"])
381 plantestsuite("samba.tests.pam_winbind_warn_pwd_expire(domain+%s)" % description, env,
382 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_warn_pwd_expire.sh"),
383 valgrindify(python), pam_wrapper_so_path,
384 "$DOMAIN", "alice", "Secret007",
385 pam_options])
387 description = "krb5"
388 pam_options = "'krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_setcred_%%u'" % (tempfile.gettempdir())
389 plantestsuite("samba.tests.pam_winbind_setcred(domain+%s)" % description, "ad_dc:local",
390 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_setcred.sh"),
391 valgrindify(python), pam_wrapper_so_path,
392 "${DOMAIN}", "${DC_USERNAME}", "${DC_PASSWORD}",
393 pam_options])
396 plantestsuite("samba.unittests.krb5samba", "none",
397 [os.path.join(bindir(), "default/testsuite/unittests/test_krb5samba")])
398 plantestsuite("samba.unittests.lib_util_modules", "none",
399 [os.path.join(bindir(), "default/testsuite/unittests/test_lib_util_modules")])
400 plantestsuite("samba.unittests.background_send",
401 "none",
402 [os.path.join(
403 bindir(),
404 "default/testsuite/unittests/test_background_send"),
405 "$SMB_CONF_PATH"])
407 plantestsuite("samba.unittests.smb1cli_session", "none",
408 [os.path.join(bindir(), "default/libcli/smb/test_smb1cli_session")])
409 plantestsuite("samba.unittests.smb_util_translate", "none",
410 [os.path.join(bindir(), "default/libcli/smb/test_util_translate")])
412 plantestsuite("samba.unittests.talloc_keep_secret", "none",
413 [os.path.join(bindir(), "default/lib/util/test_talloc_keep_secret")])
415 plantestsuite("samba.unittests.tldap", "none",
416 [os.path.join(bindir(), "default/source3/test_tldap")])
417 plantestsuite("samba.unittests.rfc1738", "none",
418 [os.path.join(bindir(), "default/lib/util/test_rfc1738")])
419 plantestsuite("samba.unittests.kerberos", "none",
420 [os.path.join(bindir(), "test_kerberos")])
421 plantestsuite("samba.unittests.ms_fnmatch", "none",
422 [os.path.join(bindir(), "default/lib/util/test_ms_fnmatch")])
423 plantestsuite("samba.unittests.byteorder", "none",
424 [os.path.join(bindir(), "default/lib/util/test_byteorder")])
425 plantestsuite("samba.unittests.bytearray", "none",
426 [os.path.join(bindir(), "default/lib/util/test_bytearray")])
427 plantestsuite("samba.unittests.byteorder_verify", "none",
428 [os.path.join(bindir(), "default/lib/util/test_byteorder_verify")])
429 plantestsuite("samba.unittests.util_paths", "none",
430 [os.path.join(bindir(), "default/lib/util/test_util_paths")])
431 plantestsuite("samba.unittests.util", "none",
432 [os.path.join(bindir(), "default/lib/util/test_util")])
433 plantestsuite("samba.unittests.memcache", "none",
434 [os.path.join(bindir(), "default/lib/util/test_memcache")])
435 plantestsuite("samba.unittests.sys_rw", "none",
436 [os.path.join(bindir(), "default/lib/util/test_sys_rw")])
437 plantestsuite("samba.unittests.ntlm_check", "none",
438 [os.path.join(bindir(), "default/libcli/auth/test_ntlm_check")])
439 plantestsuite("samba.unittests.gnutls", "none",
440 [os.path.join(bindir(), "default/libcli/auth/test_gnutls")])
441 plantestsuite("samba.unittests.rc4_passwd_buffer", "none",
442 [os.path.join(bindir(), "default/libcli/auth/test_rc4_passwd_buffer")])
443 plantestsuite("samba.unittests.schannel", "none",
444 [os.path.join(bindir(), "default/libcli/auth/test_schannel")])
445 plantestsuite("samba.unittests.test_registry_regfio", "none",
446 [os.path.join(bindir(), "default/source3/test_registry_regfio")])
447 plantestsuite("samba.unittests.test_oLschema2ldif", "none",
448 [os.path.join(bindir(), "default/source4/utils/oLschema2ldif/test_oLschema2ldif")])
449 plantestsuite("samba.unittests.auth.sam", "none",
450 [os.path.join(bindir(), "test_auth_sam")])
451 if with_elasticsearch_backend:
452 plantestsuite("samba.unittests.mdsparser_es", "none",
453 [os.path.join(bindir(), "default/source3/test_mdsparser_es")] + [configuration])
454 plantestsuite("samba.unittests.mdsparser_es_failures", "none",
455 [os.path.join(bindir(), "default/source3/test_mdsparser_es"),
456 " --option=elasticsearch:testmappingfailures=yes",
457 " --option=elasticsearch:ignoreunknownattribute=yes",
458 " --option=elasticsearch:ignoreunknowntype=yes"] +
459 [configuration])
460 plantestsuite("samba.unittests.credentials", "none",
461 [os.path.join(bindir(), "default/auth/credentials/test_creds")])
462 plantestsuite("samba.unittests.tsocket_bsd_addr", "none",
463 [os.path.join(bindir(), "default/lib/tsocket/test_tsocket_bsd_addr")])
464 plantestsuite("samba.unittests.adouble", "none",
465 [os.path.join(bindir(), "test_adouble")])
466 plantestsuite("samba.unittests.gnutls_aead_aes_256_cbc_hmac_sha512", "none",
467 [os.path.join(bindir(), "test_gnutls_aead_aes_256_cbc_hmac_sha512")])
468 plantestsuite("samba.unittests.encode_decode", "none",
469 [os.path.join(bindir(), "test_encode_decode")])