dbwrap: Use tdb_null in db_ctdb_delete
[Samba/gbeck.git] / source4 / torture / tests / test_gentest.sh
blobecce7d7c6d67832372708a8f9fca136e17506222
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 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 gentest="$samba4bindir/gentest"
24 . `dirname $0`/../../../testprogs/blackbox/subunit.sh
26 cat <<EOF > $PREFIX/gentest.ignore
27 all_info.out.fname
28 internal_information.out.file_id
29 EOF
31 testit "gentest" $VALGRIND $gentest //$SERVER/test1 //$SERVER/test2 --seed=1 --seedsfile=$PREFIX/gentest_seeds.dat --num-ops=100 --ignore=$PREFIX/gentest.ignore -W "$DOMAIN" -U"$USERNAME%$PASSWORD" -U"$USERNAME%$PASSWORD" $@ || failed=`expr $failed + 1`
33 rm -f $PREFIX/gentest.ignore
35 exit $failed