diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-08-22 10:00:25 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-08-22 10:00:31 +1000 |
commit | 28f84aa55ae830c31430ed2b67b0ea7ba8bbe8de (patch) | |
tree | 6cabfedae78738744e1f9d9ec460fb0900a4d4d0 /source4/selftest | |
parent | 399eae13a1675e3af58dc07ca719c1ab3d41fd06 (diff) | |
download | samba-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')
-rwxr-xr-x | source4/selftest/tests.py | 11 |
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: |