1 # $OpenBSD: sftp.sh,v 1.3 2009/08/13 01:11:55 djm Exp $
2 # Placed in the Public Domain.
4 tid
="basic sftp put/get"
9 SFTPCMDFILE
=${OBJ}/batch
10 cat >$SFTPCMDFILE <<EOF
16 BUFFERSIZE
="5 1000 32000 64000"
19 for B
in ${BUFFERSIZE}; do
20 for R
in ${REQUESTS}; do
21 verbose
"test $tid: buffer_size $B num_requests $R"
22 rm -f ${COPY}.1 ${COPY}.2
23 ${SFTP} -D ${SFTPSERVER} -B $B -R $R -b $SFTPCMDFILE \
27 fail
"sftp failed with $r"
29 cmp $DATA ${COPY}.1 || fail
"corrupted copy after get"
30 cmp $DATA ${COPY}.2 || fail
"corrupted copy after put"
34 rm -f ${COPY}.1 ${COPY}.2