From 59c24ebe6ddd12a859a21cb1bd67807de2e1014c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 8 May 2007 03:10:07 +0000 Subject: [PATCH] try replay git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20604 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/db/add-modify-delete.in | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tests/db/add-modify-delete.in b/tests/db/add-modify-delete.in index 7c67dbe0c..c2a8cd7e9 100644 --- a/tests/db/add-modify-delete.in +++ b/tests/db/add-modify-delete.in @@ -50,6 +50,7 @@ KRB5_CONFIG="${objdir}/krb5.conf" export KRB5_CONFIG rm -f current-db* +rm -f log.current-db* rm -f out-* rm -f mkey.file* @@ -110,9 +111,29 @@ ${EGREP} " *Principal: host/datan.example.org@EXAMPLE.ORG$" tempfile > /dev/null echo checking kvno ${EGREP} " *Kvno: 1$" tempfile > /dev/null || exit 1 -echo "trying iprop-log commands" -# XXX test replay log +echo "iprop-log dump" ${iproplog} dump > /dev/null || exit 1 +echo "iprop-log last-version" ${iproplog} last-version > /dev/null || exit 1 +echo "check iprop replay" + +${kadmin} dump out-current-db || exit 1 +sort out-current-db > out-current-db-sort + +rm -f current-db* + +#${iproplog} dump + +echo "replaying" +${iproplog} replay > /dev/null || exit 1 + +${kadmin} dump out-current-db2 || exit 1 +sort out-current-db2 > out-current-db2-sort + +# XXX database should really be the same afterward... :( +# cmp out-current-db-sort out-current-db2-sort || exit 1 + + + exit 0