Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > cdedc712ab3cd61c674716aaa506265d > files > 30

openldap-2.4.38-1.3.mga4.src.rpm

diff -up openldap-2.4.29/tests/scripts/test001-slapadd~ openldap-2.4.29/tests/scripts/test001-slapadd
--- openldap-2.4.29/tests/scripts/test001-slapadd~	2012-02-09 00:18:46.000000000 +0200
+++ openldap-2.4.29/tests/scripts/test001-slapadd	2012-02-16 12:38:49.000000000 +0200
@@ -139,6 +139,15 @@ fi
 
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
+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