selftest: add disk-free quota tests
[amitay/samba.git] / source3 / script / tests / test_smbclient_machine_auth.sh
1 #!/bin/sh
2
3 # this runs the file serving tests that are expected to pass with samba3 against shares with various options
4
5 if [ $# -lt 2 ]; then
6 cat <<EOF
7 Usage: test_smbclient_machine_auth.sh SERVER SMBCLIENT <smbclient arguments>
8 EOF
9 exit 1;
10 fi
11
12 SERVER="$1"
13 SMBCLIENT="$2"
14 SMBCLIENT="$VALGRIND ${SMBCLIENT}"
15 shift 2
16 ADDARGS="$*"
17
18 incdir=`dirname $0`/../../../testprogs/blackbox
19 . $incdir/subunit.sh
20
21 testit "smbclient //$SERVER/tmp" $SMBCLIENT //$SERVER/tmp --machine-pass -I $SERVER_IP -p 139 -c quit $ADDARGS
22
23 # Testing these here helps because we know the machine account isn't already this user/group
24 testit "smbclient //$SERVER/forceuser" $SMBCLIENT //$SERVER/tmp --machine-pass -I $SERVER_IP -p 139 -c quit $ADDARGS
25 testit "smbclient //$SERVER/forcegroup" $SMBCLIENT //$SERVER/tmp --machine-pass -I $SERVER_IP -p 139 -c quit $ADDARGS