~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/torture/tests/test_gentest.sh

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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="$BUILDDIR/bin"
 
21
gentest="$samba4bindir/gentest$EXEEXT"
 
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