1#!/bin/sh 2 3[ "$UID" == 0 ] || { echo "must be root" ; exit 1 ; } 4 5if [ -x /Users/Shared/Raft/raft ] ; then 6 RAFT=/Users/Shared/Raft/raft 7else 8 RAFT=: 9fi 10 11#(ktutil list | grep host/) > /dev/null || { echo "list test failed"; exit 1; } 12 13echo " = Testing gss =" 14/usr/local/libexec/heimdal/bin/test-gss.sh || { echo "gss test failed"; exit 1; } 15 16echo " = Testing kClient =" 17/usr/local/libexec/heimdal/bin/test-kClient || { echo "kClient test failed"; exit 1; } 18 19# don't test KLL since it does a UI popup and we can't test that 20#echo " = Testing kll =" 21#/usr/local/libexec/heimdal/bin/test-kll ktestuser@ADS.APPLE.COM || { echo "kll test failed"; exit 1; } 22 23echo " = Testing kll2 =" 24/usr/local/libexec/heimdal/bin/test-kll2 ktestuser@ADS.APPLE.COM foobar || { echo "kll2 test failed"; exit 1; } 25 26echo " = Testing krb =" 27/usr/local/libexec/heimdal/bin/test-krb || { echo "krb test failed"; exit 1; } 28 29echo " = Testing krb4 =" 30/usr/local/libexec/heimdal/bin/test-krb4 || { echo "krb4 test failed"; exit 1; } 31 32echo " = Testing krb5 =" 33/usr/local/libexec/heimdal/bin/test-krb5 || { echo "krb5 test failed"; exit 1; } 34 35echo " = Testing principal =" 36/usr/local/libexec/heimdal/bin/test-principal || { echo "princ test failed"; exit 1; } 37 38echo " = Testing sd =" 39/usr/local/libexec/heimdal/bin/test-sd || { echo "vnc test failed"; exit 1; } 40 41#${RAFT} -f /usr/local/libexec/heimdal/raft/KLLAcquireCredUI/KLLAcquireCredUI.py 42 43exit 0 44