Always mkdir $TESTDIR when making subdirs, and always use mkdir -p anyway.
Add or modify "test skipped" messages.
'exit 0' instead of 'exit'.
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
. $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
# Test default referral
#
-mkdir $TESTDIR $DBDIR1 $DBDIR2
+mkdir -p $TESTDIR $DBDIR1 $DBDIR2
echo "Running slapadd to build slapd database..."
. $CONFFILTER $BACKEND $MONITORDB < $CONF > $CONF1
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
exit 0
fi
-mkdir $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3 $DBDIR4 $DBDIR5 $DBDIR6
+mkdir -p $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3 $DBDIR4 $DBDIR5 $DBDIR6
#
# Test replication:
if test "$AC_WITH_TLS" != "yes" ; then
echo "test disabled, requires --with-tls"
- exit
+ exit 0
fi
mkdir -p $TESTDIR $DBDIR1
## 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
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..."
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
# 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
echo ">>>>> Test succeeded"
exit 0
-
. $SRCDIR/scripts/defines.sh
if test "$ACI" = "acino" ; then
- echo "ACI not enabled; skipping..."
+ echo "ACI not enabled, test skipped"
exit 0
fi