diff options
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sftp-cmds.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh index 1256aeb2d..3669b19ff 100644 --- a/regress/sftp-cmds.sh +++ b/regress/sftp-cmds.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: sftp-cmds.sh,v 1.5 2003/07/19 00:46:31 djm Exp $ | 1 | # $OpenBSD: sftp-cmds.sh,v 1.6 2003/10/07 07:04:52 djm Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | # XXX - TODO: | 4 | # XXX - TODO: |
@@ -79,6 +79,20 @@ echo "get $DATA $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | |||
79 | || fail "get failed" | 79 | || fail "get failed" |
80 | cmp $DATA ${COPY} || fail "corrupted copy after get" | 80 | cmp $DATA ${COPY} || fail "corrupted copy after get" |
81 | 81 | ||
82 | rm -f ${COPY} | ||
83 | verbose "$tid: get quoted" | ||
84 | echo "get \"$DATA\" $COPY" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | ||
85 | || fail "get failed" | ||
86 | cmp $DATA ${COPY} || fail "corrupted copy after get" | ||
87 | |||
88 | rm -f ${QUOTECOPY} | ||
89 | cp $DATA ${QUOTECOPY} | ||
90 | verbose "$tid: get filename with quotes" | ||
91 | echo "get \"$QUOTECOPY_ARG\" ${COPY}" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | ||
92 | || fail "put failed" | ||
93 | cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes" | ||
94 | rm -f ${QUOTECOPY} ${COPY} | ||
95 | |||
82 | rm -f ${COPY}.dd/* | 96 | rm -f ${COPY}.dd/* |
83 | verbose "$tid: get to directory" | 97 | verbose "$tid: get to directory" |
84 | echo "get $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ | 98 | echo "get $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ |