| 1 |
#!/bin/sh |
| 2 |
# Blackbox tests for masktest |
| 3 |
# Copyright (C) 2008 Andrew Tridgell |
| 4 |
# based on test_smbclient.sh |
| 5 |
|
| 6 |
if [ $# -lt 5 ]; then |
| 7 |
cat <<EOF |
| 8 |
Usage: test_masktest.sh SERVER USERNAME PASSWORD DOMAIN PREFIX |
| 9 |
EOF |
| 10 |
exit 1 |
| 11 |
fi |
| 12 |
|
| 13 |
SERVER=$1 |
| 14 |
USERNAME=$2 |
| 15 |
PASSWORD=$3 |
| 16 |
DOMAIN=$4 |
| 17 |
PREFIX=$5 |
| 18 |
shift 5 |
| 19 |
failed=0 |
| 20 |
|
| 21 |
samba4bindir="$BINDIR" |
| 22 |
masktest="$samba4bindir/masktest" |
| 23 |
|
| 24 |
. $(dirname $0)/../../../testprogs/blackbox/subunit.sh |
| 25 |
|
| 26 |
testit "masktest" $VALGRIND $masktest //$SERVER/tmp --num-ops=200 --dieonerror -W "$DOMAIN" -U"$USERNAME%$PASSWORD" "$@" || failed=$(expr $failed + 1) |
| 27 |
|
| 28 |
exit $failed |