2 # Blackbox tests for gentest
3 # Copyright (C) 2008 Andrew Tridgell
4 # based on test_smbclient.sh
8 Usage: test_gentest.sh SERVER USERNAME PASSWORD DOMAIN PREFIX
21 samba4bindir
="$BINDIR"
22 gentest
="$samba4bindir/gentest$EXEEXT"
24 .
`dirname $0`/..
/..
/..
/testprogs
/blackbox
/subunit.sh
26 cat <<EOF > $PREFIX/gentest.ignore
28 internal_information.out.file_id
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