summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_functions.sh
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-09-04 00:32:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:04 -0500
commit36ca11b00a1432654819d9fca75be56ab827e3ca (patch)
treeb14fcd19eadbab2357e326e9e9a4d74dc141f4a3 /source4/script/tests/test_functions.sh
parent173d17ab2fdac0491941fc77e731c9617315b0be (diff)
downloadsamba-36ca11b00a1432654819d9fca75be56ab827e3ca.tar.gz
samba-36ca11b00a1432654819d9fca75be56ab827e3ca.tar.bz2
samba-36ca11b00a1432654819d9fca75be56ab827e3ca.zip
r18023: Add support infrusructure for testing against an OpenLDAP server.
This will give a bit more noise on platforms without OpenLDAP (when we run the slaptest check), but it shouldn't be too bad. We don't start the LDAP server or re-provision unless LDAP_TEST is set. Andrew Bartlett (This used to be commit 999d989131f41d0218ec05595c9761aff5bbf5fa)
Diffstat (limited to 'source4/script/tests/test_functions.sh')
-rwxr-xr-xsource4/script/tests/test_functions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/script/tests/test_functions.sh b/source4/script/tests/test_functions.sh
index f92f4c6632..9efe204a35 100755
--- a/source4/script/tests/test_functions.sh
+++ b/source4/script/tests/test_functions.sh
@@ -65,6 +65,16 @@ smbd_have_test_log() {
return 1;
}
+slapd_start() {
+ OLDPATH=$PATH
+ PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
+ export PATH
+ slapd -f $SLAPD_CONF -h $LDAPI_ESCAPE
+ PATH=$OLDPATH
+ export PATH
+ return 0;
+}
+
testit() {
if [ -z "$PREFIX" ]; then
PREFIX=test_prefix