From e0df7582b888559f2e0bc4b02d18901a462ea1b6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 22 Oct 2003 05:14:08 +0000 Subject: [PATCH] Rework test scripts to use single 'testrun' directory. Split glue test in two. Remove (slurpd) subtree replication test. Reorder syncrepl/proxy tests --- tests/Makefile.in | 2 +- tests/data/slapd-acl.conf | 6 +- tests/data/slapd-cache-master.conf | 6 +- tests/data/slapd-glue.conf | 10 +- tests/data/slapd-master.conf | 6 +- tests/data/slapd-proxycache.conf | 8 +- tests/data/slapd-pw.conf | 6 +- tests/data/slapd-ref-slave.conf | 8 +- tests/data/slapd-referrals.conf | 6 +- tests/data/slapd-repl-master.conf | 10 +- tests/data/slapd-repl-slave.conf | 8 +- tests/data/slapd-repl-submaster.conf | 40 -- tests/data/slapd-repl-subslave.conf | 33 -- tests/data/slapd-schema.conf | 9 +- tests/data/slapd-syncrepl-master.conf | 6 +- tests/data/slapd-syncrepl-slave-persist1.conf | 8 +- tests/data/slapd-syncrepl-slave-persist2.conf | 8 +- tests/data/slapd-syncrepl-slave-persist3.conf | 8 +- tests/data/slapd-syncrepl-slave-refresh1.conf | 8 +- tests/data/slapd-syncrepl-slave-refresh2.conf | 8 +- tests/data/slapd.conf | 35 +- tests/run.in | 46 +- tests/scripts/all | 7 +- tests/scripts/conf.sh | 2 - tests/scripts/defines.sh | 136 +++--- tests/scripts/subfilter.sh | 6 - tests/scripts/test000-rootdse | 15 +- tests/scripts/test001-slapadd | 13 +- tests/scripts/test002-populate | 19 +- tests/scripts/test003-search | 37 +- tests/scripts/test004-modify | 23 +- tests/scripts/test005-modrdn | 50 ++- tests/scripts/test006-acls | 35 +- tests/scripts/test007-replication | 72 ++- tests/scripts/test008-concurrency | 20 +- tests/scripts/test009-referral | 50 ++- tests/scripts/test010-passwd | 51 +-- tests/scripts/test011-glue-slapadd | 60 +++ tests/scripts/test011-subtree-repl | 266 ----------- tests/scripts/test012-glue | 120 ----- tests/scripts/test013-language | 33 +- tests/scripts/test014-whoami | 31 +- tests/scripts/test015-xsearch | 46 +- tests/scripts/test016-subref | 66 +-- tests/scripts/test017-syncreplication-refresh | 60 ++- tests/scripts/test018-syncreplication-persist | 59 ++- tests/scripts/test019-proxycaching | 231 ---------- .../scripts/test020-syncreplication-cascading | 415 ------------------ tests/scripts/test021-certificate | 41 +- tests/scripts/undiff.sh | 6 - 50 files changed, 618 insertions(+), 1637 deletions(-) delete mode 100644 tests/data/slapd-repl-submaster.conf delete mode 100644 tests/data/slapd-repl-subslave.conf delete mode 100755 tests/scripts/subfilter.sh create mode 100755 tests/scripts/test011-glue-slapadd delete mode 100755 tests/scripts/test011-subtree-repl delete mode 100755 tests/scripts/test012-glue delete mode 100755 tests/scripts/test019-proxycaching delete mode 100755 tests/scripts/test020-syncreplication-cascading delete mode 100755 tests/scripts/undiff.sh diff --git a/tests/Makefile.in b/tests/Makefile.in index be370a5540..3759f56e0e 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -40,7 +40,7 @@ ldbm-yes ldbm-mod: FORCE @$(RUN) -b ldbm all clean-local: FORCE - -$(RM) -r test-db* test-repl* *leak *gmon *core + -$(RM) -r testrun *leak *gmon *core veryclean-local: FORCE @-$(RM) data schema ucdata diff --git a/tests/data/slapd-acl.conf b/tests/data/slapd-acl.conf index 9c58c0cd27..2a59e3d3b1 100644 --- a/tests/data/slapd-acl.conf +++ b/tests/data/slapd-acl.conf @@ -8,8 +8,8 @@ include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args # global ACLs access to dn.base="" attr=objectClass by users read @@ -25,7 +25,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ #ldbm#cachesize 0 suffix "o=University of Michigan,c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq diff --git a/tests/data/slapd-cache-master.conf b/tests/data/slapd-cache-master.conf index c6721fcf42..b9054cdc95 100644 --- a/tests/data/slapd-cache-master.conf +++ b/tests/data/slapd-cache-master.conf @@ -8,8 +8,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -20,7 +20,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret index objectClass eq diff --git a/tests/data/slapd-glue.conf b/tests/data/slapd-glue.conf index e3979d0833..76822fbcaf 100644 --- a/tests/data/slapd-glue.conf +++ b/tests/data/slapd-glue.conf @@ -9,8 +9,8 @@ include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -22,7 +22,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "ou=Information Technology Division,ou=People,o=University of Michigan, c=US" subordinate -directory ./test-db/C_db1 +directory ./testrun/db.1.a rootdn "cn=Manager, o=University of Michigan, c=US" #ldbm#index objectclass eq #ldbm#index uid pres,eq,sub @@ -36,7 +36,7 @@ rootdn "cn=Manager, o=University of Michigan, c=US" database @BACKEND@ suffix "ou=Groups,o=University of Michigan, c=US" subordinate -directory ./test-db/C_db2 +directory ./testrun/db.1.b rootdn "cn=Manager, o=University of Michigan, c=US" #ldbm#index objectclass eq #ldbm#index uid pres,eq,sub @@ -49,7 +49,7 @@ rootdn "cn=Manager, o=University of Michigan, c=US" database @BACKEND@ suffix "o=University of Michigan, c=US" -directory ./test-db/C_db3 +directory ./testrun/db.1.c rootdn "cn=Manager, o=University of Michigan, c=US" rootpw secret #ldbm#index objectclass eq diff --git a/tests/data/slapd-master.conf b/tests/data/slapd-master.conf index f11a4013fe..ea719df1d2 100644 --- a/tests/data/slapd-master.conf +++ b/tests/data/slapd-master.conf @@ -8,8 +8,8 @@ include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -20,7 +20,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq diff --git a/tests/data/slapd-proxycache.conf b/tests/data/slapd-proxycache.conf index b0dd36b7de..da68738014 100644 --- a/tests/data/slapd-proxycache.conf +++ b/tests/data/slapd-proxycache.conf @@ -8,8 +8,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-cache/slapd.pid -argsfile ./test-cache/slapd.args +pidfile ./testrun/slapd.2.pid +argsfile ./testrun/slapd.2.args access to * by write @@ -21,7 +21,7 @@ database @BACKEND@ suffix "o=University of Michigan,c=US,cn=cache" cachesize 20 -directory ./test-cache +directory ./testrun/db.2.a index objectClass eq index cn,sn,uid,mail pres,eq,sub @@ -36,7 +36,7 @@ rewriteRule "(.*)o=University of Michigan,c=US,cn=cache" "%1o=University of Mich suffix "o=University of Michigan,c=US" -uri ldap://127.0.0.1:9009/o=University%20of%20Michigan,c=US +uri ldap://127.0.0.1:9011/o=University%20of%20Michigan,c=US cacheparams 10000 15000 2 @ENTRY_LIMIT@ @CACHETTL@ attrset 0 sn cn title uid diff --git a/tests/data/slapd-pw.conf b/tests/data/slapd-pw.conf index 2c6dd41666..bb0ae11f01 100644 --- a/tests/data/slapd-pw.conf +++ b/tests/data/slapd-pw.conf @@ -8,8 +8,8 @@ include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args # password-hash {md5} @@ -23,7 +23,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ #ldbm#cachesize 0 suffix "o=University of Michigan,c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret index objectClass eq diff --git a/tests/data/slapd-ref-slave.conf b/tests/data/slapd-ref-slave.conf index c4ae949fdd..9a9d9897f6 100644 --- a/tests/data/slapd-ref-slave.conf +++ b/tests/data/slapd-ref-slave.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/slapd.pid -argsfile ./test-repl/slapd.args +pidfile ./testrun/slapd.2.pid +argsfile ./testrun/slapd.2.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -19,12 +19,12 @@ modulepath ../servers/slapd/back-@BACKEND@/ # ldbm database definitions ####################################################################### -referral "ldap://localhost:9009/" +referral "ldap://localhost:9011/" database @BACKEND@ cachesize 0 suffix "o=University of Mich,c=US" -directory ./test-repl +directory ./testrun/db.2.a rootdn "cn=Manager,o=University of Mich,c=US" rootpw secret #ldbm#index objectClass eq diff --git a/tests/data/slapd-referrals.conf b/tests/data/slapd-referrals.conf index ed0fb9db32..a24079d6dc 100644 --- a/tests/data/slapd-referrals.conf +++ b/tests/data/slapd-referrals.conf @@ -8,8 +8,8 @@ include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.pid +argsfile ./testrun/slapd.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -20,7 +20,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq diff --git a/tests/data/slapd-repl-master.conf b/tests/data/slapd-repl-master.conf index f2afea37f1..590b354261 100644 --- a/tests/data/slapd-repl-master.conf +++ b/tests/data/slapd-repl-master.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -22,7 +22,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ #ldbm#cachesize 0 suffix "o=University of Michigan,c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq @@ -30,9 +30,9 @@ rootpw secret #bdb#index objectClass eq #bdb#index cn,sn,uid pres,eq,sub -replogfile ./test-db/slapd.replog +replogfile ./testrun/slapd.1.replog -replica host=localhost:9010 +replica host=localhost:9012 binddn="cn=Replica,o=University of Michigan,c=US" bindmethod=simple credentials=secret diff --git a/tests/data/slapd-repl-slave.conf b/tests/data/slapd-repl-slave.conf index 569faabb98..cdd78785a9 100644 --- a/tests/data/slapd-repl-slave.conf +++ b/tests/data/slapd-repl-slave.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/slapd.pid -argsfile ./test-repl/slapd.args +pidfile ./testrun/slapd.2.pid +argsfile ./testrun/slapd.2.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -22,11 +22,11 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ #ldbm#cachesize 0 suffix "o=University of Michigan,c=US" -directory ./test-repl +directory ./testrun/db.2.a rootdn "cn=Replica,o=University of Michigan,c=US" rootpw secret updatedn "cn=Replica,o=University of Michigan,c=US" -updateref "ldap://localhost:9009" +updateref "ldap://localhost:9010" #ldbm#index objectClass eq #ldbm#index cn,sn,uid pres,eq,sub #bdb#index objectClass eq diff --git a/tests/data/slapd-repl-submaster.conf b/tests/data/slapd-repl-submaster.conf deleted file mode 100644 index a2d44a5946..0000000000 --- a/tests/data/slapd-repl-submaster.conf +++ /dev/null @@ -1,40 +0,0 @@ -# $OpenLDAP$ -# -# master slapd config -- for testing of replication -# -ucdata-path ./ucdata -include ./schema/core.schema -include ./schema/cosine.schema -include ./schema/inetorgperson.schema -include ./schema/openldap.schema -include ./schema/nis.schema -# -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args - -modulepath ../servers/slapd/back-@BACKEND@/ -@MODULELOAD@ - -####################################################################### -# ldbm database definitions -####################################################################### - -database @BACKEND@ -#ldbm#cachesize 0 -suffix "o=University of Michigan,c=US" -directory ./test-db -rootdn "cn=Manager,o=University of Michigan,c=US" -rootpw secret -#ldbm#index objectClass eq -#ldbm#index cn,sn,uid pres,eq,sub -#bdb#index objectClass eq -#bdb#index cn,sn,uid pres,eq,sub - -replogfile ./test-db/slapd.replog - -replica host=localhost:9010 - suffix="ou=Groups,o=University of Michigan,c=US" - attr!=description - binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US" - bindmethod=simple - credentials=secret diff --git a/tests/data/slapd-repl-subslave.conf b/tests/data/slapd-repl-subslave.conf deleted file mode 100644 index b67ad30404..0000000000 --- a/tests/data/slapd-repl-subslave.conf +++ /dev/null @@ -1,33 +0,0 @@ -# $OpenLDAP$ -# -# slave slapd config -- for testing of replication -# -ucdata-path ./ucdata -include ./schema/core.schema -include ./schema/cosine.schema -include ./schema/inetorgperson.schema -include ./schema/openldap.schema -include ./schema/nis.schema -# -pidfile ./test-repl/slapd.pid -argsfile ./test-repl/slapd.args - -modulepath ../servers/slapd/back-@BACKEND@/ -@MODULELOAD@ - -####################################################################### -# ldbm database definitions -####################################################################### - -database @BACKEND@ -#ldbm#cachesize 0 -suffix "ou=Groups, o=University of Michigan, c=US" -directory ./test-repl -rootdn "cn=Replica,ou=Groups,o=University of Michigan,c=US" -rootpw secret -updatedn "cn=Replica,ou=Groups,o=University of Michigan,c=US" -updateref "ldap://localhost:9009" -#ldbm#index objectClass eq -#ldbm#index cn,sn,uid pres,eq,sub -#bdb#index objectClass eq -#bdb#index cn,sn,uid pres,eq,sub diff --git a/tests/data/slapd-schema.conf b/tests/data/slapd-schema.conf index e3d32010ae..37f79dba63 100644 --- a/tests/data/slapd-schema.conf +++ b/tests/data/slapd-schema.conf @@ -11,15 +11,14 @@ include ./schema/cosine.schema include ./schema/corba.schema include ./schema/java.schema include ./schema/inetorgperson.schema -#include ./schema/krb5-kdc.schema include ./schema/misc.schema include ./schema/nis.schema include ./schema/openldap.schema # include ./schema/collective.schema # -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args # rootdse ./testdata/rootdse.ldif @@ -33,13 +32,13 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=OpenLDAP Project,l=Internet" -directory ./test-db +directory ./testrun/db.1.a #ldbm#index objectClass eq #bdb#index objectClass eq #database @BACKEND@ #suffix "dc=example,dc=com" -#directory ./test-repl +#directory ./testrun/db.1.b #index objectClass eq #monitor#database monitor diff --git a/tests/data/slapd-syncrepl-master.conf b/tests/data/slapd-syncrepl-master.conf index e9e2b286fd..bb51cdd1dd 100644 --- a/tests/data/slapd-syncrepl-master.conf +++ b/tests/data/slapd-syncrepl-master.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -21,7 +21,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-db +directory ./testrun/db.1.a rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq diff --git a/tests/data/slapd-syncrepl-slave-persist1.conf b/tests/data/slapd-syncrepl-slave-persist1.conf index fb925e456c..31fc3660ba 100644 --- a/tests/data/slapd-syncrepl-slave-persist1.conf +++ b/tests/data/slapd-syncrepl-slave-persist1.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/p1/slapd.pid -argsfile ./test-repl/p1/slapd.args +pidfile ./testrun/slapd.4.pid +argsfile ./testrun/slapd.4.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -21,7 +21,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-repl/p1 +directory ./testrun/db.4.a rootdn "cn=Replica,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq @@ -31,7 +31,7 @@ rootpw secret # Don't change syncrepl spec yet syncrepl id=1 - provider=ldap://localhost:9009 + provider=ldap://localhost:9011 updatedn="cn=Replica,o=University of Michigan,c=US" binddn="cn=Manager,o=University of Michigan,c=US" bindmethod=simple diff --git a/tests/data/slapd-syncrepl-slave-persist2.conf b/tests/data/slapd-syncrepl-slave-persist2.conf index 3e36b665b5..6b3ab2376a 100644 --- a/tests/data/slapd-syncrepl-slave-persist2.conf +++ b/tests/data/slapd-syncrepl-slave-persist2.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/p2/slapd.pid -argsfile ./test-repl/p2/slapd.args +pidfile ./testrun/slapd.5.pid +argsfile ./testrun/slapd.5.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -21,7 +21,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-repl/p2 +directory ./testrun/db.5.a rootdn "cn=Replica,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq @@ -31,7 +31,7 @@ rootpw secret # Don't change syncrepl spec yet syncrepl id=1 - provider=ldap://localhost:9013 + provider=ldap://localhost:9014 updatedn="cn=Replica,o=University of Michigan,c=US" binddn="cn=Replica,o=University of Michigan,c=US" bindmethod=simple diff --git a/tests/data/slapd-syncrepl-slave-persist3.conf b/tests/data/slapd-syncrepl-slave-persist3.conf index bb3d315b9b..a7901858c1 100644 --- a/tests/data/slapd-syncrepl-slave-persist3.conf +++ b/tests/data/slapd-syncrepl-slave-persist3.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/p3/slapd.pid -argsfile ./test-repl/p3/slapd.args +pidfile ./testrun/slapd.6.pid +argsfile ./testrun/slapd.6.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -21,7 +21,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-repl/p3 +directory ./testrun/db.6.a rootdn "cn=Replica,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq @@ -31,7 +31,7 @@ rootpw secret # Don't change syncrepl spec yet syncrepl id=1 - provider=ldap://localhost:9009 + provider=ldap://localhost:9011 updatedn="cn=Replica,o=University of Michigan,c=US" binddn="cn=Manager,o=University of Michigan,c=US" bindmethod=simple diff --git a/tests/data/slapd-syncrepl-slave-refresh1.conf b/tests/data/slapd-syncrepl-slave-refresh1.conf index 5245f1a800..1a0a60d0e4 100644 --- a/tests/data/slapd-syncrepl-slave-refresh1.conf +++ b/tests/data/slapd-syncrepl-slave-refresh1.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/r1/slapd.pid -argsfile ./test-repl/r1/slapd.args +pidfile ./testrun/slapd.2.pid +argsfile ./testrun/slapd.2.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -21,7 +21,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-repl/r1 +directory ./testrun/db.2.a rootdn "cn=Replica,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq @@ -31,7 +31,7 @@ rootpw secret # Don't change syncrepl spec yet syncrepl id=1 - provider=ldap://localhost:9009 + provider=ldap://localhost:9011 updatedn="cn=Replica,o=University of Michigan,c=US" binddn="cn=Manager,o=University of Michigan,c=US" bindmethod=simple diff --git a/tests/data/slapd-syncrepl-slave-refresh2.conf b/tests/data/slapd-syncrepl-slave-refresh2.conf index 5499fcd466..c68c91fa6b 100644 --- a/tests/data/slapd-syncrepl-slave-refresh2.conf +++ b/tests/data/slapd-syncrepl-slave-refresh2.conf @@ -9,8 +9,8 @@ include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema # -pidfile ./test-repl/r2/slapd.pid -argsfile ./test-repl/r2/slapd.args +pidfile ./testrun/slapd.3.pid +argsfile ./testrun/slapd.3.args modulepath ../servers/slapd/back-@BACKEND@/ @MODULELOAD@ @@ -21,7 +21,7 @@ modulepath ../servers/slapd/back-@BACKEND@/ database @BACKEND@ suffix "o=University of Michigan,c=US" -directory ./test-repl/r2 +directory ./testrun/db.3.a rootdn "cn=Replica,o=University of Michigan,c=US" rootpw secret #ldbm#index objectClass eq @@ -31,7 +31,7 @@ rootpw secret # Don't change syncrepl spec yet syncrepl id=1 - provider=ldap://localhost:9011 + provider=ldap://localhost:9012 updatedn="cn=Replica,o=University of Michigan,c=US" binddn="cn=Replica,o=University of Michigan,c=US" bindmethod=simple diff --git a/tests/data/slapd.conf b/tests/data/slapd.conf index 5942610de9..89dd82361e 100644 --- a/tests/data/slapd.conf +++ b/tests/data/slapd.conf @@ -1,7 +1,5 @@ -# $OpenLDAP$ # -# stand-alone slapd config -- for testing -# with indexing +# master slapd config -- for proxy cache testing # ucdata-path ./ucdata include ./schema/core.schema @@ -9,27 +7,22 @@ include ./schema/cosine.schema include ./schema/inetorgperson.schema include ./schema/openldap.schema include ./schema/nis.schema -pidfile ./test-db/slapd.pid -argsfile ./test-db/slapd.args +# +pidfile ./testrun/slapd.1.pid +argsfile ./testrun/slapd.1.args + +modulepath ../servers/slapd/back-bdb/ -modulepath ../servers/slapd/back-@BACKEND@/ -@MODULELOAD@ ####################################################################### -# ldbm database definitions +# database definitions ####################################################################### -database @BACKEND@ -suffix "o=University of Michigan, c=US" -directory ./test-db -rootdn "cn=Manager, o=University of Michigan, c=US" +database bdb +suffix "o=University of Michigan,c=US" +directory ./testrun/db.1.a +rootdn "cn=Manager,o=University of Michigan,c=US" rootpw secret -#ldbm#index objectclass eq -#ldbm#index uid pres,eq,sub -#ldbm#index name pres,eq,sub,subany -#ldbm#dbnosync -#ldbm#dbnolocking -#bdb#index objectclass eq -#bdb#index uid pres,eq,sub -#bdb#index name pres,eq,sub,subany -#bdb#lockdetect default 5 +index objectClass eq +index cn,sn,uid pres,eq,sub + diff --git a/tests/run.in b/tests/run.in index 9e5f1d5cd9..8e66fc4585 100644 --- a/tests/run.in +++ b/tests/run.in @@ -1,6 +1,6 @@ #!/bin/sh -USAGE="$0 [-b ]