torture: confirm printer driver file removal
[Samba/vl.git] / source4 / torture / tests / test_gentest.sh
blob9f6e60c3072992547f21584475e1fffe7376b0b9
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$EXEEXT"
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