From: Kurt Zeilenga Date: Thu, 29 Sep 2005 23:31:32 +0000 (+0000) Subject: Sync with HEAD X-Git-Tag: OPENLDAP_REL_ENG_2_3_8~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e03f201c0d7bb240f1da87a5c95e63be9b3c73bc;p=openldap Sync with HEAD --- diff --git a/tests/run.in b/tests/run.in index 766fc1f561..949cae5382 100644 --- a/tests/run.in +++ b/tests/run.in @@ -55,25 +55,12 @@ export AC_pcache AC_ppolicy AC_refint AC_retcode AC_rwm AC_unique AC_syncprov export AC_translucent AC_WITH_SASL AC_WITH_TLS AC_WITH_MODULES_ENABLED AC_ACI_ENABLED export AC_valsort -# need defines.sh for the definitions of the directories -. $SRCDIR/scripts/defines.sh - if test ! -x ../servers/slapd/slapd ; then echo "Could not locate slapd(8)" exit 1 fi -if test $AC_bdb != no ; then - BACKEND=bdb -elif test $AC_ldbm != no ; then - BACKEND=ldbm -elif test $AC_hdb != no ; then - BACKEND=hdb -else - echo "Not configured with a suitable database backend" - exit 1 -fi - +BACKEND= CLEAN=no WAIT=0 KILLSERVERS=yes @@ -119,6 +106,18 @@ while test $# -gt 0 ; do esac done +if test -z "$BACKEND" ; then + for b in bdb ldbm hdb ; do + if eval "test \"\$AC_$b\" != no" ; then + BACKEND=$b + break + fi + done + if test -z "$BACKEND" ; then + echo "No suitable default database backend configured" >&2 + exit 1 + fi +fi BACKENDTYPE=`eval 'echo $AC_'$BACKEND` if test "x$BACKENDTYPE" = "x" ; then BACKENDTYPE="unknown" @@ -129,6 +128,9 @@ if test $# = 0 ; then echo "$USAGE"; exit 1 fi +# need defines.sh for the definitions of the directories +. $SRCDIR/scripts/defines.sh + SCRIPTDIR="${SRCDIR}/scripts" SCRIPTNAME="$1" shift diff --git a/tests/scripts/sql-test000-read b/tests/scripts/sql-test000-read index c7d14b5334..4bad573eb4 100755 --- a/tests/scripts/sql-test000-read +++ b/tests/scripts/sql-test000-read @@ -74,7 +74,7 @@ RC=$? if test $RC = 0 ; then echo "ldapwhoami should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing baseobject search..." @@ -427,7 +427,7 @@ case $RC in ;; *) echo "failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 ;; esac @@ -446,7 +446,7 @@ case $RC in ;; *) echo "failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 ;; esac @@ -484,7 +484,7 @@ case $RC in ;; *) echo "failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 ;; esac @@ -494,7 +494,7 @@ echo "Filtering original ldif..." . $LDIFFILTER < $SQLREAD > $LDIFFLT echo "Comparing filter output..." $CMP $SEARCHFLT $LDIFFLT > $CMPOUT - + if test $? != 0 ; then echo "comparison failed - SQL search didn't succeed" test $KILLSERVERS != no && kill -HUP $KILLPIDS diff --git a/tests/scripts/sql-test001-concurrency b/tests/scripts/sql-test001-concurrency index fe4da240a7..2bb0d73fc8 100755 --- a/tests/scripts/sql-test001-concurrency +++ b/tests/scripts/sql-test001-concurrency @@ -27,7 +27,7 @@ if test $RDBMS = "rdbmsno" ; then fi SQLDATADIR=$TESTDIR/sql-concurrency -mkdir -p $SQLDATADIR +mkdir -p $TESTDIR $SQLDATADIR echo "Starting slapd on TCP/IP port $PORT1..." . $CONFFILTER $BACKEND $MONITORDB < $SQLCONF > $CONF1 diff --git a/tests/scripts/sql-test900-write b/tests/scripts/sql-test900-write index dd0020eca8..dec22129f8 100755 --- a/tests/scripts/sql-test900-write +++ b/tests/scripts/sql-test900-write @@ -348,7 +348,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Modifying a referral (should fail)..." @@ -367,7 +367,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Renaming a referral (should fail)..." @@ -385,7 +385,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Deleting a referral (should fail)..." @@ -401,7 +401,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Adding a referral..." @@ -571,4 +571,3 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS echo ">>>>> Test succeeded" exit 0 - diff --git a/tests/scripts/sql-test901-syncrepl b/tests/scripts/sql-test901-syncrepl index 0ff9835e28..e569ef5a6d 100755 --- a/tests/scripts/sql-test901-syncrepl +++ b/tests/scripts/sql-test901-syncrepl @@ -419,7 +419,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Modifying a referral (should fail)..." @@ -438,7 +438,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Renaming a referral (should fail)..." @@ -456,7 +456,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Deleting a referral (should fail)..." @@ -472,7 +472,7 @@ EOMODS if test $RC = 0 ; then echo "ldapmodify should have failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Adding a referral..." @@ -690,4 +690,3 @@ test $KILLSERVERS != no && kill -HUP $KILLPIDS echo ">>>>> Test succeeded" exit 0 - diff --git a/tests/scripts/test007-replication b/tests/scripts/test007-replication index e8f77b2277..8146f8299e 100755 --- a/tests/scripts/test007-replication +++ b/tests/scripts/test007-replication @@ -17,7 +17,7 @@ echo "running defines.sh" . $SRCDIR/scripts/defines.sh if test ! -x $SLURPD ; then - echo ">>>>> $SLURPD is not executable or do not exist." + echo ">>>>> $SLURPD is not executable or does not exist." echo ">>>>> Test skipped." exit 0 fi diff --git a/tests/scripts/test009-referral b/tests/scripts/test009-referral index e9781843a0..8fcd5b2ec6 100755 --- a/tests/scripts/test009-referral +++ b/tests/scripts/test009-referral @@ -20,7 +20,7 @@ echo "running defines.sh" # Test default referral # -mkdir $TESTDIR $DBDIR1 $DBDIR2 +mkdir -p $TESTDIR $DBDIR1 $DBDIR2 echo "Running slapadd to build slapd database..." . $CONFFILTER $BACKEND $MONITORDB < $CONF > $CONF1 diff --git a/tests/scripts/test010-passwd b/tests/scripts/test010-passwd index 9abf3d93c2..f80e00cea0 100755 --- a/tests/scripts/test010-passwd +++ b/tests/scripts/test010-passwd @@ -69,7 +69,7 @@ RC=$? if test $RC = 0 ; then echo "ldappasswd unexpectantly passed ($RC)! old empty" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi $LDAPPASSWD -h $LOCALHOST -p $PORT1 \ -w secret -a oldsecret -s "" \ @@ -78,7 +78,7 @@ RC=$? if test $RC = 0 ; then echo "ldappasswd unexpectantly passed ($RC)! new empty" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi $LDAPPASSWD -h $LOCALHOST -p $PORT1 \ -w secret -a oldsecret -s newsecret \ @@ -87,7 +87,7 @@ RC=$? if test $RC = 0 ; then echo "ldappasswd unexpectantly passed ($RC)! wrong old" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Using ldappasswd (PASS 1) ..." diff --git a/tests/scripts/test016-subref b/tests/scripts/test016-subref index 4c39beb527..c8326b8c2f 100755 --- a/tests/scripts/test016-subref +++ b/tests/scripts/test016-subref @@ -18,7 +18,7 @@ RCODE=10 echo "running defines.sh" . $SRCDIR/scripts/defines.sh -mkdir $TESTDIR $DBDIR1 +mkdir -p $TESTDIR $DBDIR1 echo "Running slapadd to build slapd database..." . $CONFFILTER $BACKEND $MONITORDB < $RCONF > $CONF1 diff --git a/tests/scripts/test019-syncreplication-cascade b/tests/scripts/test019-syncreplication-cascade index 2aa89e47dc..3a599a7e1e 100755 --- a/tests/scripts/test019-syncreplication-cascade +++ b/tests/scripts/test019-syncreplication-cascade @@ -26,7 +26,7 @@ if test $SYNCPROV = syncprovno; then exit 0 fi -mkdir $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3 $DBDIR4 $DBDIR5 $DBDIR6 +mkdir -p $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3 $DBDIR4 $DBDIR5 $DBDIR6 # # Test replication: diff --git a/tests/scripts/test021-certificate b/tests/scripts/test021-certificate index 777f0d66d1..e9e5db579d 100755 --- a/tests/scripts/test021-certificate +++ b/tests/scripts/test021-certificate @@ -18,7 +18,7 @@ echo "running defines.sh" if test "$AC_WITH_TLS" != "yes" ; then echo "test disabled, requires --with-tls" - exit + exit 0 fi mkdir -p $TESTDIR $DBDIR1 diff --git a/tests/scripts/test022-ppolicy b/tests/scripts/test022-ppolicy index 04109034e3..2b3a6143ac 100755 --- a/tests/scripts/test022-ppolicy +++ b/tests/scripts/test022-ppolicy @@ -111,7 +111,7 @@ RC=$? if test $RC = 0 ; then echo "Password expiration failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi COUNT=`grep "grace logins" $SEARCHOUT | wc -l` @@ -206,7 +206,7 @@ RC=$? if test $RC = 0 ; then echo "ldapmodify failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing forced reset..." @@ -235,7 +235,7 @@ RC=$? if test $RC = 0 ; then echo "Forced reset failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi COUNT=`grep "Operations are restricted" $SEARCHOUT | wc -l` @@ -279,7 +279,7 @@ RC=$? if test $RC = 0 ; then echo "Safe modify test 1 failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi sleep 2 @@ -303,7 +303,7 @@ RC=$? if test $RC = 0 ; then echo "Length requirement test failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi COUNT=`grep "Password fails quality" $TESTOUT | wc -l` if test $COUNT != 1 ; then @@ -329,7 +329,7 @@ RC=$? if test $RC = 0 ; then echo "Hashed length requirement test failed ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi COUNT=`grep "Password fails quality" $TESTOUT | wc -l` if test $COUNT != 1 ; then diff --git a/tests/scripts/test025-limits b/tests/scripts/test025-limits index 93c0221f9e..78d92ea0c7 100755 --- a/tests/scripts/test025-limits +++ b/tests/scripts/test025-limits @@ -84,7 +84,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; *) @@ -107,7 +107,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; *) @@ -130,13 +130,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -174,13 +174,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -219,7 +219,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 3) @@ -248,7 +248,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -280,13 +280,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -322,13 +322,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -364,13 +364,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -396,13 +396,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -444,7 +444,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -479,7 +479,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 11) @@ -508,7 +508,7 @@ case $RC in echo "...error: did not expect ldapsearch success ($RC)!" fi test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 ;; 11) echo "...bumped into unchecked administrative limit" @@ -534,7 +534,7 @@ case $RC in echo "...error: did not expect ldapsearch success ($RC)!" fi test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 ;; 11) echo "...bumped into unchecked administrative limit" @@ -559,7 +559,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -591,7 +591,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -623,7 +623,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -655,7 +655,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -687,7 +687,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -718,7 +718,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -781,7 +781,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; *) @@ -804,13 +804,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into the requested size limit ($SIZELIMIT; got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -849,7 +849,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 3) @@ -878,7 +878,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -910,13 +910,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -950,13 +950,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -990,13 +990,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -1034,13 +1034,13 @@ case $RC in if test "$COUNT" -gt "$SIZELIMIT" ; then echo "...error: got $COUNT entries instead of the requested $SIZELIMIT" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "...didn't bump into either requested ($SIZELIMIT) or server-side size limit (got $COUNT entries)" else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -1082,7 +1082,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) @@ -1117,7 +1117,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; # 11) @@ -1144,7 +1144,7 @@ case $RC in echo "...error: did not expect ldapsearch success ($RC)!" fi test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 ;; 11) echo "...bumped into unchecked administrative limit" @@ -1173,7 +1173,7 @@ case $RC in else echo "...error: did not expect ldapsearch success ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi ;; 4) diff --git a/tests/scripts/test031-component-filter b/tests/scripts/test031-component-filter index f4e0a97f09..cda58d406a 100755 --- a/tests/scripts/test031-component-filter +++ b/tests/scripts/test031-component-filter @@ -20,8 +20,8 @@ echo "running defines.sh" ## Make sure that you turn on LDAP_COMP_MATCH in slapd source codes ## and --enable-modules is configured yes if test "$AC_WITH_MODULES_ENABLED" != "yes" ; then - echo "dynamic module disabled " - exit + echo "dynamic module disabled, test skipped" + exit 0 fi mkdir -p $TESTDIR $DBDIR1 @@ -38,7 +38,8 @@ if test $RC != 0 ; then echo "slapadd failed ($RC)!" echo "Be sure to have a certificate module in tests/data/comp_libs " echo "The module is in openldap/contrib/slapd-modules/comp_match" - exit + echo "Test skipped." + exit 0 fi echo "Running slapindex to index slapd database..." diff --git a/tests/scripts/test034-translucent b/tests/scripts/test034-translucent index f7af23ca3e..b42f104133 100755 --- a/tests/scripts/test034-translucent +++ b/tests/scripts/test034-translucent @@ -26,7 +26,7 @@ if test $TRANSLUCENT = translucentno ; then fi if test $BACKEND = ldbm ; then - echo "Translucent Proxy overlay not qualified for use with LDBM, skipping" + echo "Translucent Proxy overlay not qualified for use with LDBM, test skipped" exit 0 fi @@ -168,7 +168,7 @@ if test $RC != 50 ; then echo "ldapadd failed ($RC), expected INSUFFICIENT ACCESS!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing add: valid local record, no_glue..." @@ -181,7 +181,7 @@ if test $RC != 32 ; then echo "ldapadd failed ($RC), expected NO SUCH OBJECT!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing modrdn: valid local record, no_glue..." @@ -194,7 +194,7 @@ if test $RC != 32 ; then echo "ldapmodrdn failed ($RC), expected NO SUCH OBJECT!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Shutting down local slapd..." @@ -274,7 +274,7 @@ RC=$? if test $RC != 6 ; then echo "ldapcompare failed ($RC), expected TRUE!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing compare: valid remote..." @@ -286,7 +286,7 @@ RC=$? if test $RC != 6 ; then echo "ldapcompare failed ($RC), expected TRUE!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing compare: bogus local..." @@ -298,7 +298,7 @@ RC=$? if test $RC != 5 ; then echo "ldapcompare failed ($RC), expected FALSE!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing compare: bogus remote..." @@ -310,7 +310,7 @@ RC=$? if test $RC != 5 ; then echo "ldapcompare failed ($RC), expected FALSE!" test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing modify: nonexistent record..." @@ -329,7 +329,7 @@ if test $RC != 32 ; then echo "ldapmodify failed ($RC), expected NO SUCH OBJECT!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing modify: valid local record, nonexistent attribute..." @@ -428,7 +428,7 @@ if test $RC != 16 ; then echo "ldapmodify failed ($RC), expected NO SUCH ATTRIBUTE!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing delete: valid local record, nonexistent attribute..." @@ -459,7 +459,7 @@ if test $RC != 50 ; then echo "ldapmodrdn failed ($RC), expected INSUFFICIENT ACCESS!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing modrdn: valid local record..." @@ -489,7 +489,7 @@ if test $RC != 50 ; then echo "ldapadd failed ($RC), expected INSUFFICIENT ACCESS!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing delete: valid local record..." @@ -523,7 +523,7 @@ if test $RC != 32 ; then echo "ldapmodify failed ($RC), expected NO SUCH OBJECT!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing delete: nonexistent local record, nonexistent attribute..." @@ -568,7 +568,7 @@ if test $RC != 16 ; then echo "ldapmodify failed ($RC), expected NO SUCH ATTRIBUTE!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing modify: valid remote record, combination add-modify-delete..." @@ -667,7 +667,7 @@ if test $RC != 19 ; then echo "ldapmodify failed ($RC), expected CONSTRAINT VIOLATION!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing strict mode delete: nonexistent remote attribute..." @@ -685,7 +685,7 @@ if test $RC != 19 ; then echo "ldapmodify failed ($RC), expected CONSTRAINT VIOLATION!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi echo "Testing strict mode modify: combination add-modify-delete..." @@ -709,7 +709,7 @@ if test $RC != 19 ; then echo "ldapmodify failed ($RC), expected CONSTRAINT VIOLATION!" grep "$FAILURE" $TESTOUT test $KILLSERVERS != no && kill -HUP $KILLPIDS - exit $RC + exit 1 fi test $KILLSERVERS != no && kill -HUP $KILLPIDS diff --git a/tests/scripts/test036-meta-concurrency b/tests/scripts/test036-meta-concurrency index b802c1372b..c1d81cddfd 100755 --- a/tests/scripts/test036-meta-concurrency +++ b/tests/scripts/test036-meta-concurrency @@ -25,7 +25,7 @@ fi # to be removed some time... if test "x$TEST_META" = "xno" ; then - echo "### disabled by \"TEST_META=no\"; unset TEST_META to re-enable" + echo '### Test disabled by "TEST_META=no"; unset TEST_META to re-enable' echo "" exit 0 else @@ -214,4 +214,3 @@ fi echo ">>>>> Test succeeded" exit 0 - diff --git a/tests/scripts/test041-aci b/tests/scripts/test041-aci index a3482aa3b9..54bb1c0f7b 100755 --- a/tests/scripts/test041-aci +++ b/tests/scripts/test041-aci @@ -29,7 +29,7 @@ echo "running defines.sh" . $SRCDIR/scripts/defines.sh if test "$ACI" = "acino" ; then - echo "ACI not enabled; skipping..." + echo "ACI not enabled, test skipped" exit 0 fi