]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test007-replication
Update build environment to fix VPATH support.
[openldap] / tests / scripts / test007-replication
index 0be88238b455f2420d177a61e42c04759be8c23e..58bcfec0a179931ac40793b549ae5ff931dc5408 100755 (executable)
 # - retrieve database over ldap and compare against expected results
 #
 
-. scripts/defines.sh
+if [ $# -eq 0 ]; then
+       SRCDIR="."
+else
+       SRCDIR=$1; shift
+fi
+
+. $SRCDIR/scripts/defines.sh $SRCDIR
+
+if test ! -x $SLURPD ; then
+       echo ">>>>> $SLURPD is not executable or do not exist."
+       echo ">>>>> Test skipped."
+       exit 0
+fi
 
 echo "Cleaning up in $DBDIR..."
 rm -f $DBDIR/[!C]*