diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-03-23 14:55:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:43 -0500 |
commit | aa583e5912866069f1f79e0b675e9e7927c64fbe (patch) | |
tree | f10a321c5f09425981e63f08e9f55cfbc0489ce4 /source3/script/tests/test_smbclient_s3.sh | |
parent | 8d75615bf11a89e8171e70567e698323e71bc428 (diff) | |
download | samba-aa583e5912866069f1f79e0b675e9e7927c64fbe.tar.gz samba-aa583e5912866069f1f79e0b675e9e7927c64fbe.tar.bz2 samba-aa583e5912866069f1f79e0b675e9e7927c64fbe.zip |
r14678: - we need to use 127.0.0.2/8 as interface for the server
as nmbd skip interfaces with address 127.0.0.1
- add samba3 smbclient -L tests
- add samba3 smbtorture tests
metze
(This used to be commit 835f8f4339f41619ec890e38569b745c5ef5d44e)
Diffstat (limited to 'source3/script/tests/test_smbclient_s3.sh')
-rwxr-xr-x | source3/script/tests/test_smbclient_s3.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh new file mode 100755 index 0000000000..007f3839f7 --- /dev/null +++ b/source3/script/tests/test_smbclient_s3.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# this runs the file serving tests that are expected to pass with samba3 + +if [ $# != 2 ]; then +cat <<EOF +Usage: test_smbclient_s3.sh SERVER SERVER_IP +EOF +exit 1; +fi + +SERVER="$1" +SERVER_IP="$2" + +incdir=`dirname $0` +. $incdir/test_functions.sh + +failed=0 + +testit "smbclient -L $SERVER_IP" $VALGRIND $SRCDIR/bin/smbclient $CONFIGURATION -L $SERVER_IP -N -p 139 || failed=`expr $failed + 1` +testit "smbclient -L $SERVER" $VALGRIND $SRCDIR/bin/smbclient $CONFIGURATION -L $SERVER -N -p 139 || failed=`expr $failed + 1` + +testok $0 $failed |