]> git.sur5r.net Git - openldap/commitdiff
compare on operational attribute
authorPierangelo Masarati <ando@openldap.org>
Thu, 20 Jan 2005 00:20:46 +0000 (00:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 20 Jan 2005 00:20:46 +0000 (00:20 +0000)
tests/scripts/sql-test000-read

index e66127444b5cf71efb79ca79013f38c60955e19b..98ebe373267d89916dba9083ae2ce055e44d9cbc 100755 (executable)
@@ -467,6 +467,25 @@ case $RC in
        ;;
 esac
 
+echo -n "Testing compare on hasSubordinates (should be TRUE)... "
+$LDAPCOMPARE -h $LOCALHOST -p $PORT1 "$BASEDN" \
+        "hasSubordinates:TRUE" >> $TESTOUT 2>&1
+
+RC=$?
+case $RC in
+6)
+       echo "TRUE"
+       ;;
+5)     echo "FALSE!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit $RC
+       ;;
+*)     echo "failed ($RC)!"
+       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+       exit $RC
+       ;;
+esac
+
 echo "Filtering ldapsearch results..."
 . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
 echo "Filtering original ldif..."