From 1870d254956ec56b8116a923adc38f8aae675963 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 15 Apr 2011 16:39:53 +1000 Subject: selftest Add binary mappings for samba3 selftest This will help us have a top level 'make test', working around the fact that the --eanble-s3build has different names for some of these binaries, without fixing the names forever (we can just change the mapping later). Andrew Bartlett --- source3/script/tests/test_ntlm_auth_s3.sh | 9 +++++---- source3/script/tests/test_smbclient_auth.sh | 7 ++++--- source3/script/tests/test_smbclient_s3.sh | 7 ++++--- source3/script/tests/test_smbtorture_s3.sh | 7 ++++--- 4 files changed, 17 insertions(+), 13 deletions(-) (limited to 'source3/script/tests') diff --git a/source3/script/tests/test_ntlm_auth_s3.sh b/source3/script/tests/test_ntlm_auth_s3.sh index 99b2ab3f14..783ac03209 100755 --- a/source3/script/tests/test_ntlm_auth_s3.sh +++ b/source3/script/tests/test_ntlm_auth_s3.sh @@ -2,14 +2,15 @@ if [ $# -lt 2 ]; then cat < +Usage: test_smbclient_s3.sh SERVER SERVER_IP USERNAME PASSWORD SMBCLIENT EOF exit 1; fi @@ -13,8 +13,9 @@ SERVER="$1" SERVER_IP="$2" USERNAME="$3" PASSWORD="$4" -SMBCLIENT="$VALGRIND ${SMBCLIENT:-$BINDIR/smbclient}" -shift 4 +SMBCLIENT="$5" +SMBCLIENT="$VALGRIND ${SMBCLIENT}" +shift 5 ADDARGS="$*" incdir=`dirname $0`/../../../testprogs/blackbox diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index 972f68f42b..0395f3e12c 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -4,7 +4,7 @@ if [ $# -lt 7 ]; then cat < +Usage: test_smbtorture_s3.sh TEST UNC USERNAME PASSWORD SMBTORTURE 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 -- cgit