3
LDB_URL="tdb://schema.ldb"
8
echo "LDB_URL: $LDB_URL"
11
$VALGRIND bin/ldbadd $LDBDIR/tests/schema-tests/schema.ldif || exit 1
13
echo "Adding few test elements (no failure expected here)"
14
$VALGRIND bin/ldbadd $LDBDIR/tests/schema-tests/schema-add-test.ldif || exit 1
16
echo "Modifying elements (2 failures expected here)"
18
$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-1.ldif || exit 1
19
$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-2.ldif || exit 1
20
$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-3.ldif || exit 1
21
$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-4.ldif
22
if [ "$?" == "0" ]; then
26
$VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-5.ldif
27
if [ "$?" == "0" ]; then
32
echo "Showing modified record"
33
$VALGRIND bin/ldbsearch '(cn=Test)' || exit 1