3 # this tests copying a file and then deleting it
4 # to a share using fruit:resource = stream
5 # BUG: https://bugzilla.samba.org/show_bug.cgi?id=15099
9 Usage: $0 SERVER SHARE USERNAME PASSWORD LOCAL_PATH SMBCLIENT
20 SMBCLIENT
="$VALGRIND ${SMBCLIENT}"
22 incdir
=$
(dirname "$0")/..
/..
/..
/testprogs
/blackbox
23 .
"$incdir/subunit.sh"
27 put_then_delete_file
()
29 $SMBCLIENT //"$SERVER"/"$SHARE" -U"$USERNAME"%"$PASSWORD" -c "lcd $LOCAL_PATH; put src dst; rm dst" >/dev
/null
2>&1
32 rm -f "$LOCAL_PATH/src"
33 rm -f "$LOCAL_PATH/dst"
34 touch "$LOCAL_PATH/src"
36 testit
"resource_stream" put_then_delete_file || failed
=$
((failed
+ 1))
38 rm -f "$LOCAL_PATH/src"
39 rm -f "$LOCAL_PATH/dst"