selftest Add binary mappings for samba3 selftest
[metze/samba/wip.git] / source3 / script / tests / test_smbtorture_s3.sh
index 65c98a58eca28634e08d66e79725c302d46f2c34..07d940faa11bede49368bf8c37568344dbfca545 100755 (executable)
@@ -4,7 +4,7 @@
 
 if [ $# -lt 4 ]; then
 cat <<EOF
-Usage: test_smbtorture_s3.sh TEST UNC USERNAME PASSWORD <smbtorture args>
+Usage: test_smbtorture_s3.sh TEST UNC USERNAME PASSWORD SMBTORTURE <smbtorture args>
 EOF
 exit 1;
 fi
@@ -13,7 +13,8 @@ t="$1"
 unc="$2"
 username="$3"
 password="$4"
-shift 4
+SMBTORTURE="$5"
+shift 5
 ADDARGS="$*"
 
 incdir=`dirname $0`/../../../testprogs/blackbox
@@ -22,6 +23,6 @@ incdir=`dirname $0`/../../../testprogs/blackbox
 
 
 failed=0
-testit "smbtorture" $VALGRIND $BINDIR/smbtorture $unc -U"$username"%"$password" $ADDARGS $t || failed=`expr $failed + 1`
+testit "smbtorture" $VALGRIND $SMBTORTURE $unc -U"$username"%"$password" $ADDARGS $t || failed=`expr $failed + 1`
 
 testok $0 $failed