summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--regress/ssh-com-sftp.sh22
2 files changed, 16 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 61ee5a6fe..eceac5e21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,7 +14,7 @@
14 - [regress/sftp-badcmds.sh regress/sftp-cmds.sh regress/sftp.sh 14 - [regress/sftp-badcmds.sh regress/sftp-cmds.sh regress/sftp.sh
15 regress/ssh-com-client.sh regress/ssh-com-sftp.sh regress/stderr-data.sh 15 regress/ssh-com-client.sh regress/ssh-com-sftp.sh regress/stderr-data.sh
16 regress/transfer.sh] Use ${EXEEXT} where appropriate. 16 regress/transfer.sh] Use ${EXEEXT} where appropriate.
17 - [regress/sftp.sh] Remove dependency on /dev/stdin. 17 - [regress/sftp.sh regress/ssh-com-sftp.sh] Remove dependency on /dev/stdin.
18 - [regress/agent-ptrace.sh regress/agent-timeout.sh] 18 - [regress/agent-ptrace.sh regress/agent-timeout.sh]
19 "grep -q" -> "grep >/dev/null" 19 "grep -q" -> "grep >/dev/null"
20 - [regress/agent.sh regress/proto-version.sh regress/ssh-com.sh 20 - [regress/agent.sh regress/proto-version.sh regress/ssh-com.sh
@@ -1011,4 +1011,4 @@
1011 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 1011 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
1012 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 1012 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
1013 1013
1014$Id: ChangeLog,v 1.2954 2003/09/04 05:24:50 dtucker Exp $ 1014$Id: ChangeLog,v 1.2955 2003/09/04 05:26:57 dtucker Exp $
diff --git a/regress/ssh-com-sftp.sh b/regress/ssh-com-sftp.sh
index 760cc9057..6ca7dad51 100644
--- a/regress/ssh-com-sftp.sh
+++ b/regress/ssh-com-sftp.sh
@@ -5,6 +5,13 @@ tid="basic sftp put/get with ssh.com server"
5 5
6DATA=/bin/ls${EXEEXT} 6DATA=/bin/ls${EXEEXT}
7COPY=${OBJ}/copy 7COPY=${OBJ}/copy
8SFTPCMDFILE=${OBJ}/batch
9
10cat >$SFTPCMDFILE <<EOF
11version
12get $DATA ${COPY}.1
13put $DATA ${COPY}.2
14EOF
8 15
9BUFFERSIZE="5 1000 32000 64000" 16BUFFERSIZE="5 1000 32000 64000"
10REQUESTS="1 2 10" 17REQUESTS="1 2 10"
@@ -41,18 +48,17 @@ for v in ${VERSIONS}; do
41 for R in ${REQUESTS}; do 48 for R in ${REQUESTS}; do
42 verbose "test $tid: buffer_size $B num_requests $R" 49 verbose "test $tid: buffer_size $B num_requests $R"
43 rm -f ${COPY}.1 ${COPY}.2 50 rm -f ${COPY}.1 ${COPY}.2
44 ${SFTP} -P ${server} -B $B -R $R -b /dev/stdin \ 51 ${SFTP} -P ${server} -B $B -R $R -b $SFTPCMDFILE \
45 > /dev/null 2>&1 << EOF 52 > /dev/null 2>&1
46 version
47 get $DATA ${COPY}.1
48 put $DATA ${COPY}.2
49EOF
50 r=$? 53 r=$?
51 if [ $r -ne 0 ]; then 54 if [ $r -ne 0 ]; then
52 fail "sftp failed with $r" 55 fail "sftp failed with $r"
56 else
57 cmp $DATA ${COPY}.1 || fail "corrupted copy after get"
58 cmp $DATA ${COPY}.2 || fail "corrupted copy after put"
53 fi 59 fi
54 cmp $DATA ${COPY}.1 || fail "corrupted copy after get"
55 cmp $DATA ${COPY}.2 || fail "corrupted copy after put"
56 done 60 done
57 done 61 done
58done 62done
63rm -f ${COPY}.1 ${COPY}.2
64rm -f $SFTPCMDFILE