summaryrefslogtreecommitdiff
path: root/source4/selftest/tests.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-08-22 10:00:25 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-08-22 10:00:31 +1000
commit28f84aa55ae830c31430ed2b67b0ea7ba8bbe8de (patch)
tree6cabfedae78738744e1f9d9ec460fb0900a4d4d0 /source4/selftest/tests.py
parent399eae13a1675e3af58dc07ca719c1ab3d41fd06 (diff)
downloadsamba-28f84aa55ae830c31430ed2b67b0ea7ba8bbe8de.tar.gz
samba-28f84aa55ae830c31430ed2b67b0ea7ba8bbe8de.tar.bz2
samba-28f84aa55ae830c31430ed2b67b0ea7ba8bbe8de.zip
selftest: skip all plugin_s4_dc tests if we do not have LDAP libs
This is needed as otherwise make test fails on any system without OpenLDAP libs and headers, which causes our users concern. Andrew Bartlett
Diffstat (limited to 'source4/selftest/tests.py')
-rwxr-xr-xsource4/selftest/tests.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 2a7d3f097a..21e19554ba 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -134,11 +134,12 @@ for bindoptions in ["seal,padcheck"] + validate_list + ["bigendian"]:
#Plugin S4 DC tests (confirms named pipe auth forwarding). This can be expanded once kerberos is supported in the plugin DC
#
-for bindoptions in ["seal,padcheck"] + validate_list + ["bigendian"]:
- for t in ncacn_np_tests:
- env = "plugin_s4_dc"
- transport = "ncacn_np"
- plantestsuite_loadlist("samba4.%s with %s" % (t, bindoptions), env, [valgrindify(smb4torture), "$LISTOPT", "%s:$SERVER[%s]" % (transport, bindoptions), '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', '-k', 'no', t])
+if have_ads_support:
+ for bindoptions in ["seal,padcheck"] + validate_list + ["bigendian"]:
+ for t in ncacn_np_tests:
+ env = "plugin_s4_dc"
+ transport = "ncacn_np"
+ plantestsuite_loadlist("samba4.%s with %s" % (t, bindoptions), env, [valgrindify(smb4torture), "$LISTOPT", "%s:$SERVER[%s]" % (transport, bindoptions), '-U$USERNAME%$PASSWORD', '-W', '$DOMAIN', '-k', 'no', t])
for bindoptions in [""] + validate_list + ["bigendian"]:
for t in auto_rpc_tests: