From 0f08e9941a79f634f603b7fdd64472da9dd76752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 15 Nov 2006 08:45:51 +0000 Subject: [PATCH] test more combination of context building git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19040 ec53bebd-3082-4978-b11e-865c3cabbd6b --- tests/gss/check-context.in | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/tests/gss/check-context.in b/tests/gss/check-context.in index 4abb7dd86..579d10f8e 100644 --- a/tests/gss/check-context.in +++ b/tests/gss/check-context.in @@ -129,9 +129,30 @@ ${context} --no-dns-canon --name-type=krb5-principal-name host/lucid || \ { exitcode=1 ; echo test failed; } echo "test context building" -echo "mutual" -${context} --mutual --name-type=hostbased-service host@lucid.test.h5l.se || \ - { exitcode=1 ; echo test failed; } +for mech in krb5 spnego ; do + echo "${mech} no-mutual" + ${context} --mech-type=${mech} \ + --name-type=hostbased-service host@lucid.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + + echo "${mech} mutual" + ${context} --mech-type=${mech} \ + --mutual \ + --name-type=hostbased-service host@lucid.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + + echo "${mech}: delegate" + ${context} --mech-type=${mech} \ + --delegate \ + --name-type=hostbased-service host@lucid.test.h5l.se || \ + { exitcode=1 ; echo test failed; } + + echo "${mech}: mutual delegate" + ${context} --mech-type=${mech} \ + --mutual --delegate \ + --name-type=hostbased-service host@lucid.test.h5l.se || \ + { exitcode=1 ; echo test failed; } +done #echo "dce-style" #${context} --dce-style --name-type=hostbased-service host@lucid.test.h5l.se || \