From: Andrew Bartlett Date: Mon, 5 Feb 2024 04:18:10 +0000 (+1300) Subject: selftest: Bring ldb test defintions into one place in selftest/tests.py X-Git-Tag: tdb-1.4.11~1615 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4afb2eeade7136092668c2a67c51c41b64e6147;p=thirdparty%2Fsamba.git selftest: Bring ldb test defintions into one place in selftest/tests.py Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/selftest/tests.py b/selftest/tests.py index d6eb69391b0..dfdc571be62 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -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") diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 7964f158ac5..222e60d9887 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -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"),