test_smbclient_tarmode.pl: sanitize $DIR + whitespace
[amitay/samba.git] / source3 / script / tests / test_smbclient_krb5.sh
1 #!/bin/sh
2
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: test_smbclient.sh ccache smbclient3 server <smbclient args>
6 EOF
7 exit 1;
8 fi
9
10 KRB5CCNAME=$1
11 export KRB5CCNAME
12 SMBCLIENT3=$2
13 SERVER=$3
14 shift 3
15 ADDARGS="$*"
16
17 incdir=`dirname $0`/../../../testprogs/blackbox
18 . $incdir/subunit.sh
19 testit "smbclient" $VALGRIND $SMBCLIENT3 //$SERVER/tmp -c 'ls' -k $ADDARGS || failed=`expr $failed + 1`
20
21 testok $0 $failed