3 PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
5 SCHEMA_NEEDED="core nis cosine inetorgperson openldap"
7 # setup needed schema files
8 for f in $SCHEMA_NEEDED; do
9 if [ ! -r tests/schema/$f.schema ]; then
11 if [ -r /etc/ldap/schema/$f.schema ]; then
12 ln -s /etc/ldap/schema/$f.schema tests/schema/$f.schema
15 if [ -r /etc/openldap/schema/$f.schema ]; then
16 ln -s /etc/openldap/schema/$f.schema tests/schema/$f.schema
20 echo "SKIPPING TESTS: you need the following OpenLDAP schema files"
21 for f in $SCHEMA_NEEDED; do
28 if [ -z "$LDBDIR" ]; then
29 LDBDIR=`dirname $0`/..
33 LDB_URL=`$LDBDIR/tests/ldapi_url.sh`
42 if $LDBDIR/tests/init_slapd.sh &&
43 $LDBDIR/tests/start_slapd.sh &&
44 $LDBDIR/tests/test-generic.sh; then
45 echo "ldap tests passed";
48 echo "ldap tests failed";
52 #$LDBDIR/tests/kill_slapd.sh