5 Usage: test_smbclient_posix_large.sh ccache smbclient3 server prefix <smbclient args>
18 # Test that a noninteractive smbclient does not prompt
19 test_large_write_read
()
22 cat > $PREFIX/largefile-script
<<EOF
24 put $PREFIX/largefile largefile
25 get largefile $PREFIX/largefile2
30 cmd
='$SMBCLIENT3 //$SERVER/xcopy_share $ADDARGS < $PREFIX/largefile-script 2>&1'
41 echo "$out" |
grep "getting file" >/dev
/null
2>&1
46 echo did not get success message
51 rm -f $PREFIX/largefile
52 dd if=/dev
/zero of
=$PREFIX/largefile skip
=$
((20*1024*1024)) count
=1 bs
=1
54 incdir
=`dirname $0`/..
/..
/..
/testprogs
/blackbox
57 testit
"smbclient large posix write read" test_large_write_read || failed
=`expr $failed + 1`
59 testit
"cmp of read and written files" cmp $PREFIX/largefile
$PREFIX/largefile2 || failed
=`expr $failed + 1`
60 rm -f $PREFIX/largefile2