nsswitch: Use own credential cache for wbinfo tests
[samba.git] / nsswitch / tests / test_wbinfo_simple.sh
1 #!/bin/sh
2
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: test_wbinfo_simple.sh <wbinfo args>
6 EOF
7 exit 1;
8 fi
9
10 ADDARGS="$*"
11
12 incdir=`dirname $0`/../../testprogs/blackbox
13 . $incdir/subunit.sh
14
15 KRB5CCNAME_PATH="$PREFIX/test_wbinfo_simple_krb5ccname"
16 rm -f $KRB5CCNAME_PATH
17
18 KRB5CCNAME="FILE:$KRB5CCNAME_PATH"
19 export KRB5CCNAME
20
21 testit "wbinfo" $VALGRIND $BINDIR/wbinfo --krb5ccname="$KRB5CCNAME" $ADDARGS || failed=`expr $failed + 1`
22
23 rm -f $KRB5CCNAME_PATH
24
25 testok $0 $failed