mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
when it breaks. It isn't much good as a template for developers to use unless it works :-) (This used to be commit 262bee07dcb140b413d5ae5a8a754b3e57235323)
35 lines
585 B
Bash
Executable File
35 lines
585 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"
|
|
|
|
failed=0
|
|
for t in $tests; do
|
|
if [ ! -z "$start" -a "$start" != $t ]; then
|
|
continue;
|
|
fi
|
|
start=""
|
|
name="$t"
|
|
testit "$name" $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1`
|
|
done
|
|
|
|
testok $0 $failed
|
|
|