waf: make "update-waf" script work on Darwin too
[Samba/bjacke.git] / testprogs / blackbox / bogus.sh
blob019957bf70f45ce4b4f00383e8bb2c43ba2149b1
1 #!/bin/sh
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: blackbox_newuser.sh PREFIX
6 EOF
7 exit 1;
8 fi
10 . `dirname $0`/subunit.sh
12 SERVER=$1
13 SHARE=$2
14 USER=$3
15 PWD=$4
16 smbclient="$BINDIR/smbclient"
17 testit_expect_failure "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$USER%$PWD -c "dir"&& failed=`expr $failed + 1`
18 ./bin/net rpc user add $USER $PWD -W $SERVER -U$USER%$PWD -S $SERVER
19 testit "smbclient" $smbclient "//$SERVER/$SHARE" -W POUET -U$USER%$PWD -c "dir"|| failed=`expr $failed + 1`
20 exit $failed