1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00
samba-mirror/source/script/tests/test_smbclient_s3.sh
Stefan Metzmacher 835f8f4339 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
2007-10-10 11:15:43 -05:00

24 lines
543 B
Bash
Executable File

#!/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