Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > e31f1a9635a2fd0e62b2cbbbdc317f20 > files > 30

openldap-2.4.21-1mdv2009.0.src.rpm

--- openldap-2.4.12/tests/scripts/orig.test001-slapadd	2008-02-12 01:26:50.000000000 +0200
+++ openldap-2.4.12/tests/scripts/test001-slapadd	2008-11-04 10:13:54.000000000 +0200
@@ -71,6 +71,15 @@
 	exit 1
 fi
 
+echo "Testing database export with slapcat..."
+$SLAPCAT -f $CONF1 > $SEARCHOUT
+$SLAPCAT -f $CONF1 > $SEARCHOUT
+if [ "`wc -l < $SEARCHOUT`" == 0 ]
+then
+	echo "slapcat failed"
+	exit 1
+fi
+
 echo ">>>>> Test succeeded"
 
 test $KILLSERVERS != no && wait