s4-upgradeprovision: Detect recent provision in a more reliable way
[Samba/gebeck_regimport.git] / lib / ldb / tests / test-tdb.sh
blob9da1e57060a8f8bfdbfd51a0b3fbb8997b66651c
1 #!/bin/sh
3 if [ -n "$TEST_DATA_PREFIX" ]; then
4 LDB_URL="$TEST_DATA_PREFIX/tdbtest.ldb"
5 else
6 LDB_URL="tdbtest.ldb"
7 fi
8 export LDB_URL
10 PATH=bin:$PATH
11 export PATH
13 rm -f $LDB_URL*
15 if [ -z "$LDBDIR" ]; then
16 LDBDIR=`dirname $0`/..
17 export LDBDIR
20 cat <<EOF | $VALGRIND ldbadd$EXEEXT || exit 1
21 dn: @MODULES
22 @LIST: rdn_name
23 EOF
25 $VALGRIND ldbadd$EXEEXT $LDBDIR/tests/init.ldif || exit 1
27 . $LDBDIR/tests/test-generic.sh
29 . $LDBDIR/tests/test-extended.sh
31 . $LDBDIR/tests/test-tdb-features.sh
33 . $LDBDIR/tests/test-controls.sh