From bed487f6a3ad93f27d8dcb31cbad6b57f5032034 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 30 Jun 2005 03:32:43 +0000 Subject: r8009: expanded the ldb test suite. It worried me that some changes I have pending, which I know break lots of features, still passed our test suite! Now they don't. (This used to be commit 5801167c8dfc8a61bfeac396bca8ffd3d5270296) --- source4/lib/ldb/tests/test-tdb-features.sh | 78 ++++++++++++++++++++++++++++++ source4/lib/ldb/tests/test-tdb.sh | 4 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 source4/lib/ldb/tests/test-tdb-features.sh (limited to 'source4/lib') diff --git a/source4/lib/ldb/tests/test-tdb-features.sh b/source4/lib/ldb/tests/test-tdb-features.sh new file mode 100644 index 0000000000..7ed55430f7 --- /dev/null +++ b/source4/lib/ldb/tests/test-tdb-features.sh @@ -0,0 +1,78 @@ +#!/bin/sh + +echo "Running tdb feature tests" + +rm -f $LDB_URL + +checkcount() { + count=$1 + expression="$2" + n=`bin/ldbsearch "$expression" | grep ^dn | wc -l` + if [ $n != $count ]; then + echo "Got $n but expected $count for $expression" + bin/ldbsearch "$expression" + exit 1 + fi + echo "OK: $count $expression" +} + +echo "Testing case sensitve search" +cat <