s4-netlogon: implement dcesrv_netr_DsRAddressToSitenamesExW
[Samba/aatanasov.git] / source4 / torture / tests / test_gentest.sh
blobc7f66c8445d853ea2567cab61005db8390f9dd7a
1 #!/bin/sh
2 # Blackbox tests for gentest
3 # Copyright (C) 2008 Andrew Tridgell
4 # based on test_smbclient.sh
6 if [ $# -lt 4 ]; then
7 cat <<EOF
8 Usage: test_gentest.sh SERVER USERNAME PASSWORD DOMAIN
9 EOF
10 exit 1;
13 SERVER=$1
14 USERNAME=$2
15 PASSWORD=$3
16 DOMAIN=$4
17 shift 4
18 failed=0
20 samba4bindir="$BUILDDIR/bin"
21 gentest="$samba4bindir/gentest$EXEEXT"
23 . `dirname $0`/../../../testprogs/blackbox/subunit.sh
25 cat <<EOF > st/gentest.ignore
26 all_info.out.fname
27 internal_information.out.file_id
28 EOF
30 testit "gentest" $VALGRIND $gentest //$SERVER/test1 //$SERVER/test2 --num-ops=100 --ignore=st/gentest.ignore -W "$DOMAIN" -U"$USERNAME%$PASSWORD" -U"$USERNAME%$PASSWORD" $@ || failed=`expr $failed + 1`
32 rm -f st/gentest.ignore
34 exit $failed