X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fscripts%2Ftest012-glue-populate;h=4ab21826d9f5cc6b0d80a65a8163137f1eeadf89;hb=58c0bf5ad12415ac4fde91d4ae39ac883eb28106;hp=f1c6c2fa14954851f9fe8374559299261afff2ec;hpb=82e6b94b7d128d8d7c028a106fe3403ac111eed3;p=openldap diff --git a/tests/scripts/test012-glue-populate b/tests/scripts/test012-glue-populate index f1c6c2fa14..4ab21826d9 100755 --- a/tests/scripts/test012-glue-populate +++ b/tests/scripts/test012-glue-populate @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2004 The OpenLDAP Foundation. +## Copyright 1998-2011 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -16,11 +16,6 @@ echo "running defines.sh" . $SRCDIR/scripts/defines.sh -if test $GLUE = glueno; then - echo "Backend glue overlay not available, test skipped" - exit 0 -fi - mkdir -p $TESTDIR $DBDIR1A $DBDIR1B $DBDIR1C echo "Starting slapd on TCP/IP port $PORT..." @@ -33,6 +28,8 @@ if test $WAIT != 0 ; then fi KILLPIDS="$PID" +sleep 1 + echo "Using ldapsearch to check that slapd is running..." for i in 0 1 2 3 4 5; do $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \ @@ -68,9 +65,9 @@ if test $RC != 0 ; then fi echo "Filtering ldapsearch results..." -. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT +$LDIFFILTER -s ldif=e < $SEARCHOUT > $SEARCHFLT echo "Filtering original ldif used to create database..." -. $LDIFFILTER < $LDIFGLUED > $LDIFFLT +$LDIFFILTER -s ldif=e < $LDIFGLUED > $LDIFFLT echo "Comparing filter output..." $CMP $SEARCHFLT $LDIFFLT > $CMPOUT @@ -80,4 +77,7 @@ if test $? != 0 ; then fi echo ">>>>> Test succeeded" + +test $KILLSERVERS != no && wait + exit 0