summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/test-schema.sh
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-01-16 22:30:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:54 -0500
commit63f79d11b802bebe105eccd385fab452e4a68e39 (patch)
tree100d553a0f6117fe769745a8499b9fddab6b9379 /source4/lib/ldb/tests/test-schema.sh
parenta38df2d251cc0e5489b7ea56401f40910798edd5 (diff)
downloadsamba-63f79d11b802bebe105eccd385fab452e4a68e39.tar.gz
samba-63f79d11b802bebe105eccd385fab452e4a68e39.tar.bz2
samba-63f79d11b802bebe105eccd385fab452e4a68e39.zip
r4784: finally make schema module use a single ldb
add the new test-schema test (This used to be commit 42a20f6fa4073fc5ea1ca6254137a4ef53caee01)
Diffstat (limited to 'source4/lib/ldb/tests/test-schema.sh')
-rwxr-xr-xsource4/lib/ldb/tests/test-schema.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/test-schema.sh b/source4/lib/ldb/tests/test-schema.sh
new file mode 100755
index 0000000000..5423c7eff9
--- /dev/null
+++ b/source4/lib/ldb/tests/test-schema.sh
@@ -0,0 +1,20 @@
+#!/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
+