From: Howard Chu Date: Fri, 11 Jan 2008 03:17:37 +0000 (+0000) Subject: ITS#5319 test renames to same DN X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~222 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=785c95c280d25429cc97d7e1ea0247de80760208;p=openldap ITS#5319 test renames to same DN --- diff --git a/tests/scripts/test005-modrdn b/tests/scripts/test005-modrdn index e6d9ac80df..e30c8431a0 100755 --- a/tests/scripts/test005-modrdn +++ b/tests/scripts/test005-modrdn @@ -243,6 +243,36 @@ case $RC in ;; esac +echo "Testing modrdn with newRdn exact same as target..." +$LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \ + $TESTOUT 2>&1 'cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com' 'cn=James A Jones 1' + +RC=$? +case $RC in +0) + ;; +*) + echo "ldapmodrdn failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC + ;; +esac + +echo "Testing modrdn with newRdn same as target, changed case..." +$LDAPMODRDN -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \ + $TESTOUT 2>&1 'cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com' 'cn=James A JONES 1' + +RC=$? +case $RC in +0) + ;; +*) + echo "ldapmodrdn failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC + ;; +esac + test $KILLSERVERS != no && kill -HUP $KILLPIDS echo ">>>>> Test succeeded"