From eaf860ad40817da0ad492d57830c2975f95f09a9 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 30 May 2005 14:02:16 +0000 Subject: [PATCH] allow to test other backend types --- tests/data/slapd-meta2.conf | 3 ++- tests/data/slapd-ref-slave.conf | 4 +++- tests/data/slapd.conf | 6 ++++-- tests/run.in | 3 +++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/data/slapd-meta2.conf b/tests/data/slapd-meta2.conf index bebcea2f11..dc65690a0c 100644 --- a/tests/data/slapd-meta2.conf +++ b/tests/data/slapd-meta2.conf @@ -44,6 +44,7 @@ suffix "ou=Meta,dc=example,dc=com" directory ./testrun/db.2.a rootdn "cn=Manager,ou=Meta,dc=example,dc=com" rootpw secret -index objectClass eq +#bdb#index objectClass eq +#ldbm#index objectClass eq #monitor#database monitor diff --git a/tests/data/slapd-ref-slave.conf b/tests/data/slapd-ref-slave.conf index 131d2cadb7..c36847bf48 100644 --- a/tests/data/slapd-ref-slave.conf +++ b/tests/data/slapd-ref-slave.conf @@ -35,7 +35,9 @@ argsfile ./testrun/slapd.2.args referral "@URI1@" database @BACKEND@ -cachesize 0 +#bdb#cachesize 0 +#hdb#cachesize 0 +#ldbm#cachesize 0 suffix "o=University of Mich,c=US" directory ./testrun/db.2.a rootdn "cn=Manager,o=University of Mich,c=US" diff --git a/tests/data/slapd.conf b/tests/data/slapd.conf index 45283e55e2..2d3be6b33f 100644 --- a/tests/data/slapd.conf +++ b/tests/data/slapd.conf @@ -38,7 +38,9 @@ suffix "dc=example,dc=com" directory ./testrun/db.1.a rootdn "cn=Manager,dc=example,dc=com" rootpw secret -index objectClass eq -index cn,sn,uid pres,eq,sub +#bdb#index objectClass eq +#bdb#index cn,sn,uid pres,eq,sub +#ldbm#index objectClass eq +#ldbm#index cn,sn,uid pres,eq,sub #monitor#database monitor diff --git a/tests/run.in b/tests/run.in index 0754ba59d7..57adb1c587 100644 --- a/tests/run.in +++ b/tests/run.in @@ -113,6 +113,9 @@ while test $# -gt 0 ; do done BACKENDTYPE=`eval 'echo $AC_'$BACKEND` +if test "x$BACKENDTYPE" = "x" ; then + BACKENDTYPE="unknown" +fi export BACKEND BACKENDTYPE WAIT KILLSERVERS PRESERVE USERDATA if test $# = 0 ; then -- 2.39.5