1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00
samba-mirror/source4/lib/ldb/tests/test-schema.sh
Simo Sorce 63f79d11b8 r4784: finally make schema module use a single ldb
add the new test-schema test
(This used to be commit 42a20f6fa4073fc5ea1ca6254137a4ef53caee01)
2007-10-10 13:08:54 -05:00

21 lines
463 B
Bash
Executable File

#!/bin/sh
export LDB_URL="tdb://schema.ldb"
rm -f schema.ldb
echo "LDB_URL: $LDB_URL"
echo "Adding schema"
$VALGRIND bin/ldbadd tests/schema.ldif || exit 1
echo "Adding few test elements (no failure expected here)"
$VALGRIND bin/ldbadd tests/schema-add-test.ldif || exit 1
echo "Modifying elements (2 failures expected here)"
$VALGRIND bin/ldbmodify tests/schema-mod-test.ldif
echo "Showing modified record"
$VALGRIND bin/ldbsearch '(cn=Test)' || exit 1