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
20 samba4bindir
=`dirname $0`/..
/..
/source
/bin
21 gentest
=$samba4bindir/gentest
30 if [ x
$status = x0
]; then
38 cat <<EOF > st/gentest.ignore
40 internal_information.out.file_id
43 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`
45 /bin
/rm -f st
/gentest.ignore