summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/Makefile.in16
-rwxr-xr-xsource4/lib/ldb/tests/test-sqlite3.sh9
-rwxr-xr-xsource4/lib/ldb/tests/test-tdb.sh4
3 files changed, 26 insertions, 3 deletions
diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in
index ebeb9e1be0..648e3074c6 100644
--- a/source4/lib/ldb/Makefile.in
+++ b/source4/lib/ldb/Makefile.in
@@ -119,15 +119,29 @@ test-tdb:
@echo "STARTING TDB BACKEND TEST"
tests/test-tdb.sh
+ifeq ($(WITH_LDAP),yes)
test-ldap:
@echo "STARTING LDAP BACKEND TEST"
tests/test-ldap.sh
+else
+test-ldap:
+ @echo "SKIP LDAP TEST - NO LDAP SUPPORT"
+endif
+
+ifeq ($(WITH_SQLITE3),yes)
+test-sqlite3:
+ @echo "STARTING SQLITE3 BACKEND TEST"
+ tests/test-sqlite3.sh
+else
+test-sqlite3:
+ @echo "SKIP SQLITE3 TEST - NO SQLITE3 SUPPORT"
+endif
test-schema:
@echo "STARTING SCHEMA MODULE TEST"
tests/test-schema.sh
-test: test-tdb test-ldap test-schema
+test: test-tdb test-ldap test-sqlite3 test-schema
install: all
cp include/ldb.h $(includedir)
diff --git a/source4/lib/ldb/tests/test-sqlite3.sh b/source4/lib/ldb/tests/test-sqlite3.sh
new file mode 100755
index 0000000000..cf443bb8a1
--- /dev/null
+++ b/source4/lib/ldb/tests/test-sqlite3.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+
+export LDB_URL="sqlite://sqltest.ldb"
+
+rm -f sqltest.ldb
+
+. tests/test-generic.sh
+
diff --git a/source4/lib/ldb/tests/test-tdb.sh b/source4/lib/ldb/tests/test-tdb.sh
index 316828c31c..69b30a50b4 100755
--- a/source4/lib/ldb/tests/test-tdb.sh
+++ b/source4/lib/ldb/tests/test-tdb.sh
@@ -1,9 +1,9 @@
#!/bin/sh
-export LDB_URL="tdb://test.ldb"
+export LDB_URL="tdb://tdbtest.ldb"
-rm -f test.ldb
+rm -f tdbtest.ldb
. tests/test-generic.sh