3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2006 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
16 SHTOOL="$SRCDIR/../build/shtool"
17 TB=`$SHTOOL echo -e "%B"`
18 TN=`$SHTOOL echo -e "%b"`
21 echo "#######################################################################"
23 echo "### SQL tests ###"
25 echo "#######################################################################"
27 echo "### SQL tests require the sql backend, a properly configured"
28 echo "### ODBC and a database populated with data from the applicable"
29 echo "### servers/slapd/back-sql/rdbms_depend/* files."
31 echo "### Set SLAPD_USE_SQL to the desired RDBMS to enable this test;"
33 echo "### Currently supported RDBMSes are:"
34 echo "### ibmdb2, mysql, pgsql"
36 echo "### Set SLAPD_USE_SQLWRITE=yes to enable the write tests"
38 echo "### See servers/slapd/back-sql/rdbms_depend/README for more "
39 echo "### details on how to set up the RDBMS and the ODBC"
42 echo ">>>>> Executing all LDAP tests for $BACKEND"
44 for CMD in $SRCDIR/scripts/sql-test*; do
45 # remove cruft from prior test
46 if test $PRESERVE = yes ; then
47 /bin/rm -rf testrun/db.*
52 echo ">>>>> Starting ${TB}`basename $CMD`${TN} ..."
55 if test $RC -eq 0 ; then
56 echo ">>>>> $CMD completed ${TB}OK${TN}."
58 echo ">>>>> $CMD ${TB}failed${TN} (exit $RC)"
62 echo ">>>>> waiting $SLEEPTIME seconds for things to exit"