1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r7338: let it be possible to run sqlite3 tests when it is compiled in

make it also so that we do not run test for modules we do not compile in
This commit is contained in:
Simo Sorce 2005-06-06 14:23:20 +00:00 committed by Gerald (Jerry) Carter
parent c635a623bc
commit c226c1c7a3
3 changed files with 26 additions and 3 deletions

View File

@ -119,15 +119,29 @@ test-tdb:
@echo "STARTING TDB BACKEND TEST" @echo "STARTING TDB BACKEND TEST"
tests/test-tdb.sh tests/test-tdb.sh
ifeq ($(WITH_LDAP),yes)
test-ldap: test-ldap:
@echo "STARTING LDAP BACKEND TEST" @echo "STARTING LDAP BACKEND TEST"
tests/test-ldap.sh 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: test-schema:
@echo "STARTING SCHEMA MODULE TEST" @echo "STARTING SCHEMA MODULE TEST"
tests/test-schema.sh tests/test-schema.sh
test: test-tdb test-ldap test-schema test: test-tdb test-ldap test-sqlite3 test-schema
install: all install: all
cp include/ldb.h $(includedir) cp include/ldb.h $(includedir)

View File

@ -0,0 +1,9 @@
#!/bin/sh
export LDB_URL="sqlite://sqltest.ldb"
rm -f sqltest.ldb
. tests/test-generic.sh

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/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 . tests/test-generic.sh