mirror of
https://github.com/samba-team/samba.git
synced 2025-06-24 15:17:06 +03:00
add the new test-schema test (This used to be commit 42a20f6fa4073fc5ea1ca6254137a4ef53caee01)
21 lines
463 B
Bash
Executable File
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
|
|
|