1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00
Files
samba-mirror/source/script/tests/test_simple.sh
2007-10-10 14:49:38 -05:00

31 lines
533 B
Bash
Executable File

#!/bin/sh
# run a quick set of filesystem tests
if [ $# -lt 3 ]; then
cat <<EOF
Usage: test_simple.sh UNC USERNAME PASSWORD <first> <smbtorture args>
EOF
exit 1;
fi
unc="$1"
username="$2"
password="$3"
start="$4"
shift 4
ADDARGS="$*"
incdir=`dirname $0`
. $incdir/test_functions.sh
tests="BASE-RW1"
for t in $tests; do
if [ ! -z "$start" -a "$start" != $t ]; then
continue;
fi
start=""
name="$t"
plantest "$name" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t
done