summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAaron Haslett <aaronhaslett@catalyst.net.nz>2018-09-21 17:55:42 +1200
committerGary Lockyer <gary@samba.org>2018-12-07 07:07:08 +0100
commitdcd68bce1826641d4d881ad5c94c251a6ab175f0 (patch)
tree93dd3ff4d71d641e5822f778f12004d871cc7a26 /source4
parent2f68c436cc857dd6c56ec75e03664388f5d1da2b (diff)
downloadsamba-dcd68bce1826641d4d881ad5c94c251a6ab175f0.tar.gz
ldb: complex expression testing
Tests that prepare complex ldap expressions and equivalent python expressions, then compare the results of the two. Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <noel.power@suse.com> Autobuild-User(master): Gary Lockyer <gary@samba.org> Autobuild-Date(master): Fri Dec 7 07:07:08 CET 2018 on sn-devel-144
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/selftest/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 575c14b8be2..c676b878b83 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -627,6 +627,12 @@ def planoldpythontestsuite(env, module, name=None, extra_path=[], environ={}, ex
args[args.index(subunitrun)] = subunitrun3
plantestsuite_loadlist(name + ".python3", env, args)
+# Run complex search expressions test once for each database backend.
+# Right now ad_dc has mdb and ad_dc_ntvfs has tdb
+mdb_testenv = "ad_dc"
+tdb_testenv = "ad_dc_ntvfs"
+for testenv in [mdb_testenv, tdb_testenv]:
+ planoldpythontestsuite(testenv, "samba.tests.complex_expressions", extra_args=['-U"$USERNAME%$PASSWORD"'], py3_compatible=True)
planoldpythontestsuite("ad_dc_ntvfs:local", "samba.tests.gensec", extra_args=['-U"$USERNAME%$PASSWORD"'], py3_compatible=True)
planoldpythontestsuite("none", "simple", extra_path=["%s/lib/tdb/python/tests" % srcdir()], name="tdb.python", py3_compatible=True)