summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/test-tdb.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-14 04:43:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:00 -0500
commit2ad8e1443de55a005cb9249ba317ab8541ec7c90 (patch)
treef770faf7ff80afa3fde12694b62a9a59eee9317c /source4/lib/ldb/tests/test-tdb.sh
parent57b8c5cd227d33b2eec34ed503b0b14c04344a87 (diff)
downloadsamba-2ad8e1443de55a005cb9249ba317ab8541ec7c90.tar.gz
samba-2ad8e1443de55a005cb9249ba317ab8541ec7c90.tar.bz2
samba-2ad8e1443de55a005cb9249ba317ab8541ec7c90.zip
r19273: - fixed error handling with the ldap backend
- propogate errors to the ldbadd command line tool - use the rdn_name module when testing the tdb backend to allow the same test code to correctly test the ldap and non-ldap backends (This used to be commit dd82c474a123d90329bda653a4cb73c93e087b15)
Diffstat (limited to 'source4/lib/ldb/tests/test-tdb.sh')
-rwxr-xr-xsource4/lib/ldb/tests/test-tdb.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/test-tdb.sh b/source4/lib/ldb/tests/test-tdb.sh
index e1052d1651..7c4f5205b4 100755
--- a/source4/lib/ldb/tests/test-tdb.sh
+++ b/source4/lib/ldb/tests/test-tdb.sh
@@ -17,6 +17,13 @@ if [ -z "$LDBDIR" ]; then
export LDBDIR
fi
+cat <<EOF | $VALGRIND ldbadd || exit 1
+dn: @MODULES
+@LIST: rdn_name
+EOF
+
+$VALGRIND ldbadd $LDBDIR/tests/init.ldif || exit 1
+
. $LDBDIR/tests/test-generic.sh
. $LDBDIR/tests/test-extended.sh