1 # $OpenBSD: sftp.sh,v 1.2 2002/03/27 22:39:52 markus Exp $
2 # Placed in the Public Domain.
4 tid="basic sftp put/get"
9 BUFFERSIZE="5 1000 32000 64000"
12 for B in ${BUFFERSIZE}; do
13 for R in ${REQUESTS}; do
14 verbose "test $tid: buffer_size $B num_requests $R"
15 rm -f ${COPY}.1 ${COPY}.2
16 ${SFTP} -P ${SFTPSERVER} -B $B -R $R -b /dev/stdin \
17 > /dev/null 2>&1 << EOF
24 fail "sftp failed with $r"
26 cmp $DATA ${COPY}.1 || fail "corrupted copy after get"
27 cmp $DATA ${COPY}.2 || fail "corrupted copy after put"