s3-selftest convert tests.sh to python
[samba.git] / source3 / script / tests / test_ntlm_auth_s3.sh
1 #!/bin/sh
2
3 if [ $# -lt 2 ]; then
4 cat <<EOF
5 Usage: test_ntlm_auth_s3.sh PYTHON SRC3DIR
6 EOF
7 exit 1;
8 fi
9
10 PYTHON=$1
11 SRC3DIR=$2
12 shift 2
13 ADDARGS="$*"
14
15 test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
16 incdir=`dirname $0`/../../../testprogs/blackbox
17 . $incdir/subunit.sh
18 }
19
20 failed=0
21
22 testit "ntlm_auth" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $BINDIR/ntlm_auth $ADDARGS || failed=`expr $failed + 1`
23 # This should work even with NTLMv2
24 testit "ntlm_auth" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $BINDIR/ntlm_auth $ADDARGS --client-domain=fOo --server-domain=fOo || failed=`expr $failed + 1`
25
26
27 testok $0 $failed