1#!/bin/sh
2
3if [ $# -lt 1 ]; then
4cat <<EOF
5Usage: test_rpcclient.sh ccache binding <rpcclient commands>
6EOF
7exit 1;
8fi
9
10KRB5CCNAME=$1
11shift 1
12export KRB5CCNAME
13ADDARGS="$*"
14
15incdir=`dirname $0`/../../../testprogs/blackbox
16. $incdir/subunit.sh
17testit "rpcclient" $VALGRIND $BINDIR/rpcclient -c 'getusername' $ADDARGS || failed=`expr $failed + 1`
18
19testok $0 $failed
20