mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- djm@cvs.openbsd.org 2006/01/27 06:49:21
[scp.sh] regress test for local to local scp copies; ok dtucker@
This commit is contained in:
parent
15a815bb64
commit
0b996462f8
@ -60,6 +60,9 @@
|
|||||||
[regress/scp-ssh-wrapper.sh]
|
[regress/scp-ssh-wrapper.sh]
|
||||||
Fix assumption about how many args scp will pass; ok djm@
|
Fix assumption about how many args scp will pass; ok djm@
|
||||||
NB. ID sync only, we already had this
|
NB. ID sync only, we already had this
|
||||||
|
- djm@cvs.openbsd.org 2006/01/27 06:49:21
|
||||||
|
[scp.sh]
|
||||||
|
regress test for local to local scp copies; ok dtucker@
|
||||||
|
|
||||||
20060129
|
20060129
|
||||||
- (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the
|
- (dtucker) [configure.ac opensshd.init.in] Bug #1144: Use /bin/sh for the
|
||||||
@ -3785,4 +3788,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.4108 2006/01/31 11:03:11 djm Exp $
|
$Id: ChangeLog,v 1.4109 2006/01/31 11:05:23 djm Exp $
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: scp.sh,v 1.4 2005/06/30 11:02:37 markus Exp $
|
# $OpenBSD: scp.sh,v 1.5 2006/01/27 06:49:21 djm Exp $
|
||||||
# Placed in the Public Domain.
|
# Placed in the Public Domain.
|
||||||
|
|
||||||
tid="scp"
|
tid="scp"
|
||||||
@ -28,6 +28,11 @@ scpclean() {
|
|||||||
mkdir ${DIR} ${DIR2}
|
mkdir ${DIR} ${DIR2}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
verbose "$tid: simple copy local file to local file"
|
||||||
|
scpclean
|
||||||
|
$SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
|
||||||
|
cmp ${DATA} ${COPY} || fail "corrupted copy"
|
||||||
|
|
||||||
verbose "$tid: simple copy local file to remote file"
|
verbose "$tid: simple copy local file to remote file"
|
||||||
scpclean
|
scpclean
|
||||||
$SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
|
$SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
|
||||||
@ -44,6 +49,12 @@ cp ${DATA} ${COPY}
|
|||||||
$SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
|
$SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
|
||||||
cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
|
cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
|
||||||
|
|
||||||
|
verbose "$tid: simple copy local file to local dir"
|
||||||
|
scpclean
|
||||||
|
cp ${DATA} ${COPY}
|
||||||
|
$SCP $scpopts ${COPY} ${DIR} || fail "copy failed"
|
||||||
|
cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
|
||||||
|
|
||||||
verbose "$tid: simple copy remote file to local dir"
|
verbose "$tid: simple copy remote file to local dir"
|
||||||
scpclean
|
scpclean
|
||||||
cp ${DATA} ${COPY}
|
cp ${DATA} ${COPY}
|
||||||
@ -57,6 +68,13 @@ cp ${DATA} ${DIR}/copy
|
|||||||
$SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
|
$SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
|
||||||
diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
|
diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
|
||||||
|
|
||||||
|
verbose "$tid: recursive local dir to local dir"
|
||||||
|
scpclean
|
||||||
|
rm -rf ${DIR2}
|
||||||
|
cp ${DATA} ${DIR}/copy
|
||||||
|
$SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
|
||||||
|
diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
|
||||||
|
|
||||||
verbose "$tid: recursive remote dir to local dir"
|
verbose "$tid: recursive remote dir to local dir"
|
||||||
scpclean
|
scpclean
|
||||||
rm -rf ${DIR2}
|
rm -rf ${DIR2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user