smbd: Remove "st" from struct open_symlink_err
[Samba.git] / lib / ldb / tests / test-tdb.sh
blob0b5414df5549827b552b0029621e41adb24426bf
1 #!/bin/sh
3 BINDIR=$1
5 if [ -n "$TEST_DATA_PREFIX" ]; then
6 LDB_URL="$TEST_DATA_PREFIX/tdbtest.ldb"
7 PYDESTDIR="$TEST_DATA_PREFIX"
8 else
9 LDB_URL="tdbtest.ldb"
11 export LDB_URL
13 PATH=$BINDIR:$PATH
14 export PATH
16 if [ -z "$LDBDIR" ]; then
17 LDBDIR=$(dirname $0)/..
18 export LDBDIR
21 cd $LDBDIR
23 rm -f $LDB_URL*
25 cat <<EOF | $VALGRIND ldbadd || exit 1
26 dn: @MODULES
27 @LIST: rdn_name
28 EOF
30 $VALGRIND ldbadd $LDBDIR/tests/init.ldif || exit 1
32 . $LDBDIR/tests/test-generic.sh
34 . $LDBDIR/tests/test-extended.sh
36 . $LDBDIR/tests/test-tdb-features.sh
38 . $LDBDIR/tests/test-controls.sh