s4: smbtorture: Add fsync_resource_fork test to fruit tests.
[Samba.git] / selftest / tests.py
blob2b3de3cdb6dec298b0976c5899480a99d6834426
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'})
108 planpythontestsuite("none", "samba.tests.safe_tarfile")
110 def cmdline(script, *args):
112 Prefix PYTHON env var and append --configurefile option to abs script path.
114 script.sh arg1 arg2
116 PYTHON=python /path/to/bbdir/script.sh arg1 arg2 \
117 --configurefile $SMB_CONF_FILE
119 return [
120 "PYTHON=%s" % python,
121 os.path.join(bbdir, script),
122 ] + list(args) + [configuration]
125 plantestsuite(
126 "samba4.blackbox.demote-saveddb", "none",
127 cmdline('demote-saveddb.sh', '$PREFIX_ABS/demote'))
129 plantestsuite(
130 "samba4.blackbox.dbcheck.alpha13", "none",
131 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
132 'alpha13'))
134 # same test as above but skip member link checks
135 plantestsuite(
136 "samba4.blackbox.dbcheck.alpha13.quick", "none",
137 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
138 'alpha13', '--quick-membership-checks'))
140 plantestsuite(
141 "samba4.blackbox.dbcheck.release-4-0-0", "none",
142 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
143 'release-4-0-0'))
145 # same test as above but skip member link checks
146 plantestsuite(
147 "samba4.blackbox.dbcheck.release-4-0-0.quick", "none",
148 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
149 'release-4-0-0', '--quick-membership-checks'))
151 plantestsuite(
152 "samba4.blackbox.dbcheck.release-4-1-0rc3", "none",
153 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
154 'release-4-1-0rc3'))
156 # same test as above but skip member link checks
157 plantestsuite(
158 "samba4.blackbox.dbcheck.release-4-1-0rc3.quick", "none",
159 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
160 'release-4-1-0rc3', '--quick-membership-checks'))
162 plantestsuite(
163 "samba4.blackbox.dbcheck.release-4-1-6-partial-object", "none",
164 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
165 'release-4-1-6-partial-object'))
167 # same test as above but skip member link checks
168 plantestsuite(
169 "samba4.blackbox.dbcheck.release-4-1-6-partial-object.quick", "none",
170 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
171 'release-4-1-6-partial-object', '--quick-membership-checks'))
173 plantestsuite(
174 "samba4.blackbox.dbcheck.release-4-5-0-pre1", "none",
175 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
176 'release-4-5-0-pre1'))
178 # same test as above but skip member link checks
179 plantestsuite(
180 "samba4.blackbox.dbcheck.release-4-5-0-pre1.quick", "none",
181 cmdline('dbcheck-oldrelease.sh', '$PREFIX_ABS/provision',
182 'release-4-5-0-pre1', '--quick-membership-checks'))
184 plantestsuite(
185 "samba4.blackbox.upgradeprovision.alpha13", "none",
186 cmdline('upgradeprovision-oldrelease.sh', '$PREFIX_ABS/provision',
187 'alpha13'))
189 plantestsuite(
190 "samba4.blackbox.upgradeprovision.release-4-0-0", "none",
191 cmdline('upgradeprovision-oldrelease.sh', '$PREFIX_ABS/provision',
192 'release-4-0-0'))
194 plantestsuite(
195 "samba4.blackbox.tombstones-expunge.release-4-5-0-pre1", "none",
196 cmdline('tombstones-expunge.sh', '$PREFIX_ABS/provision',
197 'release-4-5-0-pre1'))
199 plantestsuite(
200 "samba4.blackbox.dbcheck-links.release-4-5-0-pre1", "none",
201 cmdline('dbcheck-links.sh', '$PREFIX_ABS/provision',
202 'release-4-5-0-pre1'))
204 plantestsuite(
205 "samba4.blackbox.runtime-links.release-4-5-0-pre1", "none",
206 cmdline('runtime-links.sh', '$PREFIX_ABS/provision',
207 'release-4-5-0-pre1'))
209 plantestsuite(
210 "samba4.blackbox.schemaupgrade", "none",
211 cmdline('schemaupgrade.sh', '$PREFIX_ABS/provision'))
213 plantestsuite(
214 "samba4.blackbox.functionalprep", "none",
215 cmdline('functionalprep.sh', '$PREFIX_ABS/provision'))
217 plantestsuite(
218 "samba4.blackbox.test_special_group", "none",
219 cmdline('test_special_group.sh', '$PREFIX_ABS/provision'))
221 planpythontestsuite("none", "samba.tests.upgradeprovision")
222 planpythontestsuite("none", "samba.tests.xattr")
223 planpythontestsuite("none", "samba.tests.ntacls")
224 planpythontestsuite("none", "samba.tests.policy")
225 planpythontestsuite("none", "samba.tests.kcc.graph")
226 planpythontestsuite("none", "samba.tests.kcc.graph_utils")
227 planpythontestsuite("none", "samba.tests.kcc.ldif_import_export")
228 planpythontestsuite("none", "samba.tests.graph")
229 plantestsuite("wafsamba.duplicate_symbols", "none", [os.path.join(srcdir(), "buildtools/wafsamba/test_duplicate_symbol.sh")])
230 planpythontestsuite("none", "samba.tests.glue")
231 planpythontestsuite("none", "samba.tests.tdb_util")
232 planpythontestsuite("none", "samba.tests.samdb")
233 planpythontestsuite("none", "samba.tests.samdb_api")
234 planpythontestsuite("none", "samba.tests.ndr")
236 if with_pam:
237 env = "ad_member"
238 options = [
240 "description": "krb5",
241 "pam_options": "krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_%%u" % (tempfile.gettempdir()),
244 "description": "default",
245 "pam_options": "",
248 for o in options:
249 description = o["description"]
250 pam_options = "'%s'" % o["pam_options"]
252 plantestsuite("samba.tests.pam_winbind(local+%s)" % description, env,
253 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
254 valgrindify(python), pam_wrapper_so_path,
255 "$SERVER", "$USERNAME", "$PASSWORD",
256 pam_options])
257 plantestsuite("samba.tests.pam_winbind(domain1+%s)" % description, env,
258 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
259 valgrindify(python), pam_wrapper_so_path,
260 "$DOMAIN", "$DC_USERNAME", "$DC_PASSWORD",
261 pam_options])
262 plantestsuite("samba.tests.pam_winbind(domain2+%s)" % description, env,
263 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
264 valgrindify(python), pam_wrapper_so_path,
265 "$REALM", "$DC_USERNAME", "$DC_PASSWORD",
266 pam_options])
267 plantestsuite("samba.tests.pam_winbind(domain3+%s)" % description, env,
268 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
269 valgrindify(python), pam_wrapper_so_path,
270 "''", "${DC_USERNAME}@${DOMAIN}", "$DC_PASSWORD",
271 pam_options])
272 plantestsuite("samba.tests.pam_winbind(domain4+%s)" % description, env,
273 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
274 valgrindify(python), pam_wrapper_so_path,
275 "''", "${DC_USERNAME}@${REALM}", "$DC_PASSWORD",
276 pam_options])
277 plantestsuite("samba.tests.pam_winbind(domain5+%s)" % description, env,
278 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
279 valgrindify(python), pam_wrapper_so_path,
280 "$REALM", "${DC_USERNAME}@${DOMAIN}", "$DC_PASSWORD",
281 pam_options])
282 plantestsuite("samba.tests.pam_winbind(domain6+%s)" % description, env,
283 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
284 valgrindify(python), pam_wrapper_so_path,
285 "$DOMAIN", "${DC_USERNAME}@${REALM}", "$DC_PASSWORD",
286 pam_options])
287 plantestsuite("samba.tests.pam_winbind(trust_f_both1+%s)" % description, env,
288 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
289 valgrindify(python), pam_wrapper_so_path,
290 "$TRUST_F_BOTH_DOMAIN",
291 "$TRUST_F_BOTH_USERNAME",
292 "$TRUST_F_BOTH_PASSWORD",
293 pam_options])
294 plantestsuite("samba.tests.pam_winbind(trust_f_both2+%s)" % description, env,
295 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
296 valgrindify(python), pam_wrapper_so_path,
297 "$TRUST_F_BOTH_REALM",
298 "$TRUST_F_BOTH_USERNAME",
299 "$TRUST_F_BOTH_PASSWORD",
300 pam_options])
301 plantestsuite("samba.tests.pam_winbind(trust_f_both3+%s)" % description, env,
302 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
303 valgrindify(python), pam_wrapper_so_path,
304 "''",
305 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_DOMAIN}",
306 "$TRUST_F_BOTH_PASSWORD",
307 pam_options])
308 plantestsuite("samba.tests.pam_winbind(trust_f_both4+%s)" % description, env,
309 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
310 valgrindify(python), pam_wrapper_so_path,
311 "''",
312 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_REALM}",
313 "$TRUST_F_BOTH_PASSWORD",
314 pam_options])
315 plantestsuite("samba.tests.pam_winbind(trust_f_both5+%s)" % description, env,
316 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
317 valgrindify(python), pam_wrapper_so_path,
318 "${TRUST_F_BOTH_REALM}",
319 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_DOMAIN}",
320 "$TRUST_F_BOTH_PASSWORD",
321 pam_options])
322 plantestsuite("samba.tests.pam_winbind(trust_f_both6+%s)" % description, env,
323 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
324 valgrindify(python), pam_wrapper_so_path,
325 "${TRUST_F_BOTH_DOMAIN}",
326 "${TRUST_F_BOTH_USERNAME}@${TRUST_F_BOTH_REALM}",
327 "$TRUST_F_BOTH_PASSWORD",
328 pam_options])
329 plantestsuite("samba.tests.pam_winbind(trust_e_both1+%s)" % description, env,
330 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
331 valgrindify(python), pam_wrapper_so_path,
332 "$TRUST_E_BOTH_DOMAIN",
333 "$TRUST_E_BOTH_USERNAME",
334 "$TRUST_E_BOTH_PASSWORD",
335 pam_options])
336 plantestsuite("samba.tests.pam_winbind(trust_e_both2+%s)" % description, env,
337 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
338 valgrindify(python), pam_wrapper_so_path,
339 "$TRUST_E_BOTH_REALM",
340 "$TRUST_E_BOTH_USERNAME",
341 "$TRUST_E_BOTH_PASSWORD",
342 pam_options])
343 plantestsuite("samba.tests.pam_winbind(trust_e_both3+%s)" % description, env,
344 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
345 valgrindify(python), pam_wrapper_so_path,
346 "''",
347 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_DOMAIN}",
348 "$TRUST_E_BOTH_PASSWORD",
349 pam_options])
350 plantestsuite("samba.tests.pam_winbind(trust_e_both4+%s)" % description, env,
351 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
352 valgrindify(python), pam_wrapper_so_path,
353 "''",
354 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_REALM}",
355 "$TRUST_E_BOTH_PASSWORD",
356 pam_options])
357 plantestsuite("samba.tests.pam_winbind(trust_e_both5+%s)" % description, env,
358 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
359 valgrindify(python), pam_wrapper_so_path,
360 "${TRUST_E_BOTH_REALM}",
361 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_DOMAIN}",
362 "$TRUST_E_BOTH_PASSWORD",
363 pam_options])
364 plantestsuite("samba.tests.pam_winbind(trust_e_both6+%s)" % description, env,
365 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind.sh"),
366 valgrindify(python), pam_wrapper_so_path,
367 "${TRUST_E_BOTH_DOMAIN}",
368 "${TRUST_E_BOTH_USERNAME}@${TRUST_E_BOTH_REALM}",
369 "$TRUST_E_BOTH_PASSWORD",
370 pam_options])
372 for authtok_options in ["", "use_authtok", "try_authtok"]:
373 _pam_options = "'%s %s'" % (o["pam_options"], authtok_options)
374 _description = "%s %s" % (description, authtok_options)
375 plantestsuite("samba.tests.pam_winbind_chauthtok(domain+%s)" % _description, env,
376 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_chauthtok.sh"),
377 valgrindify(python), pam_wrapper_so_path, pam_set_items_so_path,
378 "$DOMAIN", "TestPamOptionsUser", "oldp@ssword0", "newp@ssword0",
379 _pam_options, 'yes',
380 "$DC_SERVER", "$DC_USERNAME", "$DC_PASSWORD"])
382 plantestsuite("samba.tests.pam_winbind_warn_pwd_expire(domain+%s)" % description, env,
383 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_warn_pwd_expire.sh"),
384 valgrindify(python), pam_wrapper_so_path,
385 "$DOMAIN", "alice", "Secret007",
386 pam_options])
388 description = "krb5"
389 pam_options = "'krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_setcred_%%u'" % (tempfile.gettempdir())
390 plantestsuite("samba.tests.pam_winbind_setcred(domain+%s)" % description, "ad_dc:local",
391 [os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_setcred.sh"),
392 valgrindify(python), pam_wrapper_so_path,
393 "${DOMAIN}", "${DC_USERNAME}", "${DC_PASSWORD}",
394 pam_options])
397 plantestsuite("samba.unittests.krb5samba", "none",
398 [os.path.join(bindir(), "default/testsuite/unittests/test_krb5samba")])
399 plantestsuite("samba.unittests.lib_util_modules", "none",
400 [os.path.join(bindir(), "default/testsuite/unittests/test_lib_util_modules")])
401 plantestsuite("samba.unittests.background_send",
402 "none",
403 [os.path.join(
404 bindir(),
405 "default/testsuite/unittests/test_background_send"),
406 "$SMB_CONF_PATH"])
408 plantestsuite("samba.unittests.smb1cli_session", "none",
409 [os.path.join(bindir(), "default/libcli/smb/test_smb1cli_session")])
410 plantestsuite("samba.unittests.smb_util_translate", "none",
411 [os.path.join(bindir(), "default/libcli/smb/test_util_translate")])
413 plantestsuite("samba.unittests.talloc_keep_secret", "none",
414 [os.path.join(bindir(), "default/lib/util/test_talloc_keep_secret")])
416 plantestsuite("samba.unittests.tldap", "none",
417 [os.path.join(bindir(), "default/source3/test_tldap")])
418 plantestsuite("samba.unittests.rfc1738", "none",
419 [os.path.join(bindir(), "default/lib/util/test_rfc1738")])
420 plantestsuite("samba.unittests.kerberos", "none",
421 [os.path.join(bindir(), "test_kerberos")])
422 plantestsuite("samba.unittests.ms_fnmatch", "none",
423 [os.path.join(bindir(), "default/lib/util/test_ms_fnmatch")])
424 plantestsuite("samba.unittests.byteorder", "none",
425 [os.path.join(bindir(), "default/lib/util/test_byteorder")])
426 plantestsuite("samba.unittests.bytearray", "none",
427 [os.path.join(bindir(), "default/lib/util/test_bytearray")])
428 plantestsuite("samba.unittests.byteorder_verify", "none",
429 [os.path.join(bindir(), "default/lib/util/test_byteorder_verify")])
430 plantestsuite("samba.unittests.util_paths", "none",
431 [os.path.join(bindir(), "default/lib/util/test_util_paths")])
432 plantestsuite("samba.unittests.util", "none",
433 [os.path.join(bindir(), "default/lib/util/test_util")])
434 plantestsuite("samba.unittests.memcache", "none",
435 [os.path.join(bindir(), "default/lib/util/test_memcache")])
436 plantestsuite("samba.unittests.sys_rw", "none",
437 [os.path.join(bindir(), "default/lib/util/test_sys_rw")])
438 plantestsuite("samba.unittests.ntlm_check", "none",
439 [os.path.join(bindir(), "default/libcli/auth/test_ntlm_check")])
440 plantestsuite("samba.unittests.gnutls", "none",
441 [os.path.join(bindir(), "default/libcli/auth/test_gnutls")])
442 plantestsuite("samba.unittests.rc4_passwd_buffer", "none",
443 [os.path.join(bindir(), "default/libcli/auth/test_rc4_passwd_buffer")])
444 plantestsuite("samba.unittests.schannel", "none",
445 [os.path.join(bindir(), "default/libcli/auth/test_schannel")])
446 plantestsuite("samba.unittests.test_registry_regfio", "none",
447 [os.path.join(bindir(), "default/source3/test_registry_regfio")])
448 plantestsuite("samba.unittests.test_oLschema2ldif", "none",
449 [os.path.join(bindir(), "default/source4/utils/oLschema2ldif/test_oLschema2ldif")])
450 plantestsuite("samba.unittests.auth.sam", "none",
451 [os.path.join(bindir(), "test_auth_sam")])
452 if with_elasticsearch_backend:
453 plantestsuite("samba.unittests.mdsparser_es", "none",
454 [os.path.join(bindir(), "default/source3/test_mdsparser_es")] + [configuration])
455 plantestsuite("samba.unittests.mdsparser_es_failures", "none",
456 [os.path.join(bindir(), "default/source3/test_mdsparser_es"),
457 " --option=elasticsearch:testmappingfailures=yes",
458 " --option=elasticsearch:ignoreunknownattribute=yes",
459 " --option=elasticsearch:ignoreunknowntype=yes"] +
460 [configuration])
461 plantestsuite("samba.unittests.credentials", "none",
462 [os.path.join(bindir(), "default/auth/credentials/test_creds")])
463 plantestsuite("samba.unittests.tsocket_bsd_addr", "none",
464 [os.path.join(bindir(), "default/lib/tsocket/test_tsocket_bsd_addr")])
465 plantestsuite("samba.unittests.adouble", "none",
466 [os.path.join(bindir(), "test_adouble")])
467 plantestsuite("samba.unittests.gnutls_aead_aes_256_cbc_hmac_sha512", "none",
468 [os.path.join(bindir(), "test_gnutls_aead_aes_256_cbc_hmac_sha512")])
469 plantestsuite("samba.unittests.encode_decode", "none",
470 [os.path.join(bindir(), "test_encode_decode")])