3 USAGE="$0 [-b <backend>] <script>"
7 TOPSRCDIR="@top_srcdir@"
10 export SRCDIR TOPSRCDIR LN_S
15 AC_MONITOR=@BUILD_MONITOR@
16 AC_CACHE=@BUILD_CACHE@
17 AC_WITH_TLS=@WITH_TLS@
19 export AC_MONITOR AC_CACHE AC_WITH_TLS
21 if test ! -x ../servers/slapd/slapd ; then
22 echo "Could not locate slapd(8)"
26 if test $AC_BDB = yes ; then
28 elif test $AC_LDBM = yes ; then
30 elif test $AC_HDB = yes ; then
33 echo "Not configured with a suitable database backend"
40 while test $# -gt 0 ; do
72 SCRIPT="${SRCDIR}/scripts/$1"
75 if test ! -x "${SCRIPT}" ; then
76 echo "run: ${SCRIPT} not found (or not executable)"
80 if test ! -e testdata/test.ldif ; then
81 ${LN_S} ${SRCDIR}/data testdata
83 if test ! -e schema/core.schema ; then
84 ${LN_S} ${TOPSRCDIR}/servers/slapd/schema schema
86 if test ! -e ucdata/UnicodeData.txt ; then
87 ${LN_S} ${TOPSRCDIR}/libraries/liblunicode ucdata
90 echo "Cleaning up directories leftover from previous run."
91 /bin/rm -rf test-db test-repl test-db2 test-repl2 test-db3 test-repl3
93 # disable LDAP initialization
94 LDAPNOINIT=true; export LDAPNOINIT
96 echo "Running ${SCRIPT}..."
100 if test $CLEAN = yes ; then
101 echo "Cleaning up directories leftover from this run."
102 /bin/rm -rf test-db test-repl test-db2 test-repl2 test-db3 test-repl3
103 echo "Cleaning up symlinks."
104 /bin/rm -f testdata schema ucdata