summaryrefslogtreecommitdiff
path: root/regress/sftp-cmds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sftp-cmds.sh')
-rw-r--r--regress/sftp-cmds.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/regress/sftp-cmds.sh b/regress/sftp-cmds.sh
index a7d552972..c747988d1 100644
--- a/regress/sftp-cmds.sh
+++ b/regress/sftp-cmds.sh
@@ -7,7 +7,7 @@
7 7
8tid="sftp commands" 8tid="sftp commands"
9 9
10DATA=/bin/ls 10DATA=/bin/ls${EXEEXT}
11COPY=${OBJ}/copy 11COPY=${OBJ}/copy
12# test that these files are readable! 12# test that these files are readable!
13for i in `(cd /bin;echo l*)` 13for i in `(cd /bin;echo l*)`
@@ -70,7 +70,7 @@ rm -f ${COPY}.dd/*
70verbose "$tid: get to directory" 70verbose "$tid: get to directory"
71echo "get $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ 71echo "get $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
72 || fail "get failed" 72 || fail "get failed"
73cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after get" 73cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after get"
74 74
75rm -f ${COPY}.dd/* 75rm -f ${COPY}.dd/*
76verbose "$tid: glob get to directory" 76verbose "$tid: glob get to directory"
@@ -82,13 +82,13 @@ done
82 82
83rm -f ${COPY}.dd/* 83rm -f ${COPY}.dd/*
84verbose "$tid: get to local dir" 84verbose "$tid: get to local dir"
85echo "lcd ${COPY}.dd\nget $DATA" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ 85(echo "lcd ${COPY}.dd"; echo "get $DATA" ) | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
86 || fail "get failed" 86 || fail "get failed"
87cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after get" 87cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after get"
88 88
89rm -f ${COPY}.dd/* 89rm -f ${COPY}.dd/*
90verbose "$tid: glob get to local dir" 90verbose "$tid: glob get to local dir"
91echo "lcd ${COPY}.dd\nget /bin/l*" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ 91(echo "lcd ${COPY}.dd"; echo "get /bin/l*") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
92 || fail "get failed" 92 || fail "get failed"
93for x in $GLOBFILES; do 93for x in $GLOBFILES; do
94 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get" 94 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
@@ -110,7 +110,7 @@ rm -f ${COPY}.dd/*
110verbose "$tid: put to directory" 110verbose "$tid: put to directory"
111echo "put $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ 111echo "put $DATA ${COPY}.dd" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
112 || fail "put failed" 112 || fail "put failed"
113cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after put" 113cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put"
114 114
115rm -f ${COPY}.dd/* 115rm -f ${COPY}.dd/*
116verbose "$tid: glob put to directory" 116verbose "$tid: glob put to directory"
@@ -122,13 +122,13 @@ done
122 122
123rm -f ${COPY}.dd/* 123rm -f ${COPY}.dd/*
124verbose "$tid: put to local dir" 124verbose "$tid: put to local dir"
125echo "cd ${COPY}.dd\nput $DATA" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ 125(echo "cd ${COPY}.dd"; echo "put $DATA") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
126 || fail "put failed" 126 || fail "put failed"
127cmp $DATA ${COPY}.dd/ls || fail "corrupted copy after put" 127cmp $DATA ${COPY}.dd/`basename $DATA` || fail "corrupted copy after put"
128 128
129rm -f ${COPY}.dd/* 129rm -f ${COPY}.dd/*
130verbose "$tid: glob put to local dir" 130verbose "$tid: glob put to local dir"
131echo "cd ${COPY}.dd\nput /bin/l*" | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \ 131(echo "cd ${COPY}.dd"; echo "put /bin/l*") | ${SFTP} -P ${SFTPSERVER} >/dev/null 2>&1 \
132 || fail "put failed" 132 || fail "put failed"
133for x in $GLOBFILES; do 133for x in $GLOBFILES; do
134 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put" 134 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"