libads: Make ads_cldap_netlogon() static
[samba4-gss.git] / source4 / torture / tests / test_locktest.sh
blob2342d7af5932ff1a792209dabe3122f6ea719391
1 #!/bin/sh
2 # Blackbox tests for locktest
3 # Copyright (C) 2008 Andrew Tridgell
4 # based on test_smbclient.sh
6 if [ $# -lt 5 ]; then
7 cat <<EOF
8 Usage: test_locktest.sh SERVER USERNAME PASSWORD DOMAIN PREFIX
9 EOF
10 exit 1
13 SERVER=$1
14 USERNAME=$2
15 PASSWORD=$3
16 DOMAIN=$4
17 PREFIX=$5
18 shift 5
19 failed=0
21 samba4bindir="$BINDIR"
22 locktest="$samba4bindir/locktest"
24 . $(dirname $0)/../../../testprogs/blackbox/subunit.sh
26 testit "locktest" $VALGRIND $locktest //$SERVER/test1 //$SERVER/test2 --num-ops=100 -W "$DOMAIN" --user1="$DOMAIN\\$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1)
28 exit $failed