@@ -58,7 +58,7 @@ for mode in scp sftp ; do
58
58
59
59
verbose " $tag : simple copy remote file to local file"
60
60
scpclean
61
- $SCP " ${scpopts[@]} " somehost:${DATA} ${COPY} || fail " copy failed"
61
+ $SCP -vvv " ${scpopts[@]} " somehost:${DATA} ${COPY} || fail " copy failed"
62
62
cmp ${DATA} ${COPY} || fail " corrupted copy"
63
63
64
64
# In place tests will not work on Windows because of simultaneous read of/write to file
@@ -88,31 +88,6 @@ for mode in scp sftp ; do
88
88
$SCP " ${scpopts[@]} " somehost:${DATA} ${COPY} || fail " copy failed"
89
89
cmp ${DATA} ${COPY} || fail " corrupted copy"
90
90
91
- verbose " $tag : copy local file to remote file in place"
92
- scpclean
93
- cp ${DATA} ${COPY}
94
- $SCP $scpopts ${COPY} somehost:${COPY} || fail " copy failed"
95
- cmp ${DATA} ${COPY} || fail " corrupted copy"
96
-
97
- verbose " $tag : copy remote file to local file in place"
98
- scpclean
99
- cp ${DATA} ${COPY}
100
- $SCP $scpopts somehost:${COPY} ${COPY} || fail " copy failed"
101
- cmp ${DATA} ${COPY} || fail " corrupted copy"
102
-
103
- verbose " $tag : copy local file to remote file clobber"
104
- scpclean
105
- cat ${DATA} ${DATA} > ${COPY}
106
- $SCP $scpopts ${DATA} somehost:${COPY} || fail " copy failed"
107
- ls -l $DATA $COPY
108
- cmp ${DATA} ${COPY} || fail " corrupted copy"
109
-
110
- verbose " $tag : copy remote file to local file clobber"
111
- scpclean
112
- cat ${DATA} ${DATA} > ${COPY}
113
- $SCP $scpopts somehost:${DATA} ${COPY} || fail " copy failed"
114
- cmp ${DATA} ${COPY} || fail " corrupted copy"
115
-
116
91
verbose " $tag : simple copy local file to remote dir"
117
92
scpclean
118
93
cp ${DATA} ${COPY}
@@ -154,26 +129,26 @@ for mode in scp sftp ; do
154
129
155
130
verbose " $tag : unmatched glob file local->remote"
156
131
scpclean
157
- $SCP $ scpopts ${DATA} somehost:${COPY3} || fail " copy failed"
132
+ $SCP " ${ scpopts[@]} " ${DATA} somehost:${COPY3} || fail " copy failed"
158
133
cmp ${DATA} ${COPY3} || fail " corrupted copy"
159
134
160
135
verbose " $tag : unmatched glob file remote->local"
161
136
# NB. no clean
162
- $SCP $ scpopts somehost:${COPY3} ${COPY2} || fail " copy failed"
137
+ $SCP " ${ scpopts[@]} " somehost:${COPY3} ${COPY2} || fail " copy failed"
163
138
cmp ${DATA} ${COPY2} || fail " corrupted copy"
164
139
165
140
verbose " $tag : unmatched glob dir recursive local->remote"
166
141
scpclean
167
142
rm -rf ${DIR3}
168
143
cp ${DATA} ${DIR} /copy
169
144
cp ${DATA} ${DIR} /copy.glob[1234]
170
- $SCP $ scpopts -r ${DIR} somehost:${DIR3} || fail " copy failed"
145
+ $SCP " ${ scpopts[@]} " -r ${DIR} somehost:${DIR3} || fail " copy failed"
171
146
diff ${DIFFOPT} ${DIR} ${DIR3} || fail " corrupted copy"
172
147
173
148
verbose " $tag : unmatched glob dir recursive remote->local"
174
149
# NB. no clean
175
150
rm -rf ${DIR2}
176
- $SCP $ scpopts -r somehost:${DIR3} ${DIR2} || fail " copy failed"
151
+ $SCP " ${ scpopts[@]} " -r somehost:${DIR3} ${DIR2} || fail " copy failed"
177
152
diff ${DIFFOPT} ${DIR} ${DIR2} || fail " corrupted copy"
178
153
179
154
verbose " $tag : shell metacharacters"
@@ -237,5 +212,5 @@ for mode in scp sftp ; do
237
212
cmp ${COPY} ${COPY2} > /dev/null && fail " corrupt target"
238
213
done
239
214
240
- scpclean
215
+ # scpclean
241
216
rm -f ${OBJ} /scp-ssh-wrapper.scp
0 commit comments