r18866: Jeremy and Volker have given the go-ahead on the group mapping ldb
[Samba.git] / source3 / lib / ldb / tests / test-schema.sh
blob2f10fb45e2a735962c13a375acdfcc6c6c24c74f
1 #!/bin/sh
3 LDB_URL="tdb://schema.ldb"
4 export LDB_URL
6 rm -f schema.ldb
8 echo "LDB_URL: $LDB_URL"
10 echo "Adding schema"
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
23 echo "test failed!"
24 exit 1
26 $VALGRIND bin/ldbmodify $LDBDIR/tests/schema-tests/schema-mod-test-5.ldif
27 if [ "$?" == "0" ]; then
28 echo "test failed!"
29 exit 1
32 echo "Showing modified record"
33 $VALGRIND bin/ldbsearch '(cn=Test)' || exit 1