summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-09-14 22:45:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:10 -0500
commit38b04883fe07fe92ef52aaff51eb7f1ea041008a (patch)
treebd92f4fdeed4e1a00e7491bb8de5479fc24f826a /source4/lib/ldb/tests
parent2b2e1337523aa45f2028c15d46471e59e898ee50 (diff)
downloadsamba-38b04883fe07fe92ef52aaff51eb7f1ea041008a.tar.gz
samba-38b04883fe07fe92ef52aaff51eb7f1ea041008a.tar.bz2
samba-38b04883fe07fe92ef52aaff51eb7f1ea041008a.zip
r10232: Some work on ldb_sqlite3.
It is still far from being usable in samba4 but I want to commit so that the work does not get lost by mistake. This is also a good way to get comments if somebody is interested. Sorry Derrell I ended up rewriting large parts of the code but I find this style much more readable. Thanks for the hard work done. Your work was a good reference for me. ah the current code also shows some good numbers sqlite3 generic test: uid search took 0.05 seconds real 0m12.492s user 0m0.492s sys 0m0.345s with tdb we still get better numbers: uid search took 0.46 seconds real 0m0.892s user 0m0.360s sys 0m0.468s but most of the time is spent in adding operations and I think there's still a lot of space for improvement. Simo. (This used to be commit ace9990060c10d0931f418934b2121aea9512ff7)
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-xsource4/lib/ldb/tests/test-sqlite3.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/source4/lib/ldb/tests/test-sqlite3.sh b/source4/lib/ldb/tests/test-sqlite3.sh
index 18e72024f3..a51ae637dc 100755
--- a/source4/lib/ldb/tests/test-sqlite3.sh
+++ b/source4/lib/ldb/tests/test-sqlite3.sh
@@ -1,10 +1,22 @@
#!/bin/sh
-LDB_URL="sqlite://test.ldb"
+LDB_URL="sqlite://sqltest.ldb"
export LDB_URL
+PATH=bin:$PATH
+export PATH
+
rm -f sqltest.ldb
+if [ -z "$LDBDIR" ]; then
+ LDBDIR="."
+ export LDBDIR
+fi
+
. $LDBDIR/tests/test-generic.sh
+#. $LDBDIR/tests/test-extended.sh
+
+#. $LDBDIR/tests/test-tdb-features.sh
+