mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
selftest: Bring ldb test defintions into one place in selftest/tests.py
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
05ce3810e3
commit
a4afb2eead
@ -25,10 +25,10 @@ from selftesthelpers import plantestsuite, bbdir
|
||||
from selftesthelpers import configuration, valgrindify
|
||||
from selftesthelpers import skiptestsuite
|
||||
|
||||
samba4bindir = bindir()
|
||||
try:
|
||||
config_h = os.environ["CONFIG_H"]
|
||||
except KeyError:
|
||||
samba4bindir = bindir()
|
||||
config_h = os.path.join(samba4bindir, "default/include/config.h")
|
||||
|
||||
# check available features
|
||||
@ -141,6 +141,10 @@ for ldb_test_exe in ldb_test_exes:
|
||||
plantestsuite(f"ldb.unittests.{ldb_test_exe}", "none",
|
||||
[os.path.join(bindir(), f"default/lib/ldb/{ldb_test_exe}")])
|
||||
|
||||
# Shell based LDB blackbox tests and the older ldbtest C tests
|
||||
ldbdir = os.path.join(srcdir(), "lib/ldb")
|
||||
plantestsuite("ldb.base", "none", "%s/tests/test-tdb-subunit.sh %s" % (ldbdir, samba4bindir))
|
||||
|
||||
planpythontestsuite("none", "samba.tests.credentials")
|
||||
planpythontestsuite("none", "samba.tests.registry")
|
||||
planpythontestsuite("ad_dc_ntvfs:local", "samba.tests.auth")
|
||||
|
@ -202,9 +202,6 @@ for t in smbtorture4_testsuites("ldap."):
|
||||
for t in smbtorture4_testsuites("dsdb."):
|
||||
plansmbtorture4testsuite(t, "ad_dc:local", "localhost")
|
||||
|
||||
ldbdir = os.path.join(srcdir(), "lib/ldb")
|
||||
plantestsuite("ldb.base", "none", "%s/tests/test-tdb-subunit.sh %s" % (ldbdir, samba4bindir))
|
||||
|
||||
plantestsuite_loadlist("samba4.tests.attr_from_server.python(ad_dc_ntvfs)",
|
||||
"ad_dc_ntvfs:local",
|
||||
[python, os.path.join(DSDB_PYTEST_DIR, "attr_from_server.py"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user