bootstrap: install perl-JSON on on rpm distributions
[Samba.git] / nsswitch / tests / test_wbinfo_simple.sh
blob35adb6c6d72fd9f2a2256696324f2d158520d83e
1 #!/bin/sh
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: test_wbinfo_simple.sh <wbinfo args>
6 EOF
7 exit 1;
8 fi
10 ADDARGS="$*"
12 incdir=`dirname $0`/../../testprogs/blackbox
13 . $incdir/subunit.sh
15 KRB5CCNAME_PATH="$PREFIX/test_wbinfo_simple_krb5ccname"
16 rm -f $KRB5CCNAME_PATH
18 KRB5CCNAME="FILE:$KRB5CCNAME_PATH"
19 export KRB5CCNAME
21 testit "wbinfo" $VALGRIND $BINDIR/wbinfo --krb5ccname="$KRB5CCNAME" $ADDARGS || failed=`expr $failed + 1`
23 rm -f $KRB5CCNAME_PATH
25 testok $0 $failed