]> git.sur5r.net Git - openldap/commitdiff
added back-sql test under conditions; needs a README...
authorPierangelo Masarati <ando@openldap.org>
Fri, 20 Aug 2004 12:44:32 +0000 (12:44 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 20 Aug 2004 12:44:32 +0000 (12:44 +0000)
tests/data/slapd-sql.conf
tests/data/sqlmaster.out [new file with mode: 0644]
tests/data/sqlmods.out [new file with mode: 0644]
tests/run.in
tests/scripts/conf.sh
tests/scripts/defines.sh

index 997672f10d82b428e94c4f5a877b09106249841f..2471f5275f5b0374aa9c9fb341f1cd8ad65d346f 100644 (file)
@@ -22,8 +22,6 @@ include ./schema/nis.schema
 pidfile     ./testrun/slapd.1.pid
 argsfile    ./testrun/slapd.1.args
 
-#mod#modulepath        ../servers/slapd/back-@BACKEND@/
-#mod#moduleload        back_@BACKEND@.la
 #sqlmod#modulepath ../servers/slapd/back-sql/
 #sqlmod#moduleload back_sql.la
 #monitormod#modulepath ../servers/slapd/back-monitor/
diff --git a/tests/data/sqlmaster.out b/tests/data/sqlmaster.out
new file mode 100644 (file)
index 0000000..637fac5
--- /dev/null
@@ -0,0 +1,35 @@
+# refldap://localhost/o=example,c=ru??sub
+
+dn: cn=Torvlobnor Puzdoy,o=Example,c=RU
+objectClass: inetOrgPerson
+cn: Torvlobnor Puzdoy
+telephoneNumber: 545-4563
+sn: Torvlobnor Puzdoy
+documentIdentifier: documentTitle=book1,o=Example,c=RU
+
+dn: cn=Mitya Kovalev,o=Example,c=RU
+objectClass: inetOrgPerson
+cn: Mitya Kovalev
+telephoneNumber: 332-2334
+telephoneNumber: 222-3234
+sn: Mitya Kovalev
+documentIdentifier: documentTitle=book1,o=Example,c=RU
+documentIdentifier: documentTitle=book2,o=Example,c=RU
+
+dn: documentTitle=book2,o=Example,c=RU
+objectClass: document
+description: abstract2
+documentTitle: book2
+documentAuthor: cn=Mitya Kovalev,o=Example,c=RU
+
+dn: documentTitle=book1,o=Example,c=RU
+objectClass: document
+description: abstract1
+documentTitle: book1
+documentAuthor: cn=Mitya Kovalev,o=Example,c=RU
+documentAuthor: cn=Torvlobnor Puzdoy,o=Example,c=RU
+
+dn: o=Example,c=RU
+objectClass: organization
+o: Example
+
diff --git a/tests/data/sqlmods.out b/tests/data/sqlmods.out
new file mode 100644 (file)
index 0000000..637fac5
--- /dev/null
@@ -0,0 +1,35 @@
+# refldap://localhost/o=example,c=ru??sub
+
+dn: cn=Torvlobnor Puzdoy,o=Example,c=RU
+objectClass: inetOrgPerson
+cn: Torvlobnor Puzdoy
+telephoneNumber: 545-4563
+sn: Torvlobnor Puzdoy
+documentIdentifier: documentTitle=book1,o=Example,c=RU
+
+dn: cn=Mitya Kovalev,o=Example,c=RU
+objectClass: inetOrgPerson
+cn: Mitya Kovalev
+telephoneNumber: 332-2334
+telephoneNumber: 222-3234
+sn: Mitya Kovalev
+documentIdentifier: documentTitle=book1,o=Example,c=RU
+documentIdentifier: documentTitle=book2,o=Example,c=RU
+
+dn: documentTitle=book2,o=Example,c=RU
+objectClass: document
+description: abstract2
+documentTitle: book2
+documentAuthor: cn=Mitya Kovalev,o=Example,c=RU
+
+dn: documentTitle=book1,o=Example,c=RU
+objectClass: document
+description: abstract1
+documentTitle: book1
+documentAuthor: cn=Mitya Kovalev,o=Example,c=RU
+documentAuthor: cn=Torvlobnor Puzdoy,o=Example,c=RU
+
+dn: o=Example,c=RU
+objectClass: organization
+o: Example
+
index 1026c0b7fff5311f7561d32e3e4d864c1183f613..5d00a0261e1f9779c4d802de8d37cdeff7d0b739 100644 (file)
@@ -22,22 +22,29 @@ LN_S="@LN_S@"
 
 export SRCDIR TOPSRCDIR LN_S
 
+# backends
 AC_bdb=@BUILD_BDB@
 AC_hdb=@BUILD_HDB@
-AC_ldbm=@BUILD_LDBM@
 AC_ldap=ldap@BUILD_LDAP@
+AC_ldbm=@BUILD_LDBM@
+AC_monitor=@BUILD_MONITOR@
 AC_relay=relay@BUILD_RELAY@
+AC_sql=sql@BUILD_SQL@
+
+# overlays
 AC_pcache=pcache@BUILD_PROXYCACHE@
 AC_ppolicy=ppolicy@BUILD_PPOLICY@
 AC_refint=refint@BUILD_REFINT@
 AC_unique=unique@BUILD_UNIQUE@
 AC_rwm=rwm@BUILD_RWM@
-AC_MONITOR=@BUILD_MONITOR@
+
+# misc
 AC_WITH_SASL=@WITH_SASL@
 AC_WITH_TLS=@WITH_TLS@
 
-export AC_MONITOR AC_WITH_SASL AC_WITH_TLS AC_ldap AC_relay
+export AC_bdb AC_hdb AC_ldap AC_ldbm AC_monitor AC_relay AC_sql 
 export AC_pcache AC_ppolicy AC_refint AC_unique AC_rwm
+export AC_WITH_SASL AC_WITH_TLS
 
 if test ! -x ../servers/slapd/slapd ; then
        echo "Could not locate slapd(8)"
index 9d7609d632ebd60166a3f2dcf2fa4bd2dca2979d..e0b7937013d2381ae3989263101fe5940016ccee 100755 (executable)
@@ -37,6 +37,8 @@ sed -e "s/@BACKEND@/${BACKEND}/"                      \
        -e "s/^#${BACKENDTYPE}#//"                      \
        -e "s/^#${AC_ldap}#//"                          \
        -e "s/^#${AC_relay}#//"                         \
+       -e "s/^#${AC_sql}#//"                           \
+               -e "s/^#${RDBMS}#//"                    \
        -e "s/^#${AC_pcache}#//"                        \
        -e "s/^#${AC_ppolicy}#//"                       \
        -e "s/^#${AC_refint}#//"                        \
index a1b359defbb19d0f602af445a46e3c0a6dcd5861..5961db56c37cce44863a6088f11d95861ce26345 100755 (executable)
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
-MONITORDB=${AC_MONITOR-no}
+MONITORDB=${AC_monitor-no}
 BACKLDAP=${AC_ldap-ldapno}
 BACKRELAY=${AC_relay-relayno}
+BACKSQL=${AC_sql-sqlno}
+RDBMS=${SLAPD_USE_SQL-rdbmsno}
 PROXYCACHE=${AC_pcache-pcacheno}
 PPOLICY=${AC_ppolicy-ppolicyno}
 REFINT=${AC_refint-refintno}
@@ -70,6 +72,7 @@ LDAPGLUECONF1=$DATADIR/slapd-ldapglue.conf
 LDAPGLUECONF2=$DATADIR/slapd-ldapgluepeople.conf
 LDAPGLUECONF3=$DATADIR/slapd-ldapgluegroups.conf
 RWMCONF=$DATADIR/slapd-relay.conf
+SQLCONF=$DATADIR/slapd-sql.conf
 
 CONF1=$TESTDIR/slapd.1.conf
 CONF2=$TESTDIR/slapd.2.conf
@@ -218,6 +221,8 @@ IDASSERTOUT=$DATADIR/idassert.out
 LDAPGLUEOUT=$DATADIR/ldapglue.out
 LDAPGLUEANONYMOUSOUT=$DATADIR/ldapglueanonymous.out
 RELAYOUT=$DATADIR/relay.out
+SQLMASTER=$DATADIR/sqlmaster.out
+SQLMODS=$DATADIR/sqlmods.out
 
 # Just in case we linked the binaries dynamically
 LD_LIBRARY_PATH=`pwd`/../libraries:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH