ntlm_auth: Add a blackbox test.
[Samba.git] / source / script / tests / test_ntlm_auth_s3.sh
blob8568da97e4d13127b7aea2a5d3bee9fad4ecf304
1 #!/bin/sh
3 incdir=`dirname $0`
4 . $incdir/test_functions.sh
6 failed=0
8 (/usr/bin/env python --version > /dev/null 2&>1)
10 if $? -ne 0:
11 then
12 echo "Python binary not found in path. Skipping ntlm_auth tests."
13 exit 0
16 testit "ntlm_auth" $VALGRIND $SRCDIR/torture/test_ntlm_auth.py $BINDIR/ntlm_auth || failed=`expr $failed + 1`
17 # This should work even with NTLMv2
18 testit "ntlm_auth" $VALGRIND $SRCDIR/torture/test_ntlm_auth.py $BINDIR/ntlm_auth --client-domain=fOo --server-domain=fOo || failed=`expr $failed + 1`
21 testok $0 $failed