Remove EJS tests.
[bbaumbach/samba-autobuild/.git] / source4 / torture / tests / test_gentest.sh
1 #!/bin/sh
2 # Blackbox tests for gentest
3 # Copyright (C) 2008 Andrew Tridgell
4 # based on test_smbclient.sh
5
6 if [ $# -lt 4 ]; then
7 cat <<EOF
8 Usage: test_gentest.sh SERVER USERNAME PASSWORD DOMAIN
9 EOF
10 exit 1;
11 fi
12
13 SERVER=$1
14 USERNAME=$2
15 PASSWORD=$3
16 DOMAIN=$4
17 shift 4
18 failed=0
19
20 samba4bindir=`dirname $0`/../../bin
21 gentest=$samba4bindir/gentest
22
23 . `dirname $0`/../../../testprogs/blackbox/subunit.sh
24
25 cat <<EOF > st/gentest.ignore
26 all_info.out.fname
27 internal_information.out.file_id
28 EOF
29
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`
31
32 rm -f st/gentest.ignore
33
34 exit $failed